Commit 22a8b8b3 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1824603 - Trivial fix for zoom svg reftests.

MANUAL PUSH: Trivial fix, somehow failed to update the revision before re-landing. CLOSED TREE
parent f9012aac
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -272,8 +272,11 @@ nsIFrame::SizeComputationResult SVGOuterSVGFrame::ComputeSize(
                 "root should not have auto-width/height containing block");

    if (!mIsInIframe) {
      cbSize.ISize(aWritingMode) *= mFullZoom;
      cbSize.BSize(aWritingMode) *= mFullZoom;
      // NOTE: We can't just use mFullZoom because this can run before Reflow()
      // updates it.
      const float zoom = ComputeFullZoom();
      cbSize.ISize(aWritingMode) *= zoom;
      cbSize.BSize(aWritingMode) *= zoom;
    }

    // We also need to honour the width and height attributes' default values