Bug 1417010 - Invalidate MathML display items whenever we invalidate the referenced nsMathMLChar. r=miko, a=sledru
authorMatt Woodrow <mwoodrow@mozilla.com>
Sat, 18 Nov 2017 11:06:49 +1300
changeset 444871 b5b9ca5f99b999a53215356e1f3d4b42f7f76557
parent 444870 e93cdfd48553bdff890cc1bbd27df7fbce123094
child 444872 d55f73f1c890b02fb033accdcaf285633f93648e
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmiko, sledru
bugs1417010
milestone58.0
Bug 1417010 - Invalidate MathML display items whenever we invalidate the referenced nsMathMLChar. r=miko, a=sledru
layout/mathml/nsMathMLmencloseFrame.cpp
layout/mathml/nsMathMLmfencedFrame.cpp
--- a/layout/mathml/nsMathMLmencloseFrame.cpp
+++ b/layout/mathml/nsMathMLmencloseFrame.cpp
@@ -146,16 +146,17 @@ nsresult nsMathMLmencloseFrame::AddNotat
   return NS_OK;
 }
 
 /*
  * Initialize the list of notations to draw
  */
 void nsMathMLmencloseFrame::InitNotations()
 {
+  MarkNeedsDisplayItemRebuild();
   mNotationsToDraw.clear();
   mLongDivCharIndex = mRadicalCharIndex = -1;
   mMathMLChar.Clear();
 
   nsAutoString value;
 
   if (mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::notation_, value)) {
     // parse the notation attribute
--- a/layout/mathml/nsMathMLmfencedFrame.cpp
+++ b/layout/mathml/nsMathMLmfencedFrame.cpp
@@ -59,16 +59,17 @@ nsMathMLmfencedFrame::SetInitialChildLis
   CreateFencesAndSeparators(PresContext());
 }
 
 nsresult
 nsMathMLmfencedFrame::AttributeChanged(int32_t         aNameSpaceID,
                                        nsAtom*        aAttribute,
                                        int32_t         aModType)
 {
+  MarkNeedsDisplayItemRebuild();
   RemoveFencesAndSeparators();
   CreateFencesAndSeparators(PresContext());
 
   return nsMathMLContainerFrame::
          AttributeChanged(aNameSpaceID, aAttribute, aModType);
 }
 
 nsresult