Bug 1287542: stylo: Actually post a restyle event to the restyle manager on content state change. r=bholley
authorEmilio Cobos Álvarez <ecoal95@gmail.com>
Mon, 18 Jul 2016 11:28:57 -0700
changeset 330530 ab4766520512a05b49e8dc4c443a2ef32d93f9f4
parent 330529 2566472bdbe758d0298f57e827888b500342ca8d
child 330531 2c0ba51ad0d67330e98bc250a393957946e0119c
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1287542, 1286445
milestone50.0a1
Bug 1287542: stylo: Actually post a restyle event to the restyle manager on content state change. r=bholley This was somehow a leftover from Bug 1286445. MozReview-Commit-ID: 1bGKsNvm1qn
layout/base/ServoRestyleManager.cpp
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -194,18 +194,17 @@ ServoRestyleManager::ContentStateChanged
     return NS_OK;
   }
 
   Element* aElement = aContent->AsElement();
   nsChangeHint changeHint;
   nsRestyleHint restyleHint;
   ContentStateChangedInternal(aElement, aStateMask, &changeHint, &restyleHint);
 
-  // TODO(emilio): Post a restyle here, and make it effective.
-  // PostRestyleEvent(aElement, restyleHint, changeHint);
+  PostRestyleEvent(aElement, restyleHint, changeHint);
   return NS_OK;
 }
 
 void
 ServoRestyleManager::AttributeWillChange(Element* aElement,
                                          int32_t aNameSpaceID,
                                          nsIAtom* aAttribute,
                                          int32_t aModType,