Text selection does not show continuous selection when dragging across pages with...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 May 2022 12:38:30 +0000 (12:38 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 May 2022 12:38:30 +0000 (12:38 +0000)
commit225e3dda6f57a05d3d9dc5b3f3bb786f778a2ab9
tree2a91fb3907f18634f28e5347d01e79820ead6a17
parentfa3ff883797999b411e1a1bad2fd6b099b8126c0
Text selection does not show continuous selection when dragging across pages with widows
https://bugs.webkit.org/show_bug.cgi?id=240753
<rdar://90960113>

Reviewed by Antti Koivisto.

Use the correct variable to mark the line.

Test: fast/multicol/incorrect-is-first-line-after-page-break-with-widow.html
* Source/WebCore/layout/integration/inline/InlineIteratorLineBox.cpp:
(WebCore::InlineIterator::LineBoxIterator::operator bool const):
* Source/WebCore/layout/integration/inline/InlineIteratorLineBox.h:
(WebCore::InlineIterator::LineBoxIterator::operator bool const): Deleted.
* Source/WebCore/layout/integration/inline/LayoutIntegrationPagination.cpp:
(WebCore::LayoutIntegration::adjustLinePositionsForPagination):
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::lineIndexAfterPageBreak):
* Source/WebCore/testing/Internals.h:
* Source/WebCore/testing/Internals.idl:
* LayoutTests/fast/multicol/incorrect-is-first-line-after-page-break-with-widow-expected.txt: Added.
* LayoutTests/fast/multicol/incorrect-is-first-line-after-page-break-with-widow.html: Added.

link: https://commits.webkit.org/250838@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/multicol/incorrect-is-first-line-after-page-break-with-widow-expected.txt [new file with mode: 0644]
LayoutTests/fast/multicol/incorrect-is-first-line-after-page-break-with-widow.html [new file with mode: 0644]
Source/WebCore/layout/integration/inline/InlineIteratorLineBox.cpp
Source/WebCore/layout/integration/inline/InlineIteratorLineBox.h
Source/WebCore/layout/integration/inline/LayoutIntegrationPagination.cpp
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl