Make the LayoutElement trait implement TElementAttributes.

This commit is contained in:
Bobby Holley 2015-11-18 18:34:27 -08:00
parent ea690a2dff
commit 516619b230

View file

@ -174,7 +174,7 @@ pub trait LayoutDocument<'ld, Wrappers> : Sized + Copy + Clone
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> {
fn as_node(&self) -> Wrappers::Node;