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
2010-03-05 Tony Chang <tony@chromium.org>
Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=33247 Backwards cursor movement incorrect when previous block ends with <br>. If the cursor is trying to move into a node that has a height of 0, skip over it. * editing/execCommand/move-selection-back-line-expected.txt: Added. * editing/execCommand/move-selection-back-line.html: Added. 2010-03-05 Tony Chang <tony@chromium.org> Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=33247 Backwards cursor movement incorrect when previous block ends with <br>. If the cursor is trying to move into a node that has a height of 0, skip over it. Test: editing/execCommand/move-selection-back-line.html * editing/visible_units.cpp: (WebCore::previousLinePosition): Canonical link: https://commits.webkit.org/46910@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
5 changed files
with
71 additions
and
10 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
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,6 @@ | ||
first line.. test test test test -[ ] test test test | ||
|
||
second line. Put your cursor here [ ] and press the up arrow. The cursor should appear in the green box on the first line | ||
|
||
PASS | ||
|
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,17 @@ | ||
<div contentEditable="true" style="font-family: monospace;"> | ||
<p>first line.. test test test test -<span id="target" style="background-color:green">[ ]</span> test test test<br/></p> | ||
<p>second line. Put your cursor here [<span id="test"> </span>] and press the up arrow. The cursor should appear in the green box on the first line</p> | ||
</div> | ||
<div id="results">FAILED</div> | ||
<script src="../editing.js"></script> | ||
<script> | ||
function editingTest() | ||
{ | ||
execMoveSelectionBackwardByLineCommand(); | ||
|
||
// Verify that we ended up in "target". | ||
if (window.getSelection().anchorNode.parentNode == document.getElementById("target")) | ||
document.getElementById("results").innerText = "PASS"; | ||
} | ||
runDumpAsTextEditingTest(false); | ||
</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