aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/attr.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-07-15 16:31:20 -0700
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-07-21 14:24:04 -0700
commit611e611215a2826677b2fa255a166ce65fc221e4 (patch)
tree016db21394f13a21e453bd84f73ab0f2b63fcf30 /components/style/attr.rs
parentca9bc23b391b92d1a6e16f565b531a7fac68852c (diff)
downloadservo-611e611215a2826677b2fa255a166ce65fc221e4.tar.gz
servo-611e611215a2826677b2fa255a166ce65fc221e4.zip
style: Rewrite the restyle hints code to allow different kinds of element snapshots, and use it for Gecko.
This is a rewrite for how style interfaces with its consumers in order to allow different representations for an element snapshot. This also changes the requirements of an element snapshot, requiring them to only implement MatchAttr, instead of MatchAttrGeneric. This is important for stylo since implementing MatchAttrGeneric is way more difficult for us given the atom limitations. This also allows for more performant implementations in the Gecko side of things.
Diffstat (limited to 'components/style/attr.rs')
-rw-r--r--components/style/attr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/attr.rs b/components/style/attr.rs
index 6ca278d7d2c..af7cfa015f6 100644
--- a/components/style/attr.rs
+++ b/components/style/attr.rs
@@ -29,7 +29,7 @@ pub enum LengthOrPercentageOrAuto {
Length(Au),
}
-#[derive(PartialEq, Clone)]
+#[derive(PartialEq, Clone, Debug)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub enum AttrValue {
String(String),