Repository navigation
Change overflow calculation to be calculated after compute_absolute_position. - #8306
Conversation
|
@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? |
There was a problem hiding this comment.
rm. What's the difference between the test and the reference?
There was a problem hiding this comment.
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.
d7f078c to
695b749
Compare
|
@bors-servo: r+ |
|
📌 Commit 695b749 has been approved by |
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 -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
Also include absolutely positioned elements in the overflow rect calculation.
Fixes #7797.