Bug 1397168 - Add a function to find out if a node has any ancestor that is pending for restyling. r=emilio

MozReview-Commit-ID: DXcodMcQP59
This commit is contained in:
Wei-Cheng Pan
2017-09-06 15:42:05 +08:00
parent 1e88dae809
commit 77a3e6f43a
3 changed files with 11 additions and 0 deletions

View File

@@ -1202,6 +1202,12 @@ ServoRestyleManager::ProcessAllPendingAttributeAndStateInvalidations()
ClearSnapshots();
}
bool
ServoRestyleManager::HasPendingRestyleAncestor(Element* aElement) const
{
return Servo_HasPendingRestyleAncestor(aElement);
}
void
ServoRestyleManager::UpdateOnlyAnimationStyles()
{