Backed out changeset 6cacb08f6f5c (bug 1251995)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Mon, 07 Mar 2016 12:18:10 +0100
changeset 287027 383555f19d02c54833b5f5caeec721663a8ce5c6
parent 287026 4ac661e25c72acd51c8c4fad4da64aa96e4fef11
child 287028 b7008b66f2d885f89ce6c71086f7585e8309001c
push id73006
push usercbook@mozilla.com
push dateMon, 07 Mar 2016 11:18:56 +0000
treeherdermozilla-inbound@e50ce2dc72f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1251995
milestone47.0a1
backs out6cacb08f6f5ca0f3345288c5ed4d707352a22fe9
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 6cacb08f6f5c (bug 1251995)
gfx/thebes/gfxTextRun.cpp
--- a/gfx/thebes/gfxTextRun.cpp
+++ b/gfx/thebes/gfxTextRun.cpp
@@ -969,22 +969,22 @@ gfxTextRun::BreakAndMeasureText(uint32_t
         trimmableChars = lastBreakTrimmableChars;
         trimmableAdvance = lastBreakTrimmableAdvance;
         usedHyphenation = lastBreakUsedHyphenation;
     } else {
         charsFit = aMaxLength;
     }
 
     if (aMetrics) {
-        auto fitEnd = aStart + charsFit;
-        *aMetrics = MeasureText(Range(aStart, fitEnd), aBoundingBoxType,
+        auto end = aStart + charsFit;
+        *aMetrics = MeasureText(Range(aStart, end), aBoundingBoxType,
                                 aRefDrawTarget, aProvider);
         if (trimmableChars) {
             Metrics trimMetrics =
-                MeasureText(Range(fitEnd - trimmableChars, fitEnd),
+                MeasureText(Range(end - trimmableChars, end),
                             aBoundingBoxType, aRefDrawTarget, aProvider);
             aMetrics->mAdvanceWidth -= trimMetrics.mAdvanceWidth;
         }
     }
     if (aTrimWhitespace) {
         *aTrimWhitespace = trimmableAdvance;
     }
     if (aUsedHyphenation) {