Bug 1290335: Implement dumb versions of RestyleForAppend and RestyleForInsertOrChange
This lets us take rid of the delay-layout hack on the stylo branch.
MozReview-Commit-ID: 9fqhBCQnfYV
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -271,24 +271,26 @@ ServoRestyleManager::ProcessPendingResty
IncrementRestyleGeneration();
}
void
ServoRestyleManager::RestyleForInsertOrChange(Element* aContainer,
nsIContent* aChild)
{
- NS_WARNING("stylo: ServoRestyleManager::RestyleForInsertOrChange not implemented");
+ // XXX Emilio we can do way better.
+ PostRestyleEvent(aContainer, eRestyle_Subtree, nsChangeHint(0));
}
void
ServoRestyleManager::RestyleForAppend(Element* aContainer,
nsIContent* aFirstNewContent)
{
- NS_WARNING("stylo: ServoRestyleManager::RestyleForAppend not implemented");
+ // XXX Emilio we can do way better.
+ PostRestyleEvent(aContainer, eRestyle_Subtree, nsChangeHint(0));
}
void
ServoRestyleManager::RestyleForRemove(Element* aContainer,
nsIContent* aOldChild,
nsIContent* aFollowingSibling)
{
NS_WARNING("stylo: ServoRestyleManager::RestyleForRemove not implemented");