Bug 1287951: stylo: Implement ServoRestyleManager::AttributeWillChange. r=heycam
authorEmilio Cobos Álvarez <ecoal95@gmail.com>
Tue, 19 Jul 2016 14:35:37 -0700
changeset 306220 b04110c70f1563175ca7689c05495f7a13b97b42
parent 306219 5daa5c05033142561e0377f4b16b212fbbe8f811
child 306221 66c7af8b26544e79b39b7180cb7338bbc2642064
push id30480
push usercbook@mozilla.com
push dateFri, 22 Jul 2016 09:58:20 +0000
treeherdermozilla-central@e0bc88708ffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1287951
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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");