servo/components/script_layout_interface
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
..
Cargo.toml Update to selectors 0.15 2016-11-22 14:50:21 +01:00
lib.rs Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. 2016-11-24 17:07:38 -08:00
message.rs Auto merge of #12862 - servo:layout-new, r=emilio 2016-12-07 14:32:20 -08:00
reporter.rs Move CSSErrorReporter to script_layout_interface. 2016-06-20 19:08:13 +02:00
rpc.rs Reimplement scrolling to fragments 2016-11-29 22:12:16 +01:00
wrapper_traits.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00