Changeset 109984 in webkit
- Timestamp:
- Mar 6, 2012 5:13:54 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r109981 r109984 1 2012-03-06 Ryosuke Niwa <rniwa@webkit.org> 2 3 Can't select a line of RTL text on Facebook 4 https://bugs.webkit.org/show_bug.cgi?id=59435 5 6 Reviewed by Eric Seidel. 7 8 Added a regression test case. 9 10 * editing/selection/select-bidi-run-expected.txt: 11 * editing/selection/select-bidi-run.html: 12 1 13 2012-03-06 Adrienne Walker <enne@google.com> 2 14 -
trunk/LayoutTests/editing/selection/select-bidi-run-expected.txt
r101561 r109984 123 123 PASS selected "ABC" 124 124 125 Test "ABC" in "ABC": 126 Selecting from left to right 127 PASS selected "C" 128 PASS selected "BC" 129 PASS selected "ABC" 130 Selecting from right to left 131 PASS selected "A" 132 PASS selected "AB" 133 PASS selected "ABC" 134 125 135 PASS successfullyParsed is true 126 136 -
trunk/LayoutTests/editing/selection/select-bidi-run.html
r101561 r109984 47 47 48 48 <dt contenteditable style="position: relative;">aאבגb<div class="targetContainer">a<span class="target">אבג</span>b</div></dt> 49 <dd>C,BC,ABC|A,AB,ABC</dd> 50 51 <dt contenteditable dir="ltr"><span class="target" dir="rtl">אבג<br></span></dt> 49 52 <dd>C,BC,ABC|A,AB,ABC</dd> 50 53 -
trunk/Source/WebCore/ChangeLog
r109983 r109984 1 2012-03-06 Ryosuke Niwa <rniwa@webkit.org> 2 3 Can't select a line of RTL text on Facebook 4 https://bugs.webkit.org/show_bug.cgi?id=59435 5 6 Reviewed by Eric Seidel. 7 8 Deploy prevLeafChildIgnoringLineBreak and nextLeafChildIgnoringLineBreak 9 in RenderedPosition::leftBoundaryOfBidiRun and RenderedPosition::rightBoundaryOfBidiRun. 10 11 Without this patch, WebKit extends selection from right to left when the user selects 12 <span dir="rtl">ABC<br></span> from left to right by a mouse drag. 13 14 Test: editing/selection/select-bidi-run.html 15 16 * editing/RenderedPosition.cpp: 17 (WebCore::RenderedPosition::leftBoundaryOfBidiRun): 18 (WebCore::RenderedPosition::rightBoundaryOfBidiRun): 19 1 20 2012-03-06 Raphael Kubo da Costa <kubo@profusion.mobi> 2 21 -
trunk/Source/WebCore/editing/RenderedPosition.cpp
r109593 r109984 138 138 InlineBox* box = m_inlineBox; 139 139 do { 140 InlineBox* prev = box->prevLeafChild ();140 InlineBox* prev = box->prevLeafChildIgnoringLineBreak(); 141 141 if (!prev || prev->bidiLevel() < bidiLevelOfRun) 142 142 return RenderedPosition(box->renderer(), box, box->caretLeftmostOffset()); … … 155 155 InlineBox* box = m_inlineBox; 156 156 do { 157 InlineBox* next = box->nextLeafChild ();157 InlineBox* next = box->nextLeafChildIgnoringLineBreak(); 158 158 if (!next || next->bidiLevel() < bidiLevelOfRun) 159 159 return RenderedPosition(box->renderer(), box, box->caretRightmostOffset());
Note: See TracChangeset
for help on using the changeset viewer.