servo/components/compositing
bors-servo 944d371b8f Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwalton
stylo: Improve restyling performance

This commit adds hooks to the Servo style traversal to avoid traversing all the
DOM for every restyle. Additionally it changes the behavior of the dirty flag to
be propagated top down, to prevent extra overhead when an element is dirtied.

This commit doesn't aim to change the behavior on Servo just yet, since Servo does extra job when dirtying the node related with DOM revision counters that might be necessary.

CC @asajeffrey for the DOM revision counters stuff. When a node is dirty, do all its descendants really need to increment the revision counter, or is this an unintended effect? My intuition is that this is hurting performance quite a lot for servo.

r? @bholley

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because no geckolib tests yet.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12563)
<!-- Reviewable:end -->
2016-07-27 17:56:26 -05:00
..
Cargo.toml Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
compositor.rs script: Fix a few load related bugs. 2016-07-25 10:51:52 -07:00
compositor_layer.rs forcetouch events support 2016-04-05 18:42:28 +08:00
compositor_thread.rs Associate logical and physical keypresses together to support non-QWERTY keyboards. 2016-07-05 18:06:42 -04:00
delayed_composition.rs Move util::time::duration_from_nanoseconds to its only caller 2016-06-29 18:00:21 +02:00
lib.rs Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
scrolling.md Add documentation about the scrolling model 2014-10-10 09:26:43 -07:00
surface_map.rs use self.0 instead of destructing single item tuple structs 2016-03-27 11:50:08 +01:00
touch.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
windowing.rs Associate logical and physical keypresses together to support non-QWERTY keyboards. 2016-07-05 18:06:42 -04:00