Backed out changeset 27284783216c (bug 1529182) for reftest fails on text-stroke-scaling-02a.html after fix. a=backout
authorRazvan Maries <rmaries@mozilla.com>
Sat, 23 Feb 2019 02:21:08 +0200
changeset 460561 ca0ea512f874390477cb4595d9c36c8106296820
parent 460560 826b59e57fe4274954088e7a9ed9bab092203e1c
child 460702 fdd04819e350ff9429bd2a2731498741c2a757a1
push id35595
push userrmaries@mozilla.com
push dateSat, 23 Feb 2019 00:21:57 +0000
treeherdermozilla-central@ca0ea512f874 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1529182
milestone67.0a1
backs out27284783216cf774b8efdd3283620c669c58c40a
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 27284783216c (bug 1529182) for reftest fails on text-stroke-scaling-02a.html after fix. a=backout
layout/svg/SVGTextFrame.cpp
--- a/layout/svg/SVGTextFrame.cpp
+++ b/layout/svg/SVGTextFrame.cpp
@@ -3515,18 +3515,17 @@ void SVGTextFrame::ReflowSVG() {
     mRect.SetEmpty();
   } else {
     mRect = nsLayoutUtils::RoundGfxRectToAppRect(r.ToThebesRect(),
                                                  AppUnitsPerCSSPixel());
 
     // Due to rounding issues when we have a transform applied, we sometimes
     // don't include an additional row of pixels.  For now, just inflate our
     // covered region.
-    double contextScale = GetContextScale(GetCanvasTM());
-    mRect.Inflate(ceil(presContext->AppUnitsPerDevPixel() / contextScale));
+    mRect.Inflate(ceil(presContext->AppUnitsPerDevPixel() / mLastContextScale));
   }
 
   if (mState & NS_FRAME_FIRST_REFLOW) {
     // Make sure we have our filter property (if any) before calling
     // FinishAndStoreOverflow (subsequent filter changes are handled off
     // nsChangeHint_UpdateEffects):
     SVGObserverUtils::UpdateEffects(this);
   }