Changeset 98428 in webkit
- Timestamp:
- Oct 25, 2011 9:57:39 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r98425 r98428 1 2011-10-25 Xiaomei Ji <xji@chromium.org> 2 3 --webkit-visual-word does not work in multi-line 4 https://bugs.webkit.org/show_bug.cgi?id=61344 5 6 Reviewed by Ryosuke Niwa. 7 8 * editing/selection/move-by-word-visually-inline-block-positioned-element-expected.txt: Added. 9 * editing/selection/move-by-word-visually-inline-block-positioned-element.html: Added. 10 * editing/selection/move-by-word-visually-multi-line-expected.txt: 11 * editing/selection/move-by-word-visually-single-space-one-element-expected.txt: 12 * editing/selection/move-by-word-visually-single-space-one-element.html: 13 * platform/gtk/editing/selection/move-by-word-visually-multi-line-expected.txt: 14 1 15 2011-10-25 Erik Arvidsson <arv@chromium.org> 2 16 -
trunk/LayoutTests/editing/selection/move-by-word-visually-multi-line-expected.txt
r93935 r98428 8 8 Test 2, LTR: 9 9 Move right by one word 10 "abc def ghi jkl mn "[0, 4, 8, 12, 16, 18] FAIL expected: ["abc def ghi jkl mn "[ 0, 4, 8, 12, 16, 18, ]"opq rst uvw xyz"[ 0, 4, 8, 12, 15] 11 "abc def ghi jkl mn "[18, 18] FAIL expected "opq rst uvw xyz"[ 0] 12 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 13 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 14 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 10 "abc def ghi jkl mn "[0, 4, 8, 12, 16, 18], "opq rst uvw xyz"[0, 4, 8, 12, 15] 15 11 Move left by one word 16 "opq rst uvw xyz"[15, 12, 8, 4, 0] FAIL expected: ["opq rst uvw xyz"[ 15, 12, 8, 4, 0, ]"abc def ghi jkl mn "[ 16, 12, 8, 4, 0] 17 "opq rst uvw xyz"[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 18 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 19 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 20 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 12 "opq rst uvw xyz"[15, 12, 8, 4, 0], "abc def ghi jkl mn "[16, 12, 8, 4, 0] 21 13 Test 3, LTR: 22 14 Move right by one word … … 26 18 Test 4, LTR: 27 19 Move right by one word 28 "AAA AAA AAA AAA "[0, 3, 8, 11, 16] FAIL expected: ["AAA AAA AAA AAA "[ 0, 3, 8, 11, 16, ]"AAA AAA AAA AAA"[ 0, 3, 8, 11, 15] 29 "AAA AAA AAA AAA "[16, 16] FAIL expected "AAA AAA AAA AAA"[ 0] 30 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 31 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 32 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 20 "AAA AAA AAA AAA "[0, 3, 8, 11, 16], "AAA AAA AAA AAA"[0, 3, 8, 11, 15] 33 21 Move left by one word 34 "AAA AAA AAA AAA"[15, 11, 8, 3, 0] FAIL expected: ["AAA AAA AAA AAA"[ 15, 11, 8, 3, 0, ]"AAA AAA AAA AAA "[ 11, 8, 3, 0] 35 "AAA AAA AAA AAA"[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 36 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 37 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 38 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 22 "AAA AAA AAA AAA"[15, 11, 8, 3, 0], "AAA AAA AAA AAA "[11, 8, 3, 0] 39 23 Test 5, LTR: 40 24 Move right by one word … … 44 28 Test 6, LTR: 45 29 Move right by one word 46 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33, 36] FAIL expected: [" abc def AAA AAA hij AAA AAA uvw xyz "[ 1, 5, 9, 12, 17, 21, 25, 29, 33, 36, ]"AAA kj AAA mn opq AAA AAA"[ 0, 4, 7, 11, 14, 18, 22, 25] 47 " abc def AAA AAA hij AAA AAA uvw xyz "[36, 36] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 48 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 49 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 50 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 30 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 51 31 Move left by one word 52 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0] FAIL expected: ["AAA kj AAA mn opq AAA AAA"[ 25, 22, 18, 14, 11, 7, 4, 0, ]" abc def AAA AAA hij AAA AAA uvw xyz "[ 33, 29, 25, 21, 17, 12, 9, 5, 1] 53 "AAA kj AAA mn opq AAA AAA"[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 54 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 55 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 56 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 32 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[33, 29, 25, 21, 17, 12, 9, 5, 1] 57 33 Test 7, RTL: 58 34 Move left by one word … … 62 38 Test 8, RTL: 63 39 Move left by one word 64 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 18] FAIL expected: ["abc def ghi jkl mn "[ 0, 3, 8, 11, 16, 18, ]"opq rst uvw xyz"[ 0, 3, 8, 11, 15] 65 "abc def ghi jkl mn "[18, 18] FAIL expected "opq rst uvw xyz"[ 0] 66 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 67 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 68 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 40 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 18], "opq rst uvw xyz"[0, 3, 8, 11, 15] 69 41 Move right by one word 70 "opq rst uvw xyz"[15, 11, 8, 3, 0] FAIL expected: ["opq rst uvw xyz"[ 15, 11, 8, 3, 0, ]"abc def ghi jkl mn "[ 18, 16, 11, 8, 3, 0] 71 "opq rst uvw xyz"[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 72 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 73 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 74 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 42 "opq rst uvw xyz"[15, 11, 8, 3, 0], "abc def ghi jkl mn "[18, 16, 11, 8, 3, 0] 75 43 Test 9, RTL: 76 44 Move left by one word … … 80 48 Test 10, RTL: 81 49 Move left by one word 82 "AAA AAA AAA AAA "[0, 4, 8, 12, 16] FAIL expected: ["AAA AAA AAA AAA "[ 0, 4, 8, 12, 16, ]"AAA AAA AAA AAA"[ 0, 4, 8, 12, 15] 83 "AAA AAA AAA AAA "[16, 16] FAIL expected "AAA AAA AAA AAA"[ 0] 84 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 85 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 86 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 50 "AAA AAA AAA AAA "[0, 4, 8, 12, 16], "AAA AAA AAA AAA"[0, 4, 8, 12, 15] 87 51 Move right by one word 88 "AAA AAA AAA AAA"[15, 12, 8, 4, 0] FAIL expected: ["AAA AAA AAA AAA"[ 15, 12, 8, 4, 0, ]"AAA AAA AAA AAA "[ 12, 8, 4, 0] 89 "AAA AAA AAA AAA"[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 90 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 91 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 92 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 52 "AAA AAA AAA AAA"[15, 12, 8, 4, 0], "AAA AAA AAA AAA "[12, 8, 4, 0] 93 53 Test 11, RTL: 94 54 Move left by one word … … 98 58 Test 12, RTL: 99 59 Move left by one word 100 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 36] FAIL expected: [" abc def AAA AAA hij AAA AAA uvw xyz "[ 1, 4, 9, 13, 17, 21, 25, 29, 33, 36, ]"AAA kj AAA mn opq AAA AAA"[ 0, 4, 7, 11, 14, 18, 22, 25] 101 " abc def AAA AAA hij AAA AAA uvw xyz "[36, 36] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 102 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 103 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 104 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 60 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 105 61 Move right by one word 106 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0] FAIL expected: ["AAA kj AAA mn opq AAA AAA"[ 25, 22, 18, 14, 11, 7, 4, 0, ]" abc def AAA AAA hij AAA AAA uvw xyz "[ 36, 33, 29, 25, 21, 17, 13, 9, 4, 1] 107 "AAA kj AAA mn opq AAA AAA"[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 108 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 109 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 110 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 62 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[36, 33, 29, 25, 21, 17, 13, 9, 4, 1] 111 63 Test 13, LTR: 112 64 Move right by one word -
trunk/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element-expected.txt
r92223 r98428 81 81 Move right by one word 82 82 "ZQB abc RIG"[11, 8, 4, 0] 83 Test 17, LTR: 84 Move right by one word 85 <DIV>[0] 86 Move left by one word 87 <DIV>[0] 83 88 -
trunk/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html
r92223 r98428 64 64 <div dir=rtl class="test_move_by_word" title="11 8 4 0|0 4 8 11" contenteditable>שנב abc סטז</div> 65 65 66 <!-- empty div --> 67 <div dir=ltr class="test_move_by_word" title="0|0" contenteditable></div> 68 66 69 </div> 67 70 <pre id="console"></pre> -
trunk/LayoutTests/platform/gtk/editing/selection/move-by-word-visually-multi-line-expected.txt
r94702 r98428 8 8 Test 2, LTR: 9 9 Move right by one word 10 "abc def ghi jkl mn "[0, 4, 8, 12, 16, 18] FAIL expected: ["abc def ghi jkl mn "[ 0, 4, 8, 12, 16, 18, ]"opq rst uvw xyz"[ 0, 4, 8, 12, 15] 11 "abc def ghi jkl mn "[18, 18] FAIL expected "opq rst uvw xyz"[ 0] 12 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 13 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 14 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 10 "abc def ghi jkl mn "[0, 4, 8, 12, 16, 18], "opq rst uvw xyz"[0, 4, 8, 12, 15] 15 11 Move left by one word 16 "opq rst uvw xyz"[15, 12, 8, 4, 0] FAIL expected: ["opq rst uvw xyz"[ 15, 12, 8, 4, 0, ]"abc def ghi jkl mn "[ 16, 12, 8, 4, 0] 17 "opq rst uvw xyz"[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 18 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 19 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 20 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 16] 12 "opq rst uvw xyz"[15, 12, 8, 4, 0], "abc def ghi jkl mn "[16, 12, 8, 4, 0] 21 13 Test 3, LTR: 22 14 Move right by one word … … 26 18 Test 4, LTR: 27 19 Move right by one word 28 "AAA AAA AAA AAA "[0, 3, 8, 11, 16] FAIL expected: ["AAA AAA AAA AAA "[ 0, 3, 8, 11, 16, ]"AAA AAA AAA AAA"[ 0, 3, 8, 11, 15] 29 "AAA AAA AAA AAA "[16, 16] FAIL expected "AAA AAA AAA AAA"[ 0] 30 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 31 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 32 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 20 "AAA AAA AAA AAA "[0, 3, 8, 11, 16], "AAA AAA AAA AAA"[0, 3, 8, 11, 15] 33 21 Move left by one word 34 "AAA AAA AAA AAA"[15, 11, 8, 3, 0] FAIL expected: ["AAA AAA AAA AAA"[ 15, 11, 8, 3, 0, ]"AAA AAA AAA AAA "[ 11, 8, 3, 0] 35 "AAA AAA AAA AAA"[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 36 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 37 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 38 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 11] 22 "AAA AAA AAA AAA"[15, 11, 8, 3, 0], "AAA AAA AAA AAA "[11, 8, 3, 0] 39 23 Test 5, LTR: 40 24 Move right by one word … … 44 28 Test 6, LTR: 45 29 Move right by one word 46 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33, 36] FAIL expected: [" abc def AAA AAA hij AAA AAA uvw xyz "[ 1, 5, 9, 12, 17, 21, 25, 29, 33, 36, ]"AAA kj AAA mn opq AAA AAA"[ 0, 4, 7, 11, 14, 18, 22, 25] 47 " abc def AAA AAA hij AAA AAA uvw xyz "[36, 36] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 48 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 49 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 50 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 30 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 5, 9, 12, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 51 31 Move left by one word 52 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0] FAIL expected: ["AAA kj AAA mn opq AAA AAA"[ 25, 22, 18, 14, 11, 7, 4, 0, ]" abc def AAA AAA hij AAA AAA uvw xyz "[ 33, 29, 25, 21, 17, 12, 9, 5, 1] 53 "AAA kj AAA mn opq AAA AAA"[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 54 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 55 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 56 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 33] 32 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[33, 29, 25, 21, 17, 12, 9, 5, 1] 57 33 Test 7, RTL: 58 34 Move left by one word … … 62 38 Test 8, RTL: 63 39 Move left by one word 64 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 18] FAIL expected: ["abc def ghi jkl mn "[ 0, 3, 8, 11, 16, 18, ]"opq rst uvw xyz"[ 0, 3, 8, 11, 15] 65 "abc def ghi jkl mn "[18, 18] FAIL expected "opq rst uvw xyz"[ 0] 66 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 67 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 68 <DIV>[0, 0] FAIL expected "opq rst uvw xyz"[ 0] 40 "abc def ghi jkl mn "[0, 3, 8, 11, 16, 18], "opq rst uvw xyz"[0, 3, 8, 11, 15] 69 41 Move right by one word 70 "opq rst uvw xyz"[15, 11, 8, 3, 0] FAIL expected: ["opq rst uvw xyz"[ 15, 11, 8, 3, 0, ]"abc def ghi jkl mn "[ 18, 16, 11, 8, 3, 0] 71 "opq rst uvw xyz"[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 72 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 73 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 74 <DIV>[0, 0] FAIL expected "abc def ghi jkl mn "[ 18] 42 "opq rst uvw xyz"[15, 11, 8, 3, 0], "abc def ghi jkl mn "[18, 16, 11, 8, 3, 0] 75 43 Test 9, RTL: 76 44 Move left by one word … … 80 48 Test 10, RTL: 81 49 Move left by one word 82 "AAA AAA AAA AAA "[0, 4, 8, 12, 16] FAIL expected: ["AAA AAA AAA AAA "[ 0, 4, 8, 12, 16, ]"AAA AAA AAA AAA"[ 0, 4, 8, 12, 15] 83 "AAA AAA AAA AAA "[16, 16] FAIL expected "AAA AAA AAA AAA"[ 0] 84 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 85 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 86 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA"[ 0] 50 "AAA AAA AAA AAA "[0, 4, 8, 12, 16], "AAA AAA AAA AAA"[0, 4, 8, 12, 15] 87 51 Move right by one word 88 "AAA AAA AAA AAA"[15, 12, 8, 4, 0] FAIL expected: ["AAA AAA AAA AAA"[ 15, 12, 8, 4, 0, ]"AAA AAA AAA AAA "[ 12, 8, 4, 0] 89 "AAA AAA AAA AAA"[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 90 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 91 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 92 <DIV>[0, 0] FAIL expected "AAA AAA AAA AAA "[ 12] 52 "AAA AAA AAA AAA"[15, 12, 8, 4, 0], "AAA AAA AAA AAA "[12, 8, 4, 0] 93 53 Test 11, RTL: 94 54 Move left by one word … … 98 58 Test 12, RTL: 99 59 Move left by one word 100 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 36] FAIL expected: [" abc def AAA AAA hij AAA AAA uvw xyz "[ 1, 4, 9, 13, 17, 21, 25, 29, 33, 36, ]"AAA kj AAA mn opq AAA AAA"[ 0, 4, 7, 11, 14, 18, 22, 25] 101 " abc def AAA AAA hij AAA AAA uvw xyz "[36, 36] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 102 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 103 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 104 <DIV>[0, 0] FAIL expected "AAA kj AAA mn opq AAA AAA"[ 0] 60 " abc def AAA AAA hij AAA AAA uvw xyz "[1, 4, 9, 13, 17, 21, 25, 29, 33, 36], "AAA kj AAA mn opq AAA AAA"[0, 4, 7, 11, 14, 18, 22, 25] 105 61 Move right by one word 106 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0] FAIL expected: ["AAA kj AAA mn opq AAA AAA"[ 25, 22, 18, 14, 11, 7, 4, 0, ]" abc def AAA AAA hij AAA AAA uvw xyz "[ 36, 33, 29, 25, 21, 17, 13, 9, 4, 1] 107 "AAA kj AAA mn opq AAA AAA"[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 108 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 109 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 110 <DIV>[0, 0] FAIL expected " abc def AAA AAA hij AAA AAA uvw xyz "[ 36] 62 "AAA kj AAA mn opq AAA AAA"[25, 22, 18, 14, 11, 7, 4, 0], " abc def AAA AAA hij AAA AAA uvw xyz "[36, 33, 29, 25, 21, 17, 13, 9, 4, 1] 111 63 Test 13, LTR: 112 64 Move right by one word -
trunk/Source/WebCore/ChangeLog
r98427 r98428 1 2011-10-25 Xiaomei Ji <xji@chromium.org> 2 3 --webkit-visual-word does not work in multi-line 4 https://bugs.webkit.org/show_bug.cgi?id=61344 5 6 Reviewed by Ryosuke Niwa. 7 8 Get next or previous root inline box (which is not in the same 9 render object as the current root inline box) by traversing DOM node. 10 11 Test: editing/selection/move-by-word-visually-inline-block-positioned-element.html 12 13 * editing/visible_units.cpp: 14 (WebCore::previousRootInlineBox): 15 (WebCore::nextRootInlineBox): 16 (WebCore::leftInlineBox): 17 (WebCore::rightInlineBox): 18 1 19 2011-10-25 Adam Barth <abarth@webkit.org> 2 20 -
trunk/Source/WebCore/editing/visible_units.cpp
r98408 r98428 1427 1427 } 1428 1428 1429 static const RootInlineBox* previousRootInlineBox(const InlineBox* box) 1430 { 1431 Node* node = box->renderer()->node(); 1432 Node* enclosingBlockNode = enclosingNodeWithNonInlineRenderer(node); 1433 Node* previousNode = node->previousLeafNode(); 1434 while (previousNode && enclosingBlockNode == enclosingNodeWithNonInlineRenderer(previousNode)) 1435 previousNode = previousNode->previousLeafNode(); 1436 1437 while (previousNode) { 1438 Position pos = createLegacyEditingPosition(previousNode, caretMaxOffset(previousNode)); 1439 1440 if (pos.isCandidate()) { 1441 RenderedPosition renderedPos(pos, DOWNSTREAM); 1442 RootInlineBox* root = renderedPos.rootBox(); 1443 if (root) 1444 return root; 1445 } 1446 1447 previousNode = previousNode->previousLeafNode(); 1448 } 1449 return 0; 1450 } 1451 1452 static const RootInlineBox* nextRootInlineBox(const InlineBox* box) 1453 { 1454 Node* node = box->renderer()->node(); 1455 Node* enclosingBlockNode = enclosingNodeWithNonInlineRenderer(node); 1456 Node* nextNode = node->nextLeafNode(); 1457 while (nextNode && enclosingBlockNode == enclosingNodeWithNonInlineRenderer(nextNode)) 1458 nextNode = nextNode->nextLeafNode(); 1459 1460 while (nextNode) { 1461 Position pos; 1462 pos = createLegacyEditingPosition(nextNode, caretMinOffset(nextNode)); 1463 1464 if (pos.isCandidate()) { 1465 RenderedPosition renderedPos(pos, DOWNSTREAM); 1466 RootInlineBox* root = renderedPos.rootBox(); 1467 if (root) 1468 return root; 1469 } 1470 1471 nextNode = nextNode->nextLeafNode(); 1472 } 1473 return 0; 1474 } 1475 1429 1476 static const InlineBox* leftInlineBox(const InlineBox* box, TextDirection blockDirection) 1430 1477 { … … 1438 1485 return leftLineBox->lastLeafChild(); 1439 1486 1440 return 0; 1487 const RootInlineBox* leftRootInlineBox = isBlockLTR ? previousRootInlineBox(box) : 1488 nextRootInlineBox(box); 1489 return leftRootInlineBox ? leftRootInlineBox->lastLeafChild() : 0; 1441 1490 } 1442 1491 … … 1452 1501 return rightLineBox->firstLeafChild(); 1453 1502 1454 return 0; 1503 const RootInlineBox* rightRootInlineBox = isBlockLTR ? nextRootInlineBox(box) : 1504 previousRootInlineBox(box); 1505 return rightRootInlineBox ? rightRootInlineBox->firstLeafChild() : 0; 1455 1506 } 1456 1507
Note: See TracChangeset
for help on using the changeset viewer.