Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upChange 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? |
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <link rel='match' href='abs-overflow-stackingcontext_ref.html'> |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
glennw
Nov 3, 2015
Author
Member
Argh, I accidentally removed the perspective field - good catch. I'll update shortly.
|
@bors-servo: r+ |
|
|
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 -->
|
|
glennw commentedNov 3, 2015
Also include absolutely positioned elements in the overflow rect calculation.
Fixes #7797.