aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-08 22:03:42 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-03-14 15:10:05 +0100
commit9fa2618197fc9fc4085d5a1d6ed6be90cb39757b (patch)
tree666ddd4d7d9725f09ed6aa1f65683e2532309808 /components/layout_thread/dom_wrapper.rs
parent1654f297ca1accdd600d0737002c0e03e75797a6 (diff)
downloadservo-9fa2618197fc9fc4085d5a1d6ed6be90cb39757b.tar.gz
servo-9fa2618197fc9fc4085d5a1d6ed6be90cb39757b.zip
style: Add infrastructure to match :host.
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 5c5fc4be052..55bacd037cb 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -659,6 +659,14 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> {
}
}
+ fn parent_node_is_shadow_root(&self) -> bool {
+ false
+ }
+
+ fn containing_shadow_host(&self) -> Option<Self> {
+ None
+ }
+
fn first_child_element(&self) -> Option<ServoLayoutElement<'le>> {
self.as_node().dom_children().filter_map(|n| n.as_element()).next()
}
@@ -1199,6 +1207,14 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
None
}
+ fn parent_node_is_shadow_root(&self) -> bool {
+ false
+ }
+
+ fn containing_shadow_host(&self) -> Option<Self> {
+ None
+ }
+
fn first_child_element(&self) -> Option<Self> {
warn!("ServoThreadSafeLayoutElement::first_child_element called");
None