Skip to content

Change overflow calculation to be calculated after compute_absolute_position. - #8306

Merged
bors-servo merged 1 commit into
servo:masterfrom
glennw:fix-abd-overflow
Nov 4, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
glennw:fix-abd-overflow

Conversation

@glennw

@glennw glennw commented Nov 3, 2015

Copy link
Copy Markdown
Member

Also include absolutely positioned elements in the overflow rect calculation.

Fixes #7797.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 3, 2015
@glennw

glennw commented Nov 3, 2015

Copy link
Copy Markdown
Member Author

@pcwalton Does this change seem reasonable to you?

As far as I can tell, all tests pass and it fixes the referenced issue.

The overflow rect is only read by the display list building pass, so it appears to be safe to move the calculation to a later pass. However, the code seems so much simpler that I wonder if I'm missing something like a particular edge case or performance issue with this approach?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm. What's the difference between the test and the reference?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh, I accidentally removed the perspective field - good catch. I'll update shortly.

…osition.

Also include absolutely positioned elements in the overflow rect calculation.

Fixes servo#7797.
@metajack metajack assigned metajack and pcwalton and unassigned metajack Nov 3, 2015
@pcwalton

pcwalton commented Nov 4, 2015

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 695b749 has been approved by pcwalton

@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 Nov 4, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 695b749 with merge ca56ebb...

bors-servo pushed a commit that referenced this pull request Nov 4, 2015
Change overflow calculation to be calculated after compute_absolute_position.

Also include absolutely positioned elements in the overflow rect calculation.

Fixes #7797.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8306)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

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

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.

7 participants