diff options
Diffstat (limited to 'components/style/node.rs')
-rw-r--r-- | components/style/node.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/style/node.rs b/components/style/node.rs index 5a765f2798d..3d9ad18e623 100644 --- a/components/style/node.rs +++ b/components/style/node.rs @@ -5,7 +5,7 @@ //! Traits that nodes must implement. Breaks the otherwise-cyclic dependency between layout and //! style. -use legacy::{IntegerAttribute, LengthAttribute}; +use legacy::{IntegerAttribute, LengthAttribute, UnsignedIntegerAttribute}; use selectors::AttrSelector; use servo_util::str::LengthOrPercentageOrAuto; use string_cache::{Atom, Namespace}; @@ -47,6 +47,7 @@ pub trait TElement<'a> : Copy { fn get_enabled_state(self) -> bool; fn get_checked_state(self) -> bool; fn has_class(self, name: &Atom) -> bool; + fn has_nonzero_border(self) -> bool; // Ordinarily I wouldn't use callbacks like this, but the alternative is // really messy, since there is a `JSRef` and a `RefCell` involved. Maybe @@ -58,4 +59,5 @@ pub trait TElement<'a> : Copy { pub trait TElementAttributes : Copy { 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>; } |