Changeset 130411 in webkit
- Timestamp:
- Oct 4, 2012, 11:36:44 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r130410 r130411 1 2012-10-03 Ryosuke Niwa <rniwa@webkit.org> 2 3 ReplaceSelectionCommand should merge text nodes 4 https://bugs.webkit.org/show_bug.cgi?id=98188 5 6 Reviewed by Levi Weintraub. 7 8 Rebaselined tests. 9 10 * editing/deleting/merge-paragraphs-with-transparent-background-expected.txt: 11 * editing/deleting/paste-with-transparent-background-color-expected.txt: 12 * editing/execCommand/outdent-selection-expected.txt: 13 * editing/execCommand/remove-list-items-expected.txt: 14 * editing/inserting/insert-3907422-fix-expected.txt: 15 * editing/pasteboard/avoid-copying-body-with-background-expected.txt: 16 * editing/pasteboard/block-wrappers-necessary-expected.txt: 17 * editing/pasteboard/drag-drop-list-expected.txt: 18 * editing/pasteboard/merge-end-5-expected.txt: 19 * editing/pasteboard/paste-before-tab-span-expected.txt: 20 * editing/pasteboard/paste-into-table-cell-expected.txt: 21 * editing/pasteboard/paste-text-001-expected.txt: 22 * editing/pasteboard/paste-text-002-expected.txt: 23 * editing/pasteboard/paste-text-003-expected.txt: 24 * editing/pasteboard/paste-text-010-expected.txt: 25 * editing/pasteboard/paste-text-at-tabspan-001-expected.txt: 26 * editing/pasteboard/paste-unrendered-select-expected.txt: 27 * editing/pasteboard/smart-paste-001-expected.txt: 28 * editing/pasteboard/smart-paste-002-expected.txt: 29 * editing/pasteboard/smart-paste-003-expected.txt: 30 * editing/pasteboard/smart-paste-004-expected.txt: 31 * editing/pasteboard/smart-paste-005-expected.txt: 32 * editing/pasteboard/smart-paste-006-expected.txt: 33 * fast/events/ondragenter-expected.txt: 34 * fast/lists/drag-into-marker.html: 35 * platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt: 36 * platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt: 37 * platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt: 38 * platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt: 39 * platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt: 40 * platform/mac/editing/deleting/merge-no-br-expected.txt: 41 * platform/mac/editing/execCommand/find-after-replace-expected.txt: 42 * platform/mac/editing/execCommand/paste-1-expected.txt: 43 * platform/mac/editing/execCommand/paste-2-expected.txt: 44 * platform/mac/editing/pasteboard/4944770-2-expected.txt: 45 * platform/mac/editing/pasteboard/5006779-expected.txt: 46 * platform/mac/editing/pasteboard/5028447-expected.txt: 47 * platform/mac/editing/pasteboard/8145-3-expected.txt: 48 * platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt: 49 * platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt: 50 * platform/mac/editing/pasteboard/merge-end-borders-expected.txt: 51 * platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt: 52 * platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt: 53 * platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt: 54 * platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt: 55 * platform/mac/editing/pasteboard/paste-match-style-001-expected.txt: 56 * platform/mac/editing/pasteboard/paste-text-004-expected.txt: 57 * platform/mac/editing/pasteboard/paste-text-005-expected.txt: 58 * platform/mac/editing/pasteboard/paste-text-008-expected.txt: 59 * platform/mac/editing/pasteboard/paste-text-009-expected.txt: 60 * platform/mac/editing/pasteboard/smart-drag-drop-expected.txt: 61 * platform/mac/editing/pasteboard/smart-paste-007-expected.txt: 62 * platform/mac/editing/pasteboard/smart-paste-008-expected.txt: 63 * platform/mac/editing/pasteboard/subframe-dragndrop-1-expected.txt: 64 * platform/mac/editing/pasteboard/unrendered-br-expected.txt: 65 1 66 2012-10-04 Tony Chang <tony@chromium.org> 2 67 -
trunk/LayoutTests/editing/deleting/merge-paragraphs-with-transparent-background-expected.txt
r99067 r130411 5 5 | <p> 6 6 | id="destination" 7 | "hello<#selection-caret>" 8 | "world" 7 | "hello<#selection-caret>world" 9 8 | " 10 9 " -
trunk/LayoutTests/editing/deleting/paste-with-transparent-background-color-expected.txt
r126656 r130411 11 11 12 12 After cut and paste: 13 | "hello" 14 | " " 13 | "hello " 15 14 | <span> 16 15 | class="test" -
trunk/LayoutTests/editing/execCommand/outdent-selection-expected.txt
r88699 r130411 20 20 | " 21 21 22 " 23 | "Foo" 22 Foo" 24 23 | <br> 25 24 | "Bar" … … 33 32 | <br> 34 33 | " 35 " 36 | "Dinner time?" 34 Dinner time?" 37 35 | <br> 38 36 | <ul> -
trunk/LayoutTests/editing/execCommand/remove-list-items-expected.txt
r96257 r130411 14 14 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 29 of #text > DIV > BODY > HTML > #document to 29 of #text >DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of DIV > BODY > HTML > #document to 14 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 18 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 19 19 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 20 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 5 of DIV > BODY > HTML > #document to 15 of DIV > BODY > HTML > #document toDOMRange:range from 15 of DIV > BODY > HTML > #document to 15of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE20 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of DIV > BODY > HTML > #document to 14 of DIV > BODY > HTML > #document toDOMRange:range from 14 of DIV > BODY > HTML > #document to 14 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 21 21 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 22 22 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/editing/inserting/insert-3907422-fix-expected.txt
r87604 r130411 32 32 | <blockquote> 33 33 | "bar" 34 | "baz" 35 | "foo" 34 | "bazfoo" 36 35 | <blockquote> 37 36 | "bar" -
trunk/LayoutTests/editing/pasteboard/avoid-copying-body-with-background-expected.txt
r98794 r130411 15 15 | "Copied content" 16 16 | <li> 17 | "hello, world" 18 | " " 17 | "hello, world " 19 18 | <a> 20 19 | href="http://www.webkit.org/" -
trunk/LayoutTests/editing/pasteboard/block-wrappers-necessary-expected.txt
r96257 r130411 110 110 | <p> 111 111 | <p> 112 | "This is an" 113 | " " 112 | "This is an " 114 113 | <b> 115 114 | "interactive" -
trunk/LayoutTests/editing/pasteboard/drag-drop-list-expected.txt
r87778 r130411 9 9 | id="contents" 10 10 | style="border: 1px solid red;" 11 | "DropAboveMe" 12 | "<#selection-anchor> DragMe<#selection-focus>" 11 | "DropAboveMe<#selection-anchor> DragMe<#selection-focus>" 13 12 | " 14 13 " -
trunk/LayoutTests/editing/pasteboard/merge-end-5-expected.txt
r96870 r130411 15 15 | <div> 16 16 | style="border: 1px solid red;" 17 | "This text should have a red border around<#selection-caret>" 18 | " it." 17 | "This text should have a red border around<#selection-caret> it." -
trunk/LayoutTests/editing/pasteboard/paste-before-tab-span-expected.txt
r84885 r130411 4 4 | <span> 5 5 | id="test" 6 | "hello" 7 | "helloa<#selection-caret>" 6 | "hellohelloa<#selection-caret>" 8 7 | <span> 9 8 | class="Apple-tab-span" -
trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-expected.txt
r115869 r130411 9 9 | <tr> 10 10 | <td> 11 | " " 12 | "Drag me<#selection-caret>" 11 | " Drag me<#selection-caret>" 13 12 | <td> 14 13 | " " -
trunk/LayoutTests/editing/pasteboard/paste-text-001-expected.txt
r96257 r130411 9 9 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > SPAN > DIV > BODY > HTML > #document to 10 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > SPAN > DIV > BODY > HTML > #document to 10 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 19 19 | <span> 20 20 | id="test" 21 | "foo bar" 22 | "bar<#selection-caret>" 21 | "foo barbar<#selection-caret>" 23 22 | " baz" 24 23 | " -
trunk/LayoutTests/editing/pasteboard/paste-text-002-expected.txt
r96257 r130411 55 55 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 56 56 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 57 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 11of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE57 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 45 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 58 58 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 59 59 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 60 60 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 61 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 61 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 62 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 43 of #text > DIV > DIV > BODY > HTML > #document to 43 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 62 63 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 63 64 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 64 65 This tests copy and pastes "is a tide in the affairs of men,\nWhich taken" twice. 65 66 66 There 67 There is a tide in the affairs of men, 67 68 Which takenis a tide in the affairs of men, 68 Which taken 69 Which taken at the flood leads on to fortune. 69 70 Omitted, all the voyage of their life, 70 71 Is bound in shallows and in miseries. 71 72 execCopyCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div> <div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div> 72 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div>73 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which takenis a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div>73 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div> 74 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which takenis a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div> -
trunk/LayoutTests/editing/pasteboard/paste-text-003-expected.txt
r96257 r130411 97 97 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 98 98 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 99 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 7of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE99 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 38 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 100 100 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 101 101 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 102 102 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 103 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 103 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 104 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 39 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 39 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 104 105 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 105 106 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/editing/pasteboard/paste-text-010-expected.txt
r93302 r130411 9 9 | <br> 10 10 | <br> 11 | "of men." 12 | "of men.<#selection-caret>" 11 | "of men.of men.<#selection-caret>" 13 12 | " 14 13 " -
trunk/LayoutTests/editing/pasteboard/paste-text-at-tabspan-001-expected.txt
r96257 r130411 2 2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 3 3 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 6 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 15 15 | <span> 16 16 | id="test" 17 | "a" 18 | "ax<#selection-caret>" 17 | "aax<#selection-caret>" 19 18 | <span> 20 19 | class="Apple-tab-span" -
trunk/LayoutTests/editing/pasteboard/paste-unrendered-select-expected.txt
r87493 r130411 1 1 This tests copy/paste of an unrendered select. The options inside of it should not be pasted. 2 | "Hello" 3 | " " 2 | "Hello " 4 3 | "World<#selection-caret>" -
trunk/LayoutTests/editing/pasteboard/smart-paste-001-expected.txt
r87495 r130411 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 7 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 14 14 A space should be added between the preexisting word and the word that's pasted. It should like this: 15 15 test test 16 test 16 test test 17 17 execCopyCommand: <div id="test" class="editing"> test </div> 18 execPasteCommand: <div id="test" class="editing"> test test</div>18 execPasteCommand: <div id="test" class="editing"> test test</div> -
trunk/LayoutTests/editing/pasteboard/smart-paste-002-expected.txt
r87495 r130411 9 9 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 17 17 A space should be added after the pasted word before the preexising word. It should like this: 18 18 test test 19 test 19 test test 20 20 execCopyCommand: <div id="test" class="editing"> test </div> 21 execPasteCommand: <div id="test" class="editing">test test </div>21 execPasteCommand: <div id="test" class="editing">test test </div> -
trunk/LayoutTests/editing/pasteboard/smart-paste-003-expected.txt
r96257 r130411 7 7 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 15 15 A space should be added between the preexisting word and the word that's pasted. No space should be added after the pasted word. It should like this: 16 16 test test test 17 test testtest17 test test test 18 18 execCopyCommand: <div id="test" class="editing"> test test </div> 19 execPasteCommand: <div id="test" class="editing"> test test test</div>19 execPasteCommand: <div id="test" class="editing"> test test test</div> -
trunk/LayoutTests/editing/pasteboard/smart-paste-004-expected.txt
r96257 r130411 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 17 17 A space should be added after the pasted word before the other preexisting word. It should like this: 18 18 test test test 19 test testtest19 test test test 20 20 execCopyCommand: <div id="test" class="editing"> test test </div> 21 execPasteCommand: <div id="test" class="editing"> test test test</div>21 execPasteCommand: <div id="test" class="editing"> test test test</div> -
trunk/LayoutTests/editing/pasteboard/smart-paste-005-expected.txt
r96257 r130411 11 11 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 19 19 Spaces should be added before and after the pasted word. It should look like this: 20 20 te test st 21 te testst21 te test st 22 22 execCopyCommand: <div id="test" class="editing"> test </div> 23 execPasteCommand: <div id="test" class="editing"> te test st</div>23 execPasteCommand: <div id="test" class="editing"> te test st</div> -
trunk/LayoutTests/editing/pasteboard/smart-paste-006-expected.txt
r96257 r130411 17 17 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 18 18 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 19 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE19 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 20 20 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 21 21 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/fast/events/ondragenter-expected.txt
r21687 r130411 1 1 2 Success: 2 Success: Text 3 3 This automated layout test checks to see that ondragenter events are being sent. -
trunk/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-018-expected.txt
r96264 r130411 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE10 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 11 11 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 12 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 24 24 RenderBlock {DIV} at (0,0) size 784x112 [border: (2px solid #FF0000)] 25 25 RenderBlock (anonymous) at (14,14) size 756x28 26 RenderText {#text} at (0,0) size 15x28 27 text run at (0,0) width 15: "T" 28 RenderText {#text} at (15,0) size 67x28 29 text run at (15,0) width 67: "est OK" 26 RenderText {#text} at (0,0) size 82x28 27 text run at (0,0) width 82: "Test OK" 30 28 RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)] 31 29 RenderText {#text} at (14,14) size 111x28 -
trunk/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-019-expected.txt
r96264 r130411 7 7 EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > DIV > BODY > HTML > #document 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 0of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderBlock {DIV} at (0,80) size 784x56 21 21 RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)] 22 RenderText {#text} at (14,14) size 17x28 23 text run at (14,14) width 17: "X" 24 RenderText {#text} at (31,14) size 17x28 25 text run at (31,14) width 17: "X" 22 RenderText {#text} at (14,14) size 34x28 23 text run at (14,14) width 34: "XX" 26 24 RenderText {#text} at (0,0) size 0x0 27 25 caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-020-expected.txt
r96264 r130411 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 0of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 22 22 RenderBlock {DIV} at (0,80) size 784x56 23 23 RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)] 24 RenderText {#text} at (14,14) size 17x28 25 text run at (14,14) width 17: "X" 26 RenderText {#text} at (31,14) size 17x28 27 text run at (31,14) width 17: "X" 24 RenderText {#text} at (14,14) size 34x28 25 text run at (14,14) width 34: "XX" 28 26 RenderText {#text} at (0,0) size 0x0 29 27 caret: position 2 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-021-expected.txt
r96264 r130411 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 25 25 RenderBlock {DIV} at (0,0) size 784x112 [border: (2px solid #FF0000)] 26 26 RenderBlock (anonymous) at (14,14) size 756x28 27 RenderText {#text} at (0,0) size 17x28 28 text run at (0,0) width 17: "X" 29 RenderText {#text} at (17,0) size 17x28 30 text run at (17,0) width 17: "X" 27 RenderText {#text} at (0,0) size 34x28 28 text run at (0,0) width 34: "XX" 31 29 RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)] 32 30 RenderText {#text} at (14,14) size 34x28 -
trunk/LayoutTests/platform/mac/editing/deleting/delete-block-merge-contents-022-expected.txt
r96264 r130411 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 25 25 RenderBlock {DIV} at (0,0) size 784x140 [border: (2px solid #FF0000)] 26 26 RenderBlock (anonymous) at (14,14) size 756x28 27 RenderText {#text} at (0,0) size 17x28 28 text run at (0,0) width 17: "X" 29 RenderText {#text} at (17,0) size 17x28 30 text run at (17,0) width 17: "X" 27 RenderText {#text} at (0,0) size 34x28 28 text run at (0,0) width 34: "XX" 31 29 RenderBlock {DIV} at (14,42) size 756x84 [border: (2px solid #008000)] 32 30 RenderBlock {DIV} at (14,14) size 728x56 [border: (2px solid #FFA500)] -
trunk/LayoutTests/platform/mac/editing/deleting/merge-no-br-expected.txt
r96264 r130411 17 17 RenderBlock {DIV} at (8,52) size 768x176 18 18 RenderBlock {DIV} at (16,16) size 736x40 [border: (3px solid #FF0000)] 19 RenderText {#text} at (11,11) size 27x18 20 text run at (11,11) width 27: "One" 21 RenderText {#text} at (38,11) size 30x18 22 text run at (38,11) width 30: "Two" 19 RenderText {#text} at (11,11) size 57x18 20 text run at (11,11) width 57: "OneTwo" 23 21 RenderBlock {DIV} at (16,64) size 736x96 [border: (3px solid #008000)] 24 22 RenderBlock (anonymous) at (11,11) size 714x0 -
trunk/LayoutTests/platform/mac/editing/execCommand/find-after-replace-expected.txt
r96264 r130411 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > BODY > HTML > #document to 3 of #text > BODY > HTML > #document toDOMRange:range from 3 of #text > BODY > HTML > #document to 3of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > BODY > HTML > #document to 3 of #text > BODY > HTML > #document toDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 29 29 RenderBlock {HTML} at (0,0) size 300x150 30 30 RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0] 31 RenderText {#text} at (0,0) size 31x18 32 text run at (0,0) width 31: "A B " 33 RenderText {#text} at (31,0) size 27x18 34 text run at (31,0) width 27: "A B" 31 RenderText {#text} at (0,0) size 58x18 32 text run at (0,0) width 58: "A B A B" 35 33 RenderText {#text} at (0,0) size 0x0 36 34 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/editing/execCommand/paste-1-expected.txt
r96264 r130411 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 3 of #text > BODY > HTML > #document to 3of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 30 30 RenderBlock {HTML} at (0,0) size 300x150 31 31 RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0] 32 RenderText {#text} at (0,0) size 49x18 33 text run at (0,0) width 49: "foo bar " 34 RenderText {#text} at (49,0) size 22x18 35 text run at (49,0) width 22: "baz" 32 RenderText {#text} at (0,0) size 71x18 33 text run at (0,0) width 71: "foo bar baz" 36 34 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt
r96264 r130411 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 3 of #text > BODY > HTML > #document to 3of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 30 30 RenderBlock {HTML} at (0,0) size 300x150 31 31 RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0] 32 RenderText {#text} at (0,0) size 49x18 33 text run at (0,0) width 49: "foo bar " 34 RenderText {#text} at (49,0) size 22x18 35 text run at (49,0) width 22: "baz" 32 RenderText {#text} at (0,0) size 71x18 33 text run at (0,0) width 71: "foo bar baz" 36 34 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/editing/pasteboard/4944770-2-expected.txt
r63291 r130411 15 15 text run at (8,2) width 7: "1" 16 16 RenderBlock {DIV} at (0,74) size 784x22 17 RenderText {#text} at (0,1) size 8x18 18 text run at (0,1) width 8: "x" 19 RenderText {#text} at (8,1) size 4x18 20 text run at (8,1) width 4: " " 17 RenderText {#text} at (0,1) size 12x18 18 text run at (0,1) width 12: "x " 21 19 RenderMenuList {SELECT} at (14,2) size 38x18 [bgcolor=#FFFFFF] 22 20 RenderBlock (anonymous) at (0,0) size 38x18 … … 27 25 RenderText {#text} at (58,1) size 8x18 28 26 text run at (58,1) width 8: "x" 29 caret: position 1 of child 3{#text} of child 4 {DIV} of body27 caret: position 1 of child 2 {#text} of child 4 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/5006779-expected.txt
r126704 r130411 22 22 RenderText {#text} at (12,0) size 83x18 23 23 text run at (12,0) width 83: "Hello World." 24 caret: position 2 of child 1{#text} of child 2 {DIV} of body24 caret: position 2 of child 0 {#text} of child 2 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/5028447-expected.txt
r63403 r130411 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderText {#text} at (0,0) size 418x29 7 text run at (0,0) width 418: "All the text here should be the same size. " 8 RenderText {#text} at (418,0) size 784x58 9 text run at (418,0) width 361: "All the text here should be the same" 6 RenderText {#text} at (0,0) size 784x58 7 text run at (0,0) width 779: "All the text here should be the same size. All the text here should be the same" 10 8 text run at (779,0) width 5: " " 11 9 text run at (0,29) width 45: "size." 12 10 text run at (45,29) width 6: " " 13 11 RenderText {#text} at (0,0) size 0x0 14 caret: position 43 of child 1{#text} of body12 caret: position 87 of child 0 {#text} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/8145-3-expected.txt
r96264 r130411 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 7 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderBlock {DIV} at (0,70) size 784x56 [border: (1px solid #000000)] 21 21 RenderBlock {DIV} at (1,1) size 782x18 22 RenderText {#text} at (0,0) size 5x18 23 text run at (0,0) width 5: "f" 24 RenderText {#text} at (5,0) size 20x18 25 text run at (5,0) width 20: "bar" 22 RenderText {#text} at (0,0) size 25x18 23 text run at (0,0) width 25: "fbar" 26 24 RenderBlock (anonymous) at (1,19) size 782x18 27 25 RenderText {#text} at (0,0) size 22x18 -
trunk/LayoutTests/platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt
r96264 r130411 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 5 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionDropped 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 5of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 10 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 7 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 17 17 text run at (0,18) width 86: "\"worldhello\"." 18 18 RenderBlock {DIV} at (0,52) size 784x18 19 RenderText {#text} at (0,0) size 37x18 20 text run at (0,0) width 37: "world" 21 RenderText {#text} at (37,0) size 31x18 22 text run at (37,0) width 31: "hello" 23 selection start: position 0 of child 1 {#text} of child 3 {DIV} of body 24 selection end: position 5 of child 1 {#text} of child 3 {DIV} of body 19 RenderText {#text} at (0,0) size 68x18 20 text run at (0,0) width 68: "worldhello" 21 selection start: position 5 of child 0 {#text} of child 3 {DIV} of body 22 selection end: position 10 of child 0 {#text} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt
r96264 r130411 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 13of #text > DIV > DIV > BODY > HTML > #document12 EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text > DIV > DIV > BODY > HTML > #document to 21 of #text > DIV > DIV > BODY > HTML > #document 13 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 14 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 16 16 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 17 17 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 18 EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 16of #text > DIV > DIV > BODY > HTML > #document18 EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text > DIV > DIV > BODY > HTML > #document to 24 of #text > DIV > DIV > BODY > HTML > #document 19 19 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 20 20 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/mac/editing/pasteboard/merge-end-borders-expected.txt
r96264 r130411 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE10 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 47 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 11 11 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 12 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 29 29 RenderBlock {DIV} at (0,104) size 784x38 30 30 RenderBlock (anonymous) at (0,0) size 784x18 31 RenderText {#text} at (0,0) size 32x18 32 text run at (0,0) width 32: "First " 33 RenderText {#text} at (32,0) size 63x18 34 text run at (32,0) width 63: "paragraph" 31 RenderText {#text} at (0,0) size 95x18 32 text run at (0,0) width 95: "First paragraph" 35 33 RenderBlock {DIV} at (0,18) size 784x20 [border: (1px solid #FF0000)] 36 RenderText {#text} at (1,1) size 28x18 37 text run at (1,1) width 28: "This" 38 RenderText {#text} at (29,1) size 271x18 39 text run at (29,1) width 271: " text should be surrounded by a red border." 40 caret: position 4 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of body 34 RenderText {#text} at (1,1) size 299x18 35 text run at (1,1) width 299: "This text should be surrounded by a red border." 36 caret: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-007-expected.txt
r80121 r130411 14 14 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 1of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 18 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 50 50 RenderBR {BR} at (78,22) size 0x0 51 51 RenderBlock {DIV} at (2,30) size 780x28 52 RenderText {#text} at (0,0) size 7x28 53 text run at (0,0) width 7: "l" 54 RenderText {#text} at (7,0) size 72x28 55 text run at (7,0) width 72: "ine two" 52 RenderText {#text} at (0,0) size 79x28 53 text run at (0,0) width 79: "line two" 56 54 caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-008-expected.txt
r80121 r130411 14 14 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 18 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 50 50 RenderBlock (anonymous) at (2,30) size 780x0 51 51 RenderBlock {DIV} at (2,30) size 780x28 52 RenderText {#text} at (0,0) size 7x28 53 text run at (0,0) width 7: "l" 54 RenderText {#text} at (7,0) size 72x28 55 text run at (7,0) width 72: "ine two" 52 RenderText {#text} at (0,0) size 79x28 53 text run at (0,0) width 79: "line two" 56 54 caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-009-expected.txt
r80121 r130411 14 14 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > DIV > BODY > HTML > #document to 1of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 18 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 51 51 RenderBR {BR} at (78,22) size 0x0 52 52 RenderBlock {DIV} at (0,28) size 780x28 53 RenderText {#text} at (0,0) size 7x28 54 text run at (0,0) width 7: "l" 55 RenderText {#text} at (7,0) size 72x28 56 text run at (7,0) width 72: "ine two" 53 RenderText {#text} at (0,0) size 79x28 54 text run at (0,0) width 79: "line two" 57 55 caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-line-endings-010-expected.txt
r80121 r130411 14 14 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 18 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 50 50 text run at (0,0) width 78: "line one" 51 51 RenderBlock (anonymous) at (0,28) size 780x28 52 RenderText {#text} at (0,0) size 7x28 53 text run at (0,0) width 7: "l" 54 RenderText {#text} at (7,0) size 72x28 55 text run at (7,0) width 72: "ine two" 52 RenderText {#text} at (0,0) size 79x28 53 text run at (0,0) width 79: "line two" 56 54 caret: position 1 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-match-style-001-expected.txt
r96870 r130411 12 12 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 13 13 EDITING DELEGATE: shouldInsertText:b replacingDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1 of #text > B > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 14 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1of #text > B > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE14 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > B > DIV > DIV > BODY > HTML > #document to 2 of #text > B > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 16 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 42 42 RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)] 43 43 RenderInline {B} at (0,0) size 25x28 44 RenderText {#text} at (2,2) size 12x28 45 text run at (2,2) width 12: "a" 46 RenderText {#text} at (14,2) size 13x28 47 text run at (14,2) width 13: "b" 44 RenderText {#text} at (2,2) size 25x28 45 text run at (2,2) width 25: "ab" 48 46 RenderBlock (anonymous) at (0,32) size 784x0 49 47 RenderText {#text} at (0,0) size 0x0 50 caret: position 1 of child 1{#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body48 caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-004-expected.txt
r96264 r130411 52 52 RenderBody {BODY} at (8,8) size 784x584 53 53 RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)] 54 RenderText {#text} at (14,14) size 63x28 55 text run at (14,14) width 63: "There " 56 RenderText {#text} at (77,14) size 285x28 57 text run at (77,14) width 285: "is a tide in the affairs of men," 54 RenderText {#text} at (14,14) size 348x28 55 text run at (14,14) width 348: "There is a tide in the affairs of men," 58 56 RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)] 59 57 RenderText {#text} at (14,14) size 434x28 -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-005-expected.txt
r96264 r130411 55 55 RenderBody {BODY} at (8,8) size 784x584 56 56 RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)] 57 RenderText {#text} at (14,14) size 63x28 58 text run at (14,14) width 63: "There " 59 RenderText {#text} at (77,14) size 285x28 60 text run at (77,14) width 285: "is a tide in the affairs of men," 57 RenderText {#text} at (14,14) size 348x28 58 text run at (14,14) width 348: "There is a tide in the affairs of men," 61 59 RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)] 62 60 RenderText {#text} at (14,14) size 285x28 -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-008-expected.txt
r96264 r130411 119 119 text run at (0,0) width 351: "Omitted, all the voyage of their life," 120 120 RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)] 121 RenderText {#text} at (14,14) size 114x28 122 text run at (14,14) width 114: "Is bound in " 123 RenderText {#text} at (128,14) size 243x28 124 text run at (128,14) width 243: "shallows and in miseries." 121 RenderText {#text} at (14,14) size 357x28 122 text run at (14,14) width 357: "Is bound in shallows and in miseries." 125 123 RenderBlock (anonymous) at (14,98) size 756x28 126 RenderText {#text} at (0,0) size 197x28 127 text run at (0,0) width 197: "Upon such a full sea" 128 RenderText {#text} at (197,0) size 243x28 129 text run at (197,0) width 243: "shallows and in miseries." 124 RenderText {#text} at (0,0) size 440x28 125 text run at (0,0) width 440: "Upon such a full seashallows and in miseries." 130 126 RenderBlock (anonymous) at (0,140) size 784x0 131 127 RenderBlock {DIV} at (0,140) size 784x56 [border: (2px solid #FF0000)] 132 RenderText {#text} at (14,14) size 197x28 133 text run at (14,14) width 197: "Upon such a full sea" 134 RenderText {#text} at (211,14) size 185x28 135 text run at (211,14) width 185: " are we now afloat," 128 RenderText {#text} at (14,14) size 382x28 129 text run at (14,14) width 382: "Upon such a full sea are we now afloat," 136 130 caret: position 20 of child 0 {#text} of child 2 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-009-expected.txt
r80121 r130411 82 82 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 83 83 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 84 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 1of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE84 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 39 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 85 85 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 86 86 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 87 87 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 88 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 88 89 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 89 90 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification … … 106 107 RenderBlock (anonymous) at (0,140) size 784x0 107 108 RenderBlock {DIV} at (0,140) size 784x56 [border: (2px solid #FF0000)] 108 RenderText {#text} at (14,14) size 17x28 109 text run at (14,14) width 17: "U" 110 RenderText {#text} at (31,14) size 365x28 111 text run at (31,14) width 365: "pon such a full sea are we now afloat," 109 RenderText {#text} at (14,14) size 382x28 110 text run at (14,14) width 382: "Upon such a full sea are we now afloat," 112 111 caret: position 1 of child 0 {#text} of child 2 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/smart-drag-drop-expected.txt
r96264 r130411 5 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 6 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionDropped 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 6of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 18 18 text run at (0,18) width 434: "test manually double click on the \"hello\" and drag it to after \"world\"." 19 19 RenderBlock {DIV} at (0,52) size 784x18 20 RenderText {#text} at (0,0) size 37x18 21 text run at (0,0) width 37: "world" 22 RenderText {#text} at (37,0) size 35x18 23 text run at (37,0) width 35: " hello" 24 selection start: position 0 of child 1 {#text} of child 3 {DIV} of body 25 selection end: position 6 of child 1 {#text} of child 3 {DIV} of body 20 RenderText {#text} at (0,0) size 72x18 21 text run at (0,0) width 72: "world hello" 22 selection start: position 5 of child 0 {#text} of child 3 {DIV} of body 23 selection end: position 11 of child 0 {#text} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/smart-paste-007-expected.txt
r96264 r130411 18 18 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 19 19 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 20 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE20 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 21 21 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 22 22 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 45 45 RenderBlock {DIV} at (0,236) size 784x32 46 46 RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)] 47 RenderText {#text} at (2,2) size 6x28 48 text run at (2,2) width 6: "." 49 RenderText {#text} at (8,2) size 40x28 50 text run at (8,2) width 40: " test" 51 RenderText {#text} at (48,2) size 6x28 52 text run at (48,2) width 6: "." 47 RenderText {#text} at (2,2) size 52x28 48 text run at (2,2) width 52: ". test." 53 49 RenderBlock (anonymous) at (0,32) size 784x0 54 caret: position 5 of child 1{#text} of child 1 {DIV} of child 3 {DIV} of body50 caret: position 6 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/smart-paste-008-expected.txt
r96264 r130411 11 11 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 31 31 RenderBlock {DIV} at (0,104) size 784x18 32 32 RenderBlock {DIV} at (0,0) size 784x18 33 RenderText {#text} at (0,0) size 5x18 34 text run at (0,0) width 5: "f" 35 RenderText {#text} at (5,0) size 25x18 36 text run at (5,0) width 25: " foo" 37 RenderText {#text} at (30,0) size 24x18 38 text run at (30,0) width 24: " bar" 33 RenderText {#text} at (0,0) size 54x18 34 text run at (0,0) width 54: "f foo bar" 39 35 RenderBlock (anonymous) at (0,18) size 784x0 40 caret: position 4 of child 1{#text} of child 0 {DIV} of child 4 {DIV} of body36 caret: position 5 of child 0 {#text} of child 0 {DIV} of child 4 {DIV} of body -
trunk/LayoutTests/platform/mac/editing/pasteboard/subframe-dragndrop-1-expected.txt
r96264 r130411 11 11 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document givenAction:WebViewInsertActionDropped 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > BODY > HTML > #document to 3 of #text > BODY > HTML > #document toDOMRange:range from 0 of #text > BODY > HTML > #document to 4of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > BODY > HTML > #document to 3 of #text > BODY > HTML > #document toDOMRange:range from 7 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 14 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 15 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 26 26 RenderBlock {HTML} at (0,0) size 300x300 27 27 RenderBody {BODY} at (8,8) size 284x284 [bgcolor=#FFFFE0] 28 RenderText {#text} at (0,0) size 47x18 29 text run at (0,0) width 47: "foo baz" 30 RenderText {#text} at (47,0) size 24x18 31 text run at (47,0) width 24: " bar" 28 RenderText {#text} at (0,0) size 71x18 29 text run at (0,0) width 71: "foo baz bar" 32 30 RenderText {#text} at (0,0) size 0x0 33 31 RenderBlock {P} at (0,320) size 800x36 -
trunk/LayoutTests/platform/mac/editing/pasteboard/unrendered-br-expected.txt
r63291 r130411 17 17 RenderBlock {DIV} at (0,52) size 784x36 18 18 RenderBlock (anonymous) at (0,0) size 784x18 19 RenderText {#text} at (0,0) size 32x18 20 text run at (0,0) width 32: "First " 21 RenderText {#text} at (32,0) size 67x18 22 text run at (32,0) width 67: "paragraph." 19 RenderText {#text} at (0,0) size 99x18 20 text run at (0,0) width 99: "First paragraph." 23 21 RenderBlock {DIV} at (0,18) size 784x18 24 22 RenderText {#text} at (0,0) size 118x18 25 23 text run at (0,0) width 118: "Second paragraph." 26 24 RenderBlock (anonymous) at (0,36) size 784x0 27 caret: position 17 of child 0 {#text} of child 2{DIV} of child 2 {DIV} of body25 caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body -
trunk/LayoutTests/platform/mac/fast/lists/drag-into-marker-expected.txt
r63291 r130411 7 7 RenderListItem {LI} at (41,1) size 710x55 8 8 RenderListMarker at (-36,0) size 16x55: black square 9 RenderText {#text} at (0,0) size 124x55 10 text run at (0,0) width 124: "world " 11 RenderText {#text} at (124,0) size 95x55 12 text run at (124,0) width 95: "hello" 9 RenderText {#text} at (0,0) size 219x55 10 text run at (0,0) width 219: "world hello" 13 11 RenderBlock {P} at (0,73) size 784x72 14 12 RenderText {#text} at (0,0) size 768x72 -
trunk/Source/WebCore/ChangeLog
r130409 r130411 1 2012-10-03 Ryosuke Niwa <rniwa@webkit.org> 2 3 ReplaceSelectionCommand should merge text nodes 4 https://bugs.webkit.org/show_bug.cgi?id=98188 5 6 Reviewed by Levi Weintraub. 7 8 Added mergeTextNodesAroundPosition to ReplaceSelectionCommand to merge text nodes after the replace in 9 completeHTMLReplacement. Also fixed a bunch of bugs in other classes and functions to make this work. 10 11 This behavior change is tested by existing tests. 12 13 * editing/InsertParagraphSeparatorCommand.cpp: 14 (WebCore::InsertParagraphSeparatorCommand::doApply): When splitting a text node, place the insertionPosition 15 at the end of the first half. Leaving it at the beginning of the second half confuses the rest of the code in 16 the function. However, the logic to handle the "insignificant" white spaces needs the position at the start of 17 the second half. So keep this position. 18 * editing/ReplaceSelectionCommand.cpp: 19 (WebCore::ReplaceSelectionCommand::doApply): Update visibleStart after inserting a paragraph separator so that 20 the logic to cleanup the nested div checks the right condition (right beneath it starting with a long comment). 21 (WebCore::ReplaceSelectionCommand::addSpacesForSmartReplace): Insert a space for smart paste at the appropriate 22 offset instead of at the end of endNode. Also update the layout before obtaining startDownstream as we may have 23 modified the DOM by inserting a space for endNode. Finally, a non-breaking space should be treated like a space 24 isCharacterSmartReplaceExempt for the purpose of smart replace. e.g. if we're inserting "world" after 25 "hello ", we shouldn't be inserting another space between "hello" and "world". 26 (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): 27 (WebCore::ReplaceSelectionCommand::mergeTextNodesAroundPosition): Added. Merge text nodes around position, and 28 adjust position and positionOnlyToBeUpdated accordingly. We need to call updatePositionForNodeRemoval when 29 positions were before or after the text node. 30 * editing/ReplaceSelectionCommand.h: 31 (ReplaceSelectionCommand): 32 1 33 2012-10-04 Tony Chang <tony@chromium.org> 2 34 -
trunk/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
r119870 r130411 148 148 void InsertParagraphSeparatorCommand::doApply() 149 149 { 150 bool splitText = false;151 150 if (!endingSelection().isNonOrphanedCaretOrRange()) 152 151 return; … … 330 329 331 330 // Split at pos if in the middle of a text node. 332 if (insertionPosition.deprecatedNode()->isTextNode()) { 333 Text* textNode = toText(insertionPosition.deprecatedNode()); 334 bool atEnd = (unsigned)insertionPosition.deprecatedEditingOffset() >= textNode->length(); 331 Position positionAfterSplit; 332 if (insertionPosition.anchorType() == Position::PositionIsOffsetInAnchor && insertionPosition.containerNode()->isTextNode()) { 333 RefPtr<Text> textNode = toText(insertionPosition.containerNode()); 334 bool atEnd = static_cast<unsigned>(insertionPosition.offsetInContainerNode()) >= textNode->length(); 335 335 if (insertionPosition.deprecatedEditingOffset() > 0 && !atEnd) { 336 splitTextNode(textNode, insertionPosition.deprecatedEditingOffset()); 337 insertionPosition.moveToOffset(0); 336 splitTextNode(textNode, insertionPosition.offsetInContainerNode()); 337 positionAfterSplit = firstPositionInNode(textNode.get()); 338 insertionPosition.moveToPosition(textNode->previousSibling(), insertionPosition.offsetInContainerNode()); 338 339 visiblePos = VisiblePosition(insertionPosition); 339 splitText = true;340 340 } 341 341 } … … 381 381 382 382 // Handle whitespace that occurs after the split 383 if ( splitText) {383 if (positionAfterSplit.isNotNull()) { 384 384 document()->updateLayoutIgnorePendingStylesheets(); 385 if (insertionPosition.anchorType() == Position::PositionIsOffsetInAnchor) 386 insertionPosition.moveToOffset(0); 387 if (!insertionPosition.isRenderedCharacter()) { 385 if (!positionAfterSplit.isRenderedCharacter()) { 388 386 // Clear out all whitespace and insert one non-breaking space 389 ASSERT(! insertionPosition.deprecatedNode()->renderer() || insertionPosition.deprecatedNode()->renderer()->style()->collapseWhiteSpace());390 deleteInsignificantTextDownstream( insertionPosition);391 if ( insertionPosition.deprecatedNode()->isTextNode())392 insertTextIntoNode(toText( insertionPosition.deprecatedNode()), 0, nonBreakingSpaceString());387 ASSERT(!positionAfterSplit.containerNode()->renderer() || positionAfterSplit.containerNode()->renderer()->style()->collapseWhiteSpace()); 388 deleteInsignificantTextDownstream(positionAfterSplit); 389 if (positionAfterSplit.deprecatedNode()->isTextNode()) 390 insertTextIntoNode(toText(positionAfterSplit.containerNode()), 0, nonBreakingSpaceString()); 393 391 } 394 392 } -
trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp
r121357 r130411 838 838 if (isEndOfParagraph(visibleStart) && !isStartOfParagraph(visibleStart) && next.isNotNull()) 839 839 setEndingSelection(next); 840 else 840 else { 841 841 insertParagraphSeparator(); 842 visibleStart = endingSelection().visibleStart(); 843 } 842 844 } 843 845 // We split the current paragraph in two to avoid nesting the blocks from the fragment inside the current block. … … 1141 1143 } 1142 1144 1145 static bool isCharacterSmartReplaceExemptConsideringNonBreakingSpace(UChar32 character, bool previousCharacter) 1146 { 1147 return isCharacterSmartReplaceExempt(character == noBreakSpace ? ' ' : character, previousCharacter); 1148 } 1149 1143 1150 void ReplaceSelectionCommand::addSpacesForSmartReplace() 1144 1151 { … … 1148 1155 Position endUpstream = endOfInsertedContent.deepEquivalent().upstream(); 1149 1156 Node* endNode = endUpstream.computeNodeBeforePosition(); 1150 if (endUpstream.anchorType() == Position::PositionIsOffsetInAnchor) 1157 int endOffset = endNode && endNode->isTextNode() ? toText(endNode)->length() : 0; 1158 if (endUpstream.anchorType() == Position::PositionIsOffsetInAnchor) { 1151 1159 endNode = endUpstream.containerNode(); 1152 1153 bool needsTrailingSpace = !isEndOfParagraph(endOfInsertedContent) && !isCharacterSmartReplaceExempt(endOfInsertedContent.characterAfter(), false); 1160 endOffset = endUpstream.offsetInContainerNode(); 1161 } 1162 1163 bool needsTrailingSpace = !isEndOfParagraph(endOfInsertedContent) && !isCharacterSmartReplaceExemptConsideringNonBreakingSpace(endOfInsertedContent.characterAfter(), false); 1154 1164 if (needsTrailingSpace && endNode) { 1155 1165 bool collapseWhiteSpace = !endNode->renderer() || endNode->renderer()->style()->collapseWhiteSpace(); 1156 1166 if (endNode->isTextNode()) { 1157 Text* text = toText(endNode); 1158 // FIXME: we shouldn't always be inserting the space at the end 1159 insertTextIntoNode(text, text->length(), collapseWhiteSpace ? nonBreakingSpaceString() : " "); 1160 if (m_endOfInsertedContent.containerNode() == text) 1167 insertTextIntoNode(toText(endNode), endOffset, collapseWhiteSpace ? nonBreakingSpaceString() : " "); 1168 if (m_endOfInsertedContent.containerNode() == endNode) 1161 1169 m_endOfInsertedContent.moveToOffset(m_endOfInsertedContent.offsetInContainerNode() + 1); 1162 1170 } else { … … 1166 1174 } 1167 1175 } 1176 1177 document()->updateLayout(); 1168 1178 1169 1179 Position startDownstream = startOfInsertedContent.deepEquivalent().downstream(); … … 1175 1185 } 1176 1186 1177 bool needsLeadingSpace = !isStartOfParagraph(startOfInsertedContent) && !isCharacterSmartReplaceExempt (startOfInsertedContent.previous().characterAfter(), true);1187 bool needsLeadingSpace = !isStartOfParagraph(startOfInsertedContent) && !isCharacterSmartReplaceExemptConsideringNonBreakingSpace(startOfInsertedContent.previous().characterAfter(), true); 1178 1188 if (needsLeadingSpace && startNode) { 1179 1189 bool collapseWhiteSpace = !startNode->renderer() || startNode->renderer()->style()->collapseWhiteSpace(); … … 1206 1216 ASSERT(m_insertionStyle); 1207 1217 applyStyle(m_insertionStyle.get(), start, end); 1208 } 1218 } 1209 1219 1210 1220 if (lastPositionToSelect.isNotNull()) 1211 1221 end = lastPositionToSelect; 1222 1223 mergeTextNodesAroundPosition(start, end); 1212 1224 } else if (lastPositionToSelect.isNotNull()) 1213 1225 start = end = lastPositionToSelect; … … 1219 1231 else 1220 1232 setEndingSelection(VisibleSelection(end, SEL_DEFAULT_AFFINITY, endingSelection().isDirectional())); 1233 } 1234 1235 void ReplaceSelectionCommand::mergeTextNodesAroundPosition(Position& position, Position& positionOnlyToBeUpdated) 1236 { 1237 bool positionIsOffsetInAnchor = position.anchorType() == Position::PositionIsOffsetInAnchor; 1238 bool positionOnlyToBeUpdatedIsOffsetInAnchor = positionOnlyToBeUpdated.anchorType() == Position::PositionIsOffsetInAnchor; 1239 RefPtr<Text> text = 0; 1240 if (positionIsOffsetInAnchor && position.containerNode() && position.containerNode()->isTextNode()) 1241 text = toText(position.containerNode()); 1242 else { 1243 Node* before = position.computeNodeBeforePosition(); 1244 if (before && before->isTextNode()) 1245 text = toText(before); 1246 else { 1247 Node* after = position.computeNodeAfterPosition(); 1248 if (after && after->isTextNode()) 1249 text = toText(after); 1250 } 1251 } 1252 if (!text) 1253 return; 1254 1255 if (text->previousSibling() && text->previousSibling()->isTextNode()) { 1256 Text* previous = toText(text->previousSibling()); 1257 insertTextIntoNode(text, 0, previous->data()); 1258 1259 if (positionIsOffsetInAnchor) 1260 position.moveToOffset(previous->length() + position.offsetInContainerNode()); 1261 else 1262 updatePositionForNodeRemoval(position, previous); 1263 1264 if (positionOnlyToBeUpdatedIsOffsetInAnchor) { 1265 if (positionOnlyToBeUpdated.containerNode() == text) 1266 positionOnlyToBeUpdated.moveToOffset(previous->length() + position.offsetInContainerNode()); 1267 else if (positionOnlyToBeUpdated.containerNode() == previous) 1268 positionOnlyToBeUpdated.moveToPosition(text, position.offsetInContainerNode()); 1269 } else 1270 updatePositionForNodeRemoval(positionOnlyToBeUpdated, previous); 1271 1272 removeNode(previous); 1273 } 1274 if (text->nextSibling() && text->nextSibling()->isTextNode()) { 1275 Text* next = toText(text->nextSibling()); 1276 insertTextIntoNode(text, text->length(), next->data()); 1277 1278 if (!positionIsOffsetInAnchor) 1279 updatePositionForNodeRemoval(position, next); 1280 1281 if (positionOnlyToBeUpdatedIsOffsetInAnchor && positionOnlyToBeUpdated.containerNode() == next) 1282 positionOnlyToBeUpdated.moveToPosition(text, text->length() + position.offsetInContainerNode()); 1283 else 1284 updatePositionForNodeRemoval(positionOnlyToBeUpdated, next); 1285 1286 removeNode(next); 1287 } 1221 1288 } 1222 1289 -
trunk/Source/WebCore/editing/ReplaceSelectionCommand.h
r118192 r130411 96 96 void addSpacesForSmartReplace(); 97 97 void completeHTMLReplacement(const Position& lastPositionToSelect); 98 void mergeTextNodesAroundPosition(Position&, Position& positionOnlyToBeUpdated); 98 99 99 100 bool performTrivialReplace(const ReplacementFragment&);
Note:
See TracChangeset
for help on using the changeset viewer.