Skip to content

layout: Move overflow calculation to be a separate, sequential, bottom-up pass. - #10064

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:overflow-bottom-up
Mar 19, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:overflow-bottom-up

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

Right now, the only reason that overflow calculation works is that we
rely on script inducing extra reflows that are sent for display. This
was preventing #10021 from landing.

This change regresses layout performance by about 1% in my tests.

Fixes #7797 properly.

r? @mbrubeck
cc @glennw


This change is Reviewable

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 17, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor

@bors-servo r+


Reviewed 6 of 6 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ca3972a has been approved by mbrubeck

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 17, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ca3972a with merge 0d02c45...

bors-servo pushed a commit that referenced this pull request Mar 17, 2016
layout: Move overflow calculation to be a separate, sequential, bottom-up pass.

Right now, the only reason that overflow calculation works is that we
rely on script inducing extra reflows that are sent for display. This
was preventing #10021 from landing.

This change regresses layout performance by about 1% in my tests.

Fixes #7797 properly.

r? @mbrubeck
cc @glennw

<!-- 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/10064)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Mar 18, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor

On both Mac and Linux:

▶ FAIL [expected PASS] /css21_dev/html4/numbers-units-018.htm

@mbrubeck

Copy link
Copy Markdown
Contributor

By the way, if you want to just mark that test failing in order to get this and #10021 landed (and file a follow-up issue to fix the test), r+. I think even with the test failure these patches leave us in a better state than without them.

@pcwalton

Copy link
Copy Markdown
Contributor Author

@mbrubeck From manual inspection, we never should have passed that test to begin with; it depended on overflow bugs (AFAICT) clipping out the part that the test tests!

@pcwalton

Copy link
Copy Markdown
Contributor Author

@mbrubeck Also, Firefox, Chrome, and Safari all fail that test. Servo fails in the same way they do, except that Servo mistakenly clips out part of the test. (Less is clipped with this PR than without, causing the failure.)

@pcwalton
pcwalton force-pushed the overflow-bottom-up branch from ca3972a to 5ea8c34 Compare March 19, 2016 05:11
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Mar 19, 2016
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 5ea8c34 has been approved by mbrubeck

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 19, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 5ea8c34 with merge b7a53b5...

bors-servo pushed a commit that referenced this pull request Mar 19, 2016
layout: Move overflow calculation to be a separate, sequential, bottom-up pass.

Right now, the only reason that overflow calculation works is that we
rely on script inducing extra reflows that are sent for display. This
was preventing #10021 from landing.

This change regresses layout performance by about 1% in my tests.

Fixes #7797 properly.

r? @mbrubeck
cc @glennw

<!-- 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/10064)
<!-- Reviewable:end -->
bottom-up pass.

Right now, the only reason that overflow calculation works is that we
rely on script inducing extra reflows that are sent for display. This
was preventing servo#10021 from landing.

This change regresses layout performance by about 1% in my tests.

Fixes servo#7797 properly.
@Ms2ger

Ms2ger commented Mar 19, 2016

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

💥 Test timed out

@emilio

emilio commented Mar 19, 2016

Copy link
Copy Markdown
Member

@bors-servo: retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 5ea8c34 with merge 8120fb5...

bors-servo pushed a commit that referenced this pull request Mar 19, 2016
layout: Move overflow calculation to be a separate, sequential, bottom-up pass.

Right now, the only reason that overflow calculation works is that we
rely on script inducing extra reflows that are sent for display. This
was preventing #10021 from landing.

This change regresses layout performance by about 1% in my tests.

Fixes #7797 properly.

r? @mbrubeck
cc @glennw

<!-- 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/10064)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants