mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Separate the XBL and shadow dom styling bits.
Bug: 1441022 Reviewed-by: xidorn MozReview-Commit-ID: 2W0BmZ8wWXg
This commit is contained in:
parent
3b96fb2cbe
commit
ef4ea7cc49
7 changed files with 107 additions and 57 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue