style: Implement ElementWrapper::pseudo_element_originating_element in terms of its TElement implementation.

This matches right now, but it may not in the future.
This commit is contained in:
Emilio Cobos Álvarez 2017-10-30 12:37:49 +01:00
parent 52f962c387
commit bea79aabff
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -348,7 +348,7 @@ impl<'a, E> Element for ElementWrapper<'a, E>
}
fn pseudo_element_originating_element(&self) -> Option<Self> {
self.element.closest_non_native_anonymous_ancestor()
self.element.pseudo_element_originating_element()
.map(|e| ElementWrapper::new(e, self.snapshot_map))
}
}