Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Text selection does not show continuous selection when dragging acros…
…s 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. Canonical link: https://commits.webkit.org/250838@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1 @@ | ||
5 lines left on the previous page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,61 @@ | ||
<style> | ||
div { | ||
widows: 15; | ||
font-family: Ahem; | ||
} | ||
</style> | ||
<!-- This test case only works in paginated mode --> | ||
<div> | ||
1 some text<br> | ||
2 some text<br> | ||
3 some text<br> | ||
4 some text<br> | ||
5 some text<br> | ||
6 some text<br> | ||
7 some text<br> | ||
8 some text<br> | ||
9 some text<br> | ||
10 some text<br> | ||
11 some text<br> | ||
12 some text<br> | ||
13 some text<br> | ||
14 some text<br> | ||
15 some text<br> | ||
16 some text<br> | ||
17 some text<br> | ||
18 some text<br> | ||
19 some text<br> | ||
20 some text<br> | ||
</div> | ||
<!-- This content overflows the page and we are required to wrap at least 15 lines to the next page --> | ||
<div id=page_overflow> | ||
1 some text<br> | ||
2 some text<br> | ||
3 some text<br> | ||
4 some text<br> | ||
5 some text<br> | ||
6 some text<br> | ||
7 some text<br> | ||
8 some text<br> | ||
9 some text<br> | ||
10 some text<br> | ||
11 some text<br> | ||
12 some text<br> | ||
13 some text<br> | ||
14 some text<br> | ||
15 some text<br> | ||
16 some text<br> | ||
17 some text<br> | ||
18 some text<br> | ||
19 some text<br> | ||
20 some text<br> | ||
</div> | ||
|
||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
if (window.internals) { | ||
internals.setPagination("LeftToRightPaginated", 0); | ||
document.body.innerText = internals.lineIndexAfterPageBreak(document.getElementById("page_overflow")) + " lines left on the previous page."; | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters