servo/components/style/gecko
Bobby Holley 80460cc549 Make Restyle tracking more granular.
The primary idea of this patch is to ditch the rigid enum of Previous/Current
styles, and replace it with a series of indicators for the various types of
work that needs to be performed (expanding snapshots, rematching, recascading,
and damage processing). This loses us a little bit of sanity checking (since
the up-to-date-ness of our style is no longer baked into the type system), but
gives us a lot more flexibility that we'll need going forward (especially when
we separate matching from cascading). We also eliminate get_styling_mode in
favor of a method on the traversal.

This patch does a few other things as ridealongs:
* Temporarily eliminates the handling for transfering ownership of styles to the
  frame. We'll need this again at some point, but for now it's causing too much
  complexity for a half-implemented feature.
* Ditches TRestyleDamage, which is no longer necessary post-crate-merge, and is
  a constant source of compilation failures from either needing to be imported
  or being unnecessarily imported (which varies between gecko and servo).
* Expands Snapshots for the traversal root, which was missing before.
* Fixes up the skip_root stuff to avoid visiting the skipped root.
* Unifies parallel traversal and avoids spawning for a single work item.
* Adds an explicit pre_traverse step do any pre-processing and determine whether
  we need to traverse at all.

MozReview-Commit-ID: IKhLAkAigXE
2016-12-09 14:46:40 -10:00
..
generated Move most of geckolib into style::gecko 2016-09-26 09:07:17 +02:00
context.rs Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. 2016-11-24 17:07:38 -08:00
conversions.rs Add insertRule/deleteRule support for stylo 2016-12-01 16:20:02 +11:00
data.rs Rename selector_matching.rs to stylist.rs 2016-11-20 15:29:09 +01:00
mod.rs Rename selector_impl.rs to selector_parser.rs 2016-11-20 15:30:37 +01:00
restyle_damage.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00
selector_parser.rs Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
snapshot.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00
snapshot_helpers.rs Move most of geckolib into style::gecko 2016-09-26 09:07:17 +02:00
traversal.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00
values.rs Convert column-width to use Either 2016-12-01 15:17:51 +05:30
wrapper.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00