Changeset 278411 in webkit
- Timestamp:
- Jun 3, 2021 10:53:13 AM (14 months ago)
- Location:
- trunk
- Files:
-
- 6 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/selection/selecting-content-by-overshooting-the-deprecated-flex-container-expected.txt (added)
-
LayoutTests/editing/selection/selecting-content-by-overshooting-the-deprecated-flex-container.html (added)
-
LayoutTests/editing/selection/selecting-content-by-overshooting-the-flex-container-expected.txt (added)
-
LayoutTests/editing/selection/selecting-content-by-overshooting-the-flex-container.html (added)
-
LayoutTests/editing/selection/selecting-content-by-overshooting-the-grid-container-expected.txt (added)
-
LayoutTests/editing/selection/selecting-content-by-overshooting-the-grid-container.html (added)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlock.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278410 r278411 1 2021-06-03 Alan Bujtas <zalan@apple.com> 2 3 Incorrect text selection when crossing flex item boundary 4 https://bugs.webkit.org/show_bug.cgi?id=226518 5 <rdar://59487603> 6 7 Reviewed by Simon Fraser. 8 9 * editing/selection/selecting-content-by-overshooting-the-container-expected.txt: Added. 10 * editing/selection/selecting-content-by-overshooting-the-container.html: Added. 11 1 12 2021-06-03 Youenn Fablet <youenn@apple.com> 2 13 -
trunk/LayoutTests/platform/ios/TestExpectations
r278382 r278411 404 404 editing/selection/user-select-all-with-single-click.html [ Skip ] 405 405 editing/selection/select-out-of-floated-non-editable-13.html [ Skip ] 406 editing/selection/selecting-content-by-overshooting-the-flex-container.html [ Skip ] 407 editing/selection/selecting-content-by-overshooting-the-deprecated-flex-container.html [ Skip ] 408 editing/selection/selecting-content-by-overshooting-the-grid-container.html [ Skip ] 406 409 editing/spelling/context-menu-suggestions-multiword-selection.html [ Skip ] 407 410 editing/spelling/context-menu-suggestions-subword-selection.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r278407 r278411 1 2021-06-03 Alan Bujtas <zalan@apple.com> 2 3 Incorrect text selection when crossing flex item boundary 4 https://bugs.webkit.org/show_bug.cgi?id=226518 5 <rdar://59487603> 6 7 Reviewed by Simon Fraser. 8 9 Let's use the more sophisticated "which child is closer to the hit point" logic in RenderBox for the flex (and grid) content. 10 The rest of the RenderBlock::positionForPoint is meant to deal with BFC content where block level boxes are positioned in block direction, after each other. 11 12 Test: editing/selection/selecting-content-by-overshooting-the-container.html 13 14 * rendering/RenderBlock.cpp: 15 (WebCore::RenderBlock::positionForPoint): 16 1 17 2021-06-03 Antti Koivisto <antti@apple.com> 2 18 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r278389 r278411 2198 2198 if (pointLogicalTop >= logicalHeight() || (pointLogicalTop >= 0 && pointLogicalLeft >= logicalWidth())) 2199 2199 return createVisiblePosition(caretMaxOffset(), Affinity::Downstream); 2200 } 2200 } 2201 if (isFlexibleBoxIncludingDeprecated() || isRenderGrid()) 2202 return RenderBox::positionForPoint(point, fragment); 2201 2203 2202 2204 LayoutPoint pointInContents = point;
Note: See TracChangeset
for help on using the changeset viewer.