diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-05-12 02:15:11 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-05-12 02:15:11 -0500 |
commit | 8fa604be9dc85bfd41db7d574e236ab8b4e6d89a (patch) | |
tree | d4714d90f94807042fdd0d42af92b8636056f042 /components/style/node.rs | |
parent | 10d8200a54c833a52a757c3c591f69ad0e824f86 (diff) | |
parent | 8b0505930f72752a392308e67f009ddb5fb92419 (diff) | |
download | servo-8fa604be9dc85bfd41db7d574e236ab8b4e6d89a.tar.gz servo-8fa604be9dc85bfd41db7d574e236ab8b4e6d89a.zip |
Auto merge of #5988 - Ms2ger:preshints, r=pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5988)
<!-- Reviewable:end -->
Diffstat (limited to 'components/style/node.rs')
-rw-r--r-- | components/style/node.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/style/node.rs b/components/style/node.rs index ebfcf7d9068..dfe0913e12a 100644 --- a/components/style/node.rs +++ b/components/style/node.rs @@ -5,10 +5,9 @@ //! Traits that nodes must implement. Breaks the otherwise-cyclic dependency between layout and //! style. -use legacy::{IntegerAttribute, LengthAttribute, UnsignedIntegerAttribute}; +use legacy::UnsignedIntegerAttribute; use properties::PropertyDeclaration; use util::smallvec::VecLike; -use util::str::LengthOrPercentageOrAuto; use selectors::matching::DeclarationBlock; pub use selectors::tree::{TNode, TElement}; @@ -17,8 +16,6 @@ use string_cache::{Atom, Namespace}; pub trait TElementAttributes<'a> : Copy { fn synthesize_presentational_hints_for_legacy_attributes<V>(self, &mut V) where V: VecLike<DeclarationBlock<Vec<PropertyDeclaration>>>; - fn get_length_attribute(self, attribute: LengthAttribute) -> LengthOrPercentageOrAuto; - fn get_integer_attribute(self, attribute: IntegerAttribute) -> Option<i32>; fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute) -> Option<u32>; fn get_attr(self, namespace: &Namespace, attr: &Atom) -> Option<&'a str>; |