diff options
author | Hiroyuki Ikezoe <hikezoe@mozilla.com> | 2017-06-02 09:36:35 +0900 |
---|---|---|
committer | Hiroyuki Ikezoe <hikezoe@mozilla.com> | 2017-06-02 12:18:04 +0900 |
commit | 4af88b137bf7829843ffff846a5ca77b00866c49 (patch) | |
tree | 8565f9d3626994a257fcb6d27080fff75dfa54a3 /components/script/dom/hashchangeevent.rs | |
parent | e0ec2dcd54ba56d6e788cf1fd5b317fbf5768c2e (diff) | |
download | servo-4af88b137bf7829843ffff846a5ca77b00866c49.tar.gz servo-4af88b137bf7829843ffff846a5ca77b00866c49.zip |
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.
Diffstat (limited to 'components/script/dom/hashchangeevent.rs')
0 files changed, 0 insertions, 0 deletions