Bug 1340723 part 2. Call the new UpdateStyleOnOwnedAnonBoxes function as needed from ServoRestyleManager. r?emilio draft
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 03 Mar 2017 15:44:48 -0500
changeset 493310 f7ebe1bf7982cb75c233d887104ab9a58a9715f1
parent 493309 44247441ff7aa6f70cc07de74e32578a54175918
child 493311 889c5fb8f1a8791863f6c5f84ebcd6dd753cd2c0
push id47736
push userbzbarsky@mozilla.com
push dateFri, 03 Mar 2017 20:52:34 +0000
reviewersemilio
bugs1340723
milestone54.0a1
Bug 1340723 part 2. Call the new UpdateStyleOnOwnedAnonBoxes function as needed from ServoRestyleManager. r?emilio MozReview-Commit-ID: 5nrv8x7CEtN
layout/base/ServoRestyleManager.cpp
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -249,16 +249,21 @@ ServoRestyleManager::RecreateStyleContex
       UpdateStyleContextForTableWrapper(primaryFrame, newContext, aStyleSet);
     }
 
     if (MOZ_UNLIKELY(displayContentsNode)) {
       MOZ_ASSERT(!styleFrame);
       displayContentsNode->mStyle = newContext;
     }
 
+    if (styleFrame) {
+      styleFrame->UpdateStyleOfOwnedAnonBoxes(*aStyleSet, aChangeListToProcess,
+                                              changeHint);
+    }
+
     // Update pseudo-elements state if appropriate.
     const static CSSPseudoElementType pseudosToRestyle[] = {
       CSSPseudoElementType::before,
       CSSPseudoElementType::after,
     };
 
     for (CSSPseudoElementType pseudoType : pseudosToRestyle) {
       nsIAtom* pseudoTag = nsCSSPseudoElements::GetPseudoAtom(pseudoType);