|
Lines 94-100
- (void)move:(UInt32)amount inDirection:
Source/WebCore/bindings/objc/DOMUIKitExtensions.mm_sec1
|
| 94 |
{ |
94 |
{ |
| 95 |
Range *range = core(self); |
95 |
Range *range = core(self); |
| 96 |
FrameSelection frameSelection; |
96 |
FrameSelection frameSelection; |
| 97 |
frameSelection.moveTo(range, DOWNSTREAM); |
97 |
frameSelection.moveTo(range); |
| 98 |
|
98 |
|
| 99 |
TextGranularity granularity = CharacterGranularity; |
99 |
TextGranularity granularity = CharacterGranularity; |
| 100 |
// Until WebKit supports vertical layout, "down" is equivalent to "forward by a line" and |
100 |
// Until WebKit supports vertical layout, "down" is equivalent to "forward by a line" and |
|
Lines 121-127
- (void)extend:(UInt32)amount inDirectio
Source/WebCore/bindings/objc/DOMUIKitExtensions.mm_sec2
|
| 121 |
{ |
121 |
{ |
| 122 |
Range *range = core(self); |
122 |
Range *range = core(self); |
| 123 |
FrameSelection frameSelection; |
123 |
FrameSelection frameSelection; |
| 124 |
frameSelection.moveTo(range, DOWNSTREAM); |
124 |
frameSelection.moveTo(range); |
| 125 |
|
125 |
|
| 126 |
for (UInt32 i = 0; i < amount; i++) |
126 |
for (UInt32 i = 0; i < amount; i++) |
| 127 |
frameSelection.modify(FrameSelection::AlterationExtend, (SelectionDirection)direction, CharacterGranularity); |
127 |
frameSelection.modify(FrameSelection::AlterationExtend, (SelectionDirection)direction, CharacterGranularity); |