Bug 1231485 part 2 - Add NeutralChange hint to nsStyleText::MaxDifference(). draft
authorXidorn Quan <quanxunzhen@gmail.com>
Wed, 16 Dec 2015 00:10:11 +1100
changeset 315601 0d317df52b15943518d116febbe9fcbd422ad2b2
parent 315600 b4778d16ec656277b57f4b0a6fd50c465baec656
child 315602 5a50ffeb4d110dfa68a94c6c763723b585b83784
push id8436
push userxquan@mozilla.com
push dateTue, 15 Dec 2015 22:14:22 +0000
bugs1231485
milestone46.0a1
Bug 1231485 part 2 - Add NeutralChange hint to nsStyleText::MaxDifference().
layout/style/nsStyleStruct.h
--- a/layout/style/nsStyleStruct.h
+++ b/layout/style/nsStyleStruct.h
@@ -1712,17 +1712,18 @@ struct nsStyleText {
     this->~nsStyleText();
     aContext->PresShell()->
       FreeByObjectID(mozilla::eArenaObjectID_nsStyleText, this);
   }
 
   nsChangeHint CalcDifference(const nsStyleText& aOther) const;
   static nsChangeHint MaxDifference() {
     return NS_STYLE_HINT_FRAMECHANGE |
-           nsChangeHint_UpdateSubtreeOverflow;
+           nsChangeHint_UpdateSubtreeOverflow |
+           nsChangeHint_NeutralChange;
   }
   static nsChangeHint DifferenceAlwaysHandledForDescendants() {
     // CalcDifference never returns the reflow hints that are sometimes
     // handled for descendants as hints not handled for descendants.
     return nsChangeHint_NeedReflow |
            nsChangeHint_ReflowChangesSizeOrPosition |
            nsChangeHint_ClearAncestorIntrinsics;
   }