servo/components
bors-servo 6c08c570bf Auto merge of #11399 - heycam:parent-style, r=pcwalton
Look past restyle root for parent node when restyling.

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 --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because existing tests should be sufficient

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

----

Currently when traversing a the tree to restyle, we look at whether a
given element to restyle is the root.  This seems to always be the root
of the entire document, since we start our processing from the top.  If
the current element being restyled is the root of the restyle, then we
use None as the parent node for restyling purposes.

In stylo we want to invoke restyling starting from an arbitrary node in
the document, not just the root of the document, so this change looks
for the parent element regardless of whether we're at the root of the
restyle.

r? @pcwalton

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11399)
<!-- Reviewable:end -->
2016-05-25 15:36:51 -05:00
..
canvas Update documentation for {CanvasPaintThread, WebGLPaintThread}::new(). 2016-05-19 12:15:02 +02:00
canvas_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
compositing Remove the script listener thread (fixes #11345). 2016-05-25 12:50:22 +02:00
constellation Remove ScriptThread::layout_to_constellation_chan. 2016-05-25 15:41:01 +02:00
devtools Simplify TOML syntax 2016-04-26 23:51:36 +02:00
devtools_traits Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
gfx Bump string-cache to 0.2.18 2016-05-25 14:35:36 +05:30
gfx_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
layout Auto merge of #11376 - creativcoder:update-string-cache, r=nox 2016-05-25 10:13:29 -05:00
layout_traits Use associated types to improve LayoutThreadFactory and ScriptThreadFactory. 2016-05-24 17:50:06 +02:00
msg Responding to review comments. 2016-05-20 09:45:34 -05:00
net Auto merge of #10498 - creativcoder:default-profile-dir, r=SimonSapin 2016-05-25 02:52:10 -05:00
net_traits Fix FileManager thread panic and other misc improvements 2016-05-24 22:32:36 +08:00
plugins Update Rust to 1.10.0-nightly (cd6a40017 2016-05-16) 2016-05-17 15:21:18 +02:00
profile replacing commas with tabs; changing from CSV to TSV profiling 2016-05-19 15:07:18 -07:00
profile_traits Add timeline markers for HTTP requests, JS evaluation, and HTML parsing. 2016-05-18 08:02:42 -05:00
range Use num-traits in range. 2016-04-20 14:59:05 +02:00
script Auto merge of #11376 - creativcoder:update-string-cache, r=nox 2016-05-25 10:13:29 -05:00
script_traits Remove ScriptThread::layout_to_constellation_chan. 2016-05-25 15:41:01 +02:00
servo Auto merge of #11379 - pcwalton:wrup4, r=mbrubeck 2016-05-25 11:13:05 -05:00
style Auto merge of #11399 - heycam:parent-style, r=pcwalton 2016-05-25 15:36:51 -05:00
style_traits Removed unused imports 2016-05-15 22:24:26 +03:00
util adding default config dirs 2016-05-25 10:55:07 +05:30
webdriver_server Use CompositorMsg from script_traits. 2016-05-24 12:29:22 +02:00