Changeset 278379 in webkit
- Timestamp:
- Jun 2, 2021 3:31:09 PM (14 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/selection/select-out-of-floated-non-editable-13-expected.txt (added)
-
LayoutTests/editing/selection/select-out-of-floated-non-editable-13.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlock.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278377 r278379 1 2021-06-02 Alan Bujtas <zalan@apple.com> 2 3 Incorrect selection when tall float is present 4 https://bugs.webkit.org/show_bug.cgi?id=226552 5 <rdar://problem/78781056> 6 7 Reviewed by Simon Fraser. 8 9 * editing/selection/select-out-of-floated-non-editable-07.html: 10 * editing/selection/select-out-of-floated-non-editable-13-expected.txt: Added. 11 * editing/selection/select-out-of-floated-non-editable-13.html: Added. 12 1 13 2021-06-02 Antoine Quint <graouts@webkit.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r278377 r278379 1 2021-06-02 Alan Bujtas <zalan@apple.com> 2 3 Incorrect selection when tall float is present 4 https://bugs.webkit.org/show_bug.cgi?id=226552 5 <rdar://problem/78781056> 6 7 Reviewed by Simon Fraser. 8 9 While floats may end up at the bottom of their containers, they do not necessarily stretch the container by their full height. 10 e.g. <div><div style="float: left; height: 10px; width: 10px;"></div>some<br>text<br>here</div> 11 The [some text here] content wraps around the float and stretches the containing block <div>. 12 13 Test: editing/selection/select-out-of-floated-non-editable-13.html 14 15 * rendering/RenderBlock.cpp: 16 (WebCore::RenderBlock::positionForPoint): 17 1 18 2021-06-02 Antoine Quint <graouts@webkit.org> 2 19 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r278354 r278379 2226 2226 if (!isChildHitTestCandidate(*childBox, fragment, pointInLogicalContents)) 2227 2227 continue; 2228 LayoutUnitchildLogicalBottom = logicalTopForChild(*childBox) + logicalHeightForChild(*childBox);2228 auto childLogicalBottom = logicalTopForChild(*childBox) + logicalHeightForChild(*childBox); 2229 2229 if (is<RenderBlockFlow>(childBox)) 2230 childLogicalBottom += downcast<RenderBlockFlow>(childBox)->lowestFloatLogicalBottom();2230 childLogicalBottom = std::max(childLogicalBottom, downcast<RenderBlockFlow>(*childBox).lowestFloatLogicalBottom()); 2231 2231 // We hit child if our click is above the bottom of its padding box (like IE6/7 and FF3). 2232 2232 if (isChildHitTestCandidate(*childBox, fragment, pointInLogicalContents) && (pointInLogicalContents.y() < childLogicalBottom
Note: See TracChangeset
for help on using the changeset viewer.