Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get parent style from the target element.
We can get the parent style from element tree in servo side. The parent style has been already restyled. E.g.; When we get target element style with nsComputedDOMStyle::GetStyleContext, the function flushes styles so that the parent style has also restyled. When we call Servo_GetComputedKeyframeValues, it's called from a SequentialTask, that means all elements have been already restyled. Unfortunately we can't assert that the parent style is not stale to check the parent element has no dirty descendant bit since Servo_GetComputedKeyframeValues is called in a SequantialTask that is processed before post traversal, that means elements still have the dirty bit to update nsStyleContext in the post traversal.
- Loading branch information
Hiroyuki Ikezoe
committed
Jun 2, 2017
1 parent
e0ec2dc
commit 4af88b1
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters