Bug 1216001 - Fix a typo that eliminated a possible paint optimization. r=xidorn
authorMats Palmgren <mats@mozilla.com>
Fri, 01 Apr 2016 02:08:15 +0200
changeset 291127 f76979736a41aa110d1f87ba17f14efb06e46707
parent 291126 3766631a655f561cb8122c8d788c00b8b96661d1
child 291128 cbeaca0a84e90dc8df4e5a30a262744c512f7030
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1216001
milestone48.0a1
Bug 1216001 - Fix a typo that eliminated a possible paint optimization. r=xidorn
layout/generic/nsTextFrame.cpp
--- a/layout/generic/nsTextFrame.cpp
+++ b/layout/generic/nsTextFrame.cpp
@@ -4823,17 +4823,17 @@ nsTextFrame::BuildDisplayList(nsDisplayL
   
   DO_GLOBAL_REFLOW_COUNT_DSP("nsTextFrame");
 
   Maybe<bool> isSelected;
   if (((GetStateBits() & TEXT_NO_RENDERED_GLYPHS) ||
        (NS_GET_A(StyleColor()->mColor) == 0 && !StyleText()->HasTextShadow())) &&
       aBuilder->IsForPainting() && !IsSVGText()) {
     isSelected.emplace(IsSelected());
-    if (!isSelected) {
+    if (!isSelected.value()) {
       TextDecorations textDecs;
       GetTextDecorations(PresContext(), eResolvedColors, textDecs);
       if (!textDecs.HasDecorationLines()) {
         return;
       }
     }
   }