From bea79aabff861c8eddc43a3e505e6097cf373ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 30 Oct 2017 12:37:49 +0100 Subject: [PATCH] style: Implement ElementWrapper::pseudo_element_originating_element in terms of its TElement implementation. This matches right now, but it may not in the future. --- components/style/invalidation/element/element_wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/invalidation/element/element_wrapper.rs b/components/style/invalidation/element/element_wrapper.rs index 5cedff38fa3..2cbe56bf955 100644 --- a/components/style/invalidation/element/element_wrapper.rs +++ b/components/style/invalidation/element/element_wrapper.rs @@ -348,7 +348,7 @@ impl<'a, E> Element for ElementWrapper<'a, E> } fn pseudo_element_originating_element(&self) -> Option { - self.element.closest_non_native_anonymous_ancestor() + self.element.pseudo_element_originating_element() .map(|e| ElementWrapper::new(e, self.snapshot_map)) } }