Repository navigation
layout: Take relative position offsets for inlines and inline-blocks into account only once. - #7150
Conversation
|
This commit also removes the unused |
|
These new reftests aren't added to basic.list. |
|
Review status: 0 of 10 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. components/layout/construct.rs, line 735 [r1] (raw file): Comments from the review on Reviewable.io |
9894291 to
4312b49
Compare
|
☔ The latest upstream changes (presumably #7137) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Reviewed 10 of 10 files at r1, 2 of 2 files at r2. components/style/properties.mako.rs, line 6419 [r1] (raw file): Comments from the review on Reviewable.io |
|
Actually, I see that correctly drawing outlines for elements with multiple boxes is quite tricky. (Gecko doesn't even do it correctly.) Let's leave that as a follow-up issue. r=mbrubeck after rebasing. |
into account only once. There were two bugs here: (1) relative position applied to scanned/unscanned text fragments independently of the container element that applied that relative position, causing double-counting; (2) relative position applied to inline block fragments independently of the wrapped block itself, causing double-counting. This commit also removes the `cascade_anonymous` function and the related `Fragment` constructor. They were unused, and their functionality has been replaced by the `modify_style_for_*` series of functions. Closes servo#7067.
4312b49 to
8640cf5
Compare
|
@bors-servo: r=mbrubeck |
|
📌 Commit 8640cf5 has been approved by |
…beck layout: Take relative position offsets for inlines and inline-blocks into account only once. There were two bugs here: (1) relative position applied to scanned/unscanned text fragments independently of the container element that applied that relative position, causing double-counting; (2) relative position applied to inline block fragments independently of the wrapped block itself, causing double-counting. Closes #7067. r? @mbrubeck <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7150) <!-- Reviewable:end -->
There were two bugs here: (1) relative position applied to
scanned/unscanned text fragments independently of the container element
that applied that relative position, causing double-counting; (2)
relative position applied to inline block fragments independently of the
wrapped block itself, causing double-counting.
Closes #7067.
r? @mbrubeck