-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary ClipDisplayItems in box_.rs #1578
Conversation
Critic review: https://critic.hoppipolla.co.uk/r/665 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
Right now, it is failing for some edge case ('fail to find parent item'). I will fix it and get back here. |
Fixed the bug where an img with |
+ Annotate functions with CSS Reference sections. + Clean up comments and whitespace.
Rebased on latest Servo code. |
For ScannedTextBox and ImageBox, the ClipDisplayItem's child_list is currently always empty. ClipDisplayItem is used to implement overflow hidden and should only be created for block containers, as per http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow Take care of the case when a BlockFlow has no children display items - like an ImageBox with "display: block".
@larsbergstrom The FIXME is not needed any more because that part is contained within I think the only case when InlineFlow will have children flows is when inline-blocks are supported. Then, they will have a GenericBox and thus will generate a ClipDisplayItemClass in which the children display items will go. |
@larsbergstrom I don't think that was considered as an r+ for the PR. Nothing has happened :) |
…om,larsbergstrom For ScannedTextBox and ImageBox, the ClipDisplayItem's child_list is currently always empty. ClipDisplayItem is used to implement overflow hidden and should only be created for block containers, as per http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow
For ScannedTextBox and ImageBox, the ClipDisplayItem's child_list is
currently always empty.
ClipDisplayItem is used to implement overflow hidden and should only be
created for block containers, as per
http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow