Bug 1287951: stylo: Implement ServoRestyleManager::AttributeWillChange. r=heycam
authorEmilio Cobos Álvarez <ecoal95@gmail.com>
Tue, 19 Jul 2016 14:35:37 -0700
changeset 331284 b04110c70f1563175ca7689c05495f7a13b97b42
parent 331283 5daa5c05033142561e0377f4b16b212fbbe8f811
child 331285 66c7af8b26544e79b39b7180cb7338bbc2642064
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)
reviewersheycam
bugs1287951
milestone50.0a1
Bug 1287951: stylo: Implement ServoRestyleManager::AttributeWillChange. r=heycam MozReview-Commit-ID: 5CCleWo06Ow
layout/base/ServoRestyleManager.cpp
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -290,17 +290,18 @@ ServoRestyleManager::ContentStateChanged
 }
 
 void
 ServoRestyleManager::AttributeWillChange(Element* aElement,
                                          int32_t aNameSpaceID,
                                          nsIAtom* aAttribute, int32_t aModType,
                                          const nsAttrValue* aNewValue)
 {
-  NS_ERROR("stylo: ServoRestyleManager::AttributeWillChange not implemented");
+  ServoElementSnapshot* snapshot = SnapshotForElement(aElement);
+  snapshot->AddAttrs(aElement);
 }
 
 void
 ServoRestyleManager::AttributeChanged(Element* aElement, int32_t aNameSpaceID,
                                       nsIAtom* aAttribute, int32_t aModType,
                                       const nsAttrValue* aOldValue)
 {
   NS_ERROR("stylo: ServoRestyleManager::AttributeChanged not implemented");