Auto merge of #16580 - hiikezoe:fix-pseudo-parent-for-animation, r=emilio

Fix parent element of pseudo element for updating animation

r? @emilio

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16580)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-04-23 21:41:24 -05:00 committed by GitHub
commit 733820583e

View file

@ -683,7 +683,7 @@ impl<'le> TElement for GeckoElement<'le> {
*HasArcFFI::arc_as_borrowed(v)
);
let parent_element = if pseudo.is_some() {
let parent_element = if pseudo.is_none() {
self.parent_element()
} else {
Some(*self)