diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-07-15 16:31:20 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-07-21 14:24:04 -0700 |
commit | 611e611215a2826677b2fa255a166ce65fc221e4 (patch) | |
tree | 016db21394f13a21e453bd84f73ab0f2b63fcf30 /ports/geckolib/lib.rs | |
parent | ca9bc23b391b92d1a6e16f565b531a7fac68852c (diff) | |
download | servo-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 'ports/geckolib/lib.rs')
-rw-r--r-- | ports/geckolib/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/geckolib/lib.rs b/ports/geckolib/lib.rs index 7f9813597c4..81923a9188c 100644 --- a/ports/geckolib/lib.rs +++ b/ports/geckolib/lib.rs @@ -22,6 +22,8 @@ extern crate util; mod context; mod data; +mod snapshot; +mod snapshot_helpers; #[allow(non_snake_case)] pub mod glue; mod traversal; |