aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-05 12:50:04 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-03-07 15:42:28 +0100
commitef4ea7cc497225615fd0d316c0b44f377871ad8b (patch)
tree509c66146d0301c65f916032975982ef1f005bb6 /components/layout_thread/dom_wrapper.rs
parent3b96fb2cbe8754b30646e8bd914806048c0b6db2 (diff)
downloadservo-ef4ea7cc497225615fd0d316c0b44f377871ad8b.tar.gz
servo-ef4ea7cc497225615fd0d316c0b44f377871ad8b.zip
style: Separate the XBL and shadow dom styling bits.
Bug: 1441022 Reviewed-by: xidorn MozReview-Commit-ID: 2W0BmZ8wWXg
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 3161de39b00..5cf29e8e159 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -74,6 +74,7 @@ use style::selector_parser::{AttrValue as SelectorAttrValue, NonTSPseudoClass, P
use style::selector_parser::{PseudoElement, SelectorImpl, extended_filtering};
use style::shared_lock::{SharedRwLock as StyleSharedRwLock, Locked as StyleLocked};
use style::str::is_whitespace;
+use style::stylist::CascadeData;
pub unsafe fn drop_style_and_layout_data(data: OpaqueStyleAndLayoutData) {
let ptr = data.ptr.as_ptr() as *mut StyleData;
@@ -166,6 +167,13 @@ impl<'lr> TShadowRoot for ShadowRoot<'lr> {
fn host(&self) -> ServoLayoutElement<'lr> {
match self.0 { }
}
+
+ fn style_data<'a>(&self) -> &'a CascadeData
+ where
+ Self: 'a,
+ {
+ match self.0 { }
+ }
}
impl<'ln> TNode for ServoLayoutNode<'ln> {