mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make the LayoutElement trait implement TElementAttributes.
This commit is contained in:
parent
ea690a2dff
commit
516619b230
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ pub trait LayoutDocument<'ld, Wrappers> : Sized + Copy + Clone
|
||||||
fn drain_modified_elements(&self) -> Vec<(Wrappers::Element, ElementSnapshot)>;
|
fn drain_modified_elements(&self) -> Vec<(Wrappers::Element, ElementSnapshot)>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait LayoutElement<'le, Wrappers> : Sized + Copy + Clone + ::selectors::Element
|
pub trait LayoutElement<'le, Wrappers> : Sized + Copy + Clone + ::selectors::Element + TElementAttributes
|
||||||
where Wrappers: WrapperTypes<'le> {
|
where Wrappers: WrapperTypes<'le> {
|
||||||
fn as_node(&self) -> Wrappers::Node;
|
fn as_node(&self) -> Wrappers::Node;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue