Move get_attr and get_attrs into TElementAttributes.

These methods are only called on LayoutElement.
This commit is contained in:
Ms2ger 2015-05-10 13:05:54 +02:00
parent 2ff18b6b95
commit 34e35df986
9 changed files with 36 additions and 45 deletions

View file

@ -182,7 +182,7 @@ impl Stylist {
applicable_declarations: &mut V)
-> bool
where N: TNode<'a>,
N::Element: TElementAttributes,
N::Element: TElementAttributes<'a>,
V: VecLike<DeclarationBlock> {
assert!(!self.is_dirty);
assert!(element.is_element());