New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a cached style cascade bug that only manifested in sequential mode #12839
Fix a cached style cascade bug that only manifested in sequential mode #12839
Conversation
Heads up! This PR modifies the following files:
|
Can you elaborate why it only reproduced on sequential mode? Also, you can pass |
The pref doesn't work, because Servo doesn't read it. I put it there as a note. |
As for why it only shows up in sequential mode, it's because the parallel layout traversal creates the context fresh every time it does a different chunk, while the sequential layout traversal uses the same one the entire time. |
Oh, I see. You might be able to reproduce it in parallel layout adding more than 64 children then, right? That should make all of them going into the same chunk. |
That being said, I think that's flacky-ish. We should run a few tests on sequential mode, probably adding the pref to the |
Can I just change it so that |
Why not making it a pref and make |
That probably is a good idea. |
@emilio Done. |
@bors-servo try |
Fix a cached style cascade bug that only manifested in sequential mode When copying cached styles, keep the `writing_mode` up to date. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11818 (github issue number if applicable). - [...] There are tests for these changes NOTE TO THE REVIEWER: This PR contains a test that works, but I need to run the test in sequential mode (couldn't figure out how to make it show up in parallel mode). What do I need to do to make the test harness pass `-y1` to Servo? <!-- 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/12839) <!-- Reviewable:end -->
💔 Test failed - linux-dev |
@bors-servo try |
Fix a cached style cascade bug that only manifested in sequential mode When copying cached styles, keep the `writing_mode` up to date. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11818 (github issue number if applicable). - [...] There are tests for these changes NOTE TO THE REVIEWER: This PR contains a test that works, but I need to run the test in sequential mode (couldn't figure out how to make it show up in parallel mode). What do I need to do to make the test harness pass `-y1` to Servo? <!-- 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/12839) <!-- Reviewable:end -->
💔 Test failed - linux-dev |
Replaced the unwrap with expect, and everything else works. This should be ready to review now. @bors-servo try |
Fix a cached style cascade bug that only manifested in sequential mode When copying cached styles, keep the `writing_mode` up to date. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11818 (github issue number if applicable). - [X] There are tests for these changes EDIT: The test is now working. I ran it with the first commit (the actual fix) reverted and it failed. <!-- 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/12839) <!-- Reviewable:end -->
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
Wow @notriddle nice find! |
@bors-servo: r+ Good find @notriddle :) |
📌 Commit 7f1297e has been approved by |
@bors-servo clean retry r=emilio |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 7f1297e has been approved by |
Fix a cached style cascade bug that only manifested in sequential mode When copying cached styles, keep the `writing_mode` up to date. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11818 (github issue number if applicable). - [X] There are tests for these changes EDIT: The test is now working. I ran it with the first commit (the actual fix) reverted and it failed. <!-- 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/12839) <!-- Reviewable:end -->
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
When copying cached styles, keep the
writing_mode
up to date../mach build -d
does not report any errors./mach test-tidy
does not report any errorsEDIT: The test is now working. I ran it with the first commit (the actual fix) reverted and it failed.
This change is