Repository navigation
Suppress reflows before RefreshTick or FirstLoad - #9832
Conversation
|
Do not review yet. Found another case to fix. |
|
cc #9771 |
49b610a to
9e29897
Compare
|
This is now ready for review. |
|
@bors-servo r+ Reviewed 1 of 1 files at r2. Comments from the review on Reviewable.io |
|
📌 Commit 9e29897 has been approved by |
|
⌛ Testing commit 9e29897 with merge 2f201ce... |
Suppress reflows before RefreshTick or FirstLoad This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9832) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-css |
|
The same CSS tests failed on Linux. There are also a bunch of WPT tests failing cross-platform:
|
9e29897 to
f930578
Compare
|
Reviewed 1 of 1 files at r3. Comments from the review on Reviewable.io |
|
@bors-servo r+ |
|
📌 Commit f930578 has been approved by |
Suppress reflows before RefreshTick or FirstLoad This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9832) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-css |
:( |
|
The issue here is that hit_test and the mouse_over are not actual layout queries. Whoever wrote them just fished the info out of layout without actually telling it it might need to reflow. Now that I'm suppressing the intiial spurious reflows, hit_test and mouse_over are firing before there is a displaylist since they don't trigger a reflow query. I'm refactoring those two things to be in the style of get_content_box_query, etc, and will hopefully have a fixed version up tonight or tomorrow. |
f930578 to
6166874
Compare
|
☔ The latest upstream changes (presumably #9715) made this pull request unmergeable. Please resolve the merge conflicts. |
This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. Unfortunately, hit_test and mouse_over did not do reflows if they were necessary, and so by suppressing the initial spurious reflows, these methods started to panic without a display list to query. This patch also transforms these into queries similar to the other existing queries.
6166874 to
2507bfb
Compare
|
@bors-servo r+ -S-needs-rebase Reviewed 3 of 8 files at r4, 6 of 6 files at r5. Comments from the review on Reviewable.io |
|
📌 Commit 2507bfb has been approved by |
Suppress reflows before RefreshTick or FirstLoad This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9832) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
This fixes a bug where partially loaded content is displayed to the user
before it should be, usually before stylesheets have loaded. This commit
supresses reflows until either FirstLoad or RefreshTick, whichever comes
first.