Bug 1291786 - stylo: Move eRestyle_Subtree translation handling to Servo. r=bholley
MozReview-Commit-ID: LHTJzImnj6h
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -57,26 +57,16 @@ ServoRestyleManager::PostRestyleEvent(El
// XXX This is a temporary hack to make style attribute change works.
// In the future, we should be able to use this hint directly.
if (aRestyleHint & eRestyle_StyleAttribute) {
aRestyleHint &= ~eRestyle_StyleAttribute;
aRestyleHint |= eRestyle_Self | eRestyle_Subtree;
}
- // XXX For now, convert eRestyle_Subtree into (eRestyle_Self |
- // eRestyle_SomeDescendants), which Servo will interpret as
- // RESTYLE_SELF | RESTYLE_DESCENDANTS, since this is a commonly
- // posted restyle hint that doesn't yet align with RestyleHint's
- // bits.
- if (aRestyleHint & eRestyle_Subtree) {
- aRestyleHint &= ~eRestyle_Subtree;
- aRestyleHint |= eRestyle_Self | eRestyle_SomeDescendants;
- }
-
if (aRestyleHint || aMinChangeHint) {
Servo_NoteExplicitHints(aElement, aRestyleHint, aMinChangeHint);
}
PostRestyleEventInternal(false);
}
void