Repository navigation
Split layout wrappers into style+layout and layout-only functionality - #9051
Conversation
92d4fb6 to
04b65a6
Compare
|
@bors-servo try |
Split layout wrappers into style+layout and layout-only functionality This is a step towards removing the dependency of stylo on layout/. This PR depends on #9004. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051) <!-- Reviewable:end -->
|
💔 Test failed - gonk |
04b65a6 to
9866985
Compare
|
@bors-servo try |
Split layout wrappers into style+layout and layout-only functionality This is a step towards removing the dependency of stylo on layout/. This PR depends on #9004. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051) <!-- Reviewable:end -->
|
💔 Test failed - mac-dev-ref-unit |
|
☔ The latest upstream changes (presumably #8938) made this pull request unmergeable. Please resolve the merge conflicts. |
9866985 to
f139860
Compare
f139860 to
75c93eb
Compare
|
@bors-servo try |
Split layout wrappers into style+layout and layout-only functionality This is a step towards removing the dependency of stylo on layout/. This PR depends on #9004. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051) <!-- Reviewable:end -->
|
💔 Test failed - mac-dev-ref-unit |
75c93eb to
88c8453
Compare
|
@bors-servo try |
|
Reviewed 16 of 24 files at r1. components/style/data.rs, line 38 [r1] (raw file): Comments from the review on Reviewable.io |
|
components/style/data.rs, line 38 [r1] (raw file): Comments from the review on Reviewable.io |
|
I've spent a bunch of time staring at the layout & script portions of this code, and to my eye they preserve the previous behaviors (including clearing out the I'm very happy with the mechanics, though - they appear to have been preserved across the refactoring, so far as I can tell! |
|
Overall LGTM, but I'd also like to wait for review from Simon or Patrick. |
|
Switching r? @SimonSapin, who will probably be able to review this sooner that @pcwalton. |
|
Looks good overall. Reviewed 8 of 24 files at r1. components/layout/wrapper.rs, line 178 [r1] (raw file): components/script/dom/node.rs, line 921 [r1] (raw file): components/style/dom.rs, line 32 [r1] (raw file): components/style/dom.rs, line 44 [r1] (raw file): Comments from the review on Reviewable.io |
|
components/style/dom.rs, line 44 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 4 unresolved discussions. components/style/dom.rs, line 44 [r1] (raw file): Comments from the review on Reviewable.io |
This patch does a number of things, unfortunately all at once: * Hoists a large subset of the layout wrapper functionality into the style system. * Merges TElementAttributes into the newly-created TElement. * Reorganizes LayoutData by style vs layout, and removes LayoutDataShared. * Simplifies the API for borrowing style/layout data. There's still more to do to make the style system usable standalone, but this is a good start.
|
Review status: all files reviewed at latest revision, 3 unresolved discussions. components/script/dom/node.rs, line 921 [r1] (raw file): Comments from the review on Reviewable.io |
48a8411 to
47059d2
Compare
|
r? @SimonSapin |
|
@bors-servo r+ Reviewed 10 of 14 files at r2. Comments from the review on Reviewable.io |
|
📌 Commit 47059d2 has been approved by |
…nSapin Split layout wrappers into style+layout and layout-only functionality This is a step towards removing the dependency of stylo on layout/. This PR depends on #9004. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
This is a step towards removing the dependency of stylo on layout/.
This PR depends on #9004.