Changeset 20075 in webkit
- Timestamp:
- Mar 8, 2007 6:37:26 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r20072 r20075 1 2007-03-08 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by harrison 4 5 <rdar://problem/4903193> 6 On particular page, Copy is so slow it seems like a hang 7 8 Less messy DOM trees: 9 * editing/deleting/delete-3857753-fix-expected.txt: 10 * editing/inserting/insert-3786362-fix-expected.txt: 11 * editing/inserting/insert-3907422-fix-expected.txt: 12 * editing/pasteboard/display-block-on-spans-expected.txt: 13 * editing/pasteboard/paste-4035648-fix-expected.txt: 14 * editing/pasteboard/paste-4039777-fix-expected.txt: 15 * editing/pasteboard/paste-line-endings-001-expected.txt: 16 * editing/pasteboard/paste-line-endings-006-expected.txt: 17 * editing/pasteboard/paste-list-001-expected.txt: 18 * editing/pasteboard/paste-pre-001-expected.txt: 19 * editing/pasteboard/paste-pre-002-expected.txt: 20 * editing/pasteboard/paste-table-001-expected.txt: 21 * editing/pasteboard/paste-table-002-expected.txt: 22 * editing/pasteboard/paste-text-003-expected.txt: 23 * editing/pasteboard/paste-text-011-expected.txt: 24 * editing/pasteboard/paste-text-015-expected.txt: 25 * editing/pasteboard/paste-text-016-expected.txt: 26 * editing/pasteboard/paste-text-017-expected.txt: 27 * editing/pasteboard/styled-element-markup-expected.txt: 28 * editing/pasteboard/testcase-9507-expected.txt: 29 * editing/style/smoosh-styles-001-expected.txt: 30 * editing/style/smoosh-styles-002-expected.txt: 31 * fast/lists/drag-into-marker-expected.txt: 32 Styles from style sheets are now inlined: 33 * webarchive/test-duplicate-resources-expected.txt: 34 * webarchive/test-frameset-expected.txt: 35 * webarchive/test-link-href-expected.txt:\ 36 Two levels of nesting are removed, but text nodes are no 37 longer coalesced when they should be, investigating: 38 * editing/pasteboard/block-wrappers-necessary-expected.txt: 39 1 40 2007-03-08 Maciej Stachowiak <mjs@apple.com> 2 41 -
trunk/LayoutTests/editing/deleting/delete-3857753-fix-expected.txt
r19648 r20075 21 21 RenderText {#text} at (0,0) size 25x28 22 22 text run at (0,0) width 25: "on" 23 RenderInline { SPAN} at (0,0) size 12x2824 RenderInline { I} at (0,0) size 12x2823 RenderInline {I} at (0,0) size 12x28 24 RenderInline {SPAN} at (0,0) size 12x28 25 25 RenderText {#text} at (25,0) size 12x28 26 26 text run at (25,0) width 12: "o" -
trunk/LayoutTests/editing/inserting/insert-3786362-fix-expected.txt
r19605 r20075 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 7 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 8 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 SPAN > DIV > DIV > BODY > HTML > #document to 1 of SPAN >DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE8 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 DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 9 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 10 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 33 33 RenderText {#text} at (2,2) size 11x28 34 34 text run at (2,2) width 11: "a" 35 RenderInline {SPAN} at (0,0) size 0x18 36 RenderBR {BR} at (13,24) size 0x0 37 RenderInline {SPAN} at (0,0) size 0x18 38 RenderBR {BR} at (2,30) size 0x28 39 caret: position 0 of child 0 {BR} of child 2 {SPAN} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document 35 RenderBR {BR} at (13,24) size 0x0 36 RenderBR {BR} at (2,30) size 0x28 37 caret: position 0 of child 2 {BR} of child 3 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/inserting/insert-3907422-fix-expected.txt
r19605 r20075 35 35 RenderText {#text} at (22,0) size 21x18 36 36 text run at (22,0) width 21: "foo" 37 RenderBlock (anonymous) at (0,86) size 784x0 37 38 RenderBlock {DIV} at (0,102) size 784x52 38 39 RenderBlock (anonymous) at (0,0) size 784x0 … … 43 44 RenderText {#text} at (0,0) size 22x18 44 45 text run at (0,0) width 22: "baz" 45 RenderBlock (anonymous) at (0,154) size 784x046 46 caret: position 3 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/block-wrappers-necessary-expected.txt
r19605 r20075 14 14 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > CENTER > DIV > DIV > BODY > HTML > #document to 0 of P > CENTER > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 85 of #text > P > SPAN > P > CENTER > DIV > DIV > BODY > HTML > #document to 85 of #text > P > SPAN> P > CENTER > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE16 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 85 of #text > P > P > CENTER > DIV > DIV > BODY > HTML > #document to 85 of #text > P > P > CENTER > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 18 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 43 43 RenderBlock {CENTER} at (2,20) size 780x150 44 44 RenderBlock {P} at (0,0) size 780x150 45 RenderBlock (anonymous) at (0,0) size 780x0 46 RenderInline {SPAN} at (0,0) size 0x0 47 RenderBlock (anonymous) at (0,0) size 780x110 48 RenderBlock {P} at (0,0) size 780x110 49 RenderText {#text} at (0,0) size 76x22 50 text run at (0,0) width 76: "This is an " 51 RenderInline {B} at (0,0) size 82x22 52 RenderText {#text} at (76,0) size 82x22 53 text run at (76,0) width 82: "interactive" 54 RenderText {#text} at (158,0) size 622x44 55 text run at (158,0) width 622: " documentation site, so please help out by posting any useful information that you've " 56 text run at (325,22) width 129: "had to search out." 57 RenderBR {BR} at (454,39) size 0x0 58 RenderText {#text} at (20,44) size 115x22 59 text run at (20,44) width 115: "(Adding to this " 60 RenderInline {A} at (0,0) size 107x22 [color=#0000EE] 61 RenderText {#text} at (135,44) size 107x22 62 text run at (135,44) width 107: "wiki is so easy" 63 RenderText {#text} at (242,44) size 207x22 64 text run at (242,44) width 207: ", you can't screw it up). See " 65 RenderInline {A} at (0,0) size 114x22 [color=#0000EE] 66 RenderText {#text} at (449,44) size 114x22 67 text run at (449,44) width 114: "Wiki Reference" 68 RenderText {#text} at (563,44) size 196x22 69 text run at (563,44) width 196: " for text formatting syntax." 70 RenderBR {BR} at (759,61) size 0x0 71 RenderText {#text} at (161,66) size 283x22 72 text run at (161,66) width 283: "Info for setting up your own wiki is at " 73 RenderInline {A} at (0,0) size 170x22 [color=#0000EE] 74 RenderText {#text} at (444,66) size 170x22 75 text run at (444,66) width 170: "about howto.apple.com" 76 RenderText {#text} at (614,66) size 5x22 77 text run at (614,66) width 5: "." 78 RenderBR {BR} at (619,83) size 0x0 79 RenderText {#text} at (96,88) size 514x22 80 text run at (96,88) width 514: "Check out a cool wiki editor application that helps in wiki generation: " 81 RenderInline {A} at (0,0) size 73x22 [color=#0000EE] 82 RenderText {#text} at (610,88) size 73x22 83 text run at (610,88) width 73: "Wikinator" 84 RenderBlock (anonymous) at (0,128) size 780x0 85 RenderInline {SPAN} at (0,0) size 0x0 86 RenderInline {SPAN} at (0,0) size 0x0 87 RenderBlock (anonymous) at (0,128) size 780x22 88 RenderBlock {P} at (0,0) size 780x22 89 RenderText {#text} at (85,0) size 610x22 90 text run at (85,0) width 610: "Start browsing the topics below, or use the search field at the bottom of every page." 45 RenderBlock {P} at (0,0) size 780x110 46 RenderText {#text} at (0,0) size 71x22 47 text run at (0,0) width 71: "This is an" 48 RenderText {#text} at (71,0) size 5x22 49 text run at (71,0) width 5: " " 50 RenderInline {B} at (0,0) size 82x22 51 RenderText {#text} at (76,0) size 82x22 52 text run at (76,0) width 82: "interactive" 53 RenderText {#text} at (158,0) size 5x22 54 text run at (158,0) width 5: " " 55 RenderText {#text} at (163,0) size 617x44 56 text run at (163,0) width 617: "documentation site, so please help out by posting any useful information that you've " 57 text run at (325,22) width 129: "had to search out." 58 RenderBR {BR} at (454,39) size 0x0 59 RenderText {#text} at (20,44) size 110x22 60 text run at (20,44) width 110: "(Adding to this" 61 RenderText {#text} at (130,44) size 5x22 62 text run at (130,44) width 5: " " 63 RenderInline {A} at (0,0) size 107x22 [color=#0000EE] 64 RenderText {#text} at (135,44) size 107x22 65 text run at (135,44) width 107: "wiki is so easy" 66 RenderText {#text} at (242,44) size 202x22 67 text run at (242,44) width 202: ", you can't screw it up). See" 68 RenderText {#text} at (444,44) size 5x22 69 text run at (444,44) width 5: " " 70 RenderInline {A} at (0,0) size 114x22 [color=#0000EE] 71 RenderText {#text} at (449,44) size 114x22 72 text run at (449,44) width 114: "Wiki Reference" 73 RenderText {#text} at (563,44) size 5x22 74 text run at (563,44) width 5: " " 75 RenderText {#text} at (568,44) size 191x22 76 text run at (568,44) width 191: "for text formatting syntax." 77 RenderBR {BR} at (759,61) size 0x0 78 RenderText {#text} at (161,66) size 278x22 79 text run at (161,66) width 278: "Info for setting up your own wiki is at" 80 RenderText {#text} at (439,66) size 5x22 81 text run at (439,66) width 5: " " 82 RenderInline {A} at (0,0) size 170x22 [color=#0000EE] 83 RenderText {#text} at (444,66) size 170x22 84 text run at (444,66) width 170: "about howto.apple.com" 85 RenderText {#text} at (614,66) size 5x22 86 text run at (614,66) width 5: "." 87 RenderBR {BR} at (619,83) size 0x0 88 RenderText {#text} at (96,88) size 509x22 89 text run at (96,88) width 509: "Check out a cool wiki editor application that helps in wiki generation:" 90 RenderText {#text} at (605,88) size 5x22 91 text run at (605,88) width 5: " " 92 RenderInline {A} at (0,0) size 73x22 [color=#0000EE] 93 RenderText {#text} at (610,88) size 73x22 94 text run at (610,88) width 73: "Wikinator" 95 RenderBlock {P} at (0,128) size 780x22 96 RenderText {#text} at (85,0) size 610x22 97 text run at (85,0) width 610: "Start browsing the topics below, or use the search field at the bottom of every page." 91 98 RenderBlock (anonymous) at (0,168) size 780x0 92 RenderInline {SPAN} at (0,0) size 0x0 93 caret: position 85 of child 0 {#text} of child 0 {P} of child 1 {SPAN} of child 1 {P} of child 1 {CENTER} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document 99 caret: position 85 of child 0 {#text} of child 1 {P} of child 1 {P} of child 1 {CENTER} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/display-block-on-spans-expected.txt
r19605 r20075 5 5 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > B > SPAN > DIV > BODY > HTML > #document to 4 of #text > B > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text > B > SPAN > B > SPAN > DIV > BODY > HTML > #document to 4 of #text > B > SPAN> B > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE7 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text > B > SPAN > DIV > BODY > HTML > #document to 4 of #text > B > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 35 35 RenderBlock {SPAN} at (0,18) size 784x18 36 36 RenderInline {B} at (0,0) size 182x18 37 RenderInline {SPAN} at (0,0) size 30x18 38 RenderInline {B} at (0,0) size 30x18 39 RenderText {#text} at (0,0) size 30x18 40 text run at (0,0) width 30: "This" 37 RenderText {#text} at (0,0) size 30x18 38 text run at (0,0) width 30: "This" 41 39 RenderText {#text} at (30,0) size 152x18 42 40 text run at (30,0) width 152: " is another paragraph." 43 caret: position 4 of child 0 {#text} of child 0 {B} of child 0 {SPAN} of child 0 {B} of child2 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document41 caret: position 4 of child 0 {#text} of child 0 {B} of child 2 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-4035648-fix-expected.txt
r19605 r20075 47 47 RenderBlock {DIV} at (0,264) size 784x88 48 48 RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)] 49 RenderInline {SPAN} at (0,0) size 0x18 50 RenderBR {BR} at (2,2) size 0x28 51 RenderInline {SPAN} at (0,0) size 45x18 52 RenderInline {B} at (0,0) size 45x28 53 RenderText {#text} at (2,30) size 45x28 54 text run at (2,30) width 45: "bold" 55 RenderBR {BR} at (47,52) size 0x0 49 RenderBR {BR} at (2,2) size 0x28 50 RenderInline {B} at (0,0) size 45x28 51 RenderText {#text} at (2,30) size 45x28 52 text run at (2,30) width 45: "bold" 53 RenderBR {BR} at (47,52) size 0x0 56 54 RenderText {#text} at (2,58) size 49x28 57 55 text run at (2,58) width 49: "plain" -
trunk/LayoutTests/editing/pasteboard/paste-4039777-fix-expected.txt
r19605 r20075 5 5 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 5 of #text > LI > UL > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > LI > UL > DIV > SPAN > DIV > DIV > BODY > HTML > #document to 1 of #text > LI > UL > DIV > SPAN> DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE7 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > LI > UL > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > LI > UL > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 53 53 RenderBlock {DIV} at (0,364) size 784x188 54 54 RenderBlock {DIV} at (0,0) size 784x188 [border: (2px solid #FF0000)] 55 RenderBlock (anonymous) at (2,2) size 780x0 56 RenderInline {SPAN} at (0,0) size 0x0 57 RenderBlock (anonymous) at (2,26) size 780x28 58 RenderBlock {UL} at (0,0) size 780x28 59 RenderListItem {LI} at (40,0) size 740x28 55 RenderBlock {UL} at (2,26) size 780x28 56 RenderListItem {LI} at (40,0) size 740x28 57 RenderListMarker at (-22,0) size 9x28: bullet 58 RenderText {#text} at (723,0) size 17x28 59 text run at (723,0) width 17: "A" 60 RenderBlock {DIV} at (2,78) size 780x56 61 RenderBlock {UL} at (0,0) size 780x56 62 RenderListItem {LI} at (40,0) size 740x56 60 63 RenderListMarker at (-22,0) size 9x28: bullet 61 RenderText {#text} at (723,0) size 17x28 62 text run at (723,0) width 17: "A" 63 RenderBlock (anonymous) at (2,78) size 780x0 64 RenderInline {SPAN} at (0,0) size 0x0 65 RenderInline {SPAN} at (0,0) size 0x0 66 RenderBlock (anonymous) at (2,78) size 780x56 67 RenderBlock {DIV} at (0,0) size 780x56 68 RenderBlock {UL} at (0,0) size 780x56 69 RenderListItem {LI} at (40,0) size 740x56 70 RenderListMarker at (-22,0) size 9x28: bullet 71 RenderInline {A} at (0,0) size 16x28 [color=#0000EE] 72 RenderText {#text} at (718,0) size 16x28 73 text run at (718,0) width 16: "B" 74 RenderText {#text} at (734,0) size 6x28 75 text run at (734,0) width 6: " " 76 RenderBR {BR} at (740,22) size 0x0 77 RenderText {#text} at (724,28) size 16x28 78 text run at (724,28) width 16: "C" 64 RenderInline {A} at (0,0) size 16x28 [color=#0000EE] 65 RenderText {#text} at (718,0) size 16x28 66 text run at (718,0) width 16: "B" 67 RenderText {#text} at (734,0) size 6x28 68 text run at (734,0) width 6: " " 69 RenderBR {BR} at (740,22) size 0x0 70 RenderText {#text} at (724,28) size 16x28 71 text run at (724,28) width 16: "C" 79 72 RenderBlock (anonymous) at (2,158) size 780x28 80 RenderInline {SPAN} at (0,0) size 0x081 73 RenderBR {BR} at (780,0) size 0x28 82 74 RenderBlock {DIV} at (2,186) size 780x0 83 caret: position 1 of child 3 {#text} of child 0 {LI} of child 0 {UL} of child 0 {DIV} of child 1 {SPAN} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document75 caret: position 1 of child 3 {#text} of child 0 {LI} of child 0 {UL} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-line-endings-001-expected.txt
r19605 r20075 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of SPAN > DIV > DIV > BODY > HTML > #document to 1 of SPAN >DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE14 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 15 15 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 16 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 44 44 RenderText {#text} at (2,2) size 78x28 45 45 text run at (2,2) width 78: "line one" 46 RenderInline {SPAN} at (0,0) size 0x18 47 RenderBR {BR} at (80,24) size 0x0 46 RenderBR {BR} at (80,24) size 0x0 48 47 RenderText {#text} at (2,30) size 79x28 49 48 text run at (2,30) width 79: "line two" -
trunk/LayoutTests/editing/pasteboard/paste-line-endings-006-expected.txt
r19605 r20075 46 46 RenderText {#text} at (2,2) size 78x28 47 47 text run at (2,2) width 78: "line one" 48 RenderInline {SPAN} at (0,0) size 0x18 49 RenderBR {BR} at (80,24) size 0x0 48 RenderBR {BR} at (80,24) size 0x0 50 49 RenderText {#text} at (2,30) size 7x28 51 50 text run at (2,30) width 7: "l" -
trunk/LayoutTests/editing/pasteboard/paste-list-001-expected.txt
r19648 r20075 45 45 RenderText {#text} at (0,0) size 211x28 46 46 text run at (0,0) width 211: "I should be number 3." 47 RenderBlock (anonymous) at (0,112) size 716x047 RenderBlock (anonymous) at (40,84) size 676x0 48 48 caret: position 21 of child 0 {#text} of child 2 {LI} of child 1 {OL} of child 5 {LI} of child 4 {OL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-pre-001-expected.txt
r19605 r20075 10 10 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of PRE > DIV > DIV > BODY > HTML > #document to 0 of PRE > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 11 11 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text > PRE > SPAN > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > SPAN> PRE > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE12 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text > PRE > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > PRE > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 14 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 47 47 RenderBlock {DIV} at (0,0) size 784x108 [border: (2px solid #FF0000)] 48 48 RenderBlock {PRE} at (2,26) size 780x56 49 RenderBlock (anonymous) at (0,0) size 780x0 50 RenderInline {SPAN} at (0,0) size 0x0 51 RenderBlock (anonymous) at (0,0) size 780x56 52 RenderBlock {PRE} at (0,0) size 780x56 53 RenderText {#text} at (0,0) size 42x56 54 text run at (0,0) width 42: "foo" 55 text run at (42,0) width 0: " " 56 text run at (0,28) width 42: "bar" 49 RenderBlock {PRE} at (0,0) size 780x56 50 RenderText {#text} at (0,0) size 42x56 51 text run at (0,0) width 42: "foo" 52 text run at (42,0) width 0: " " 53 text run at (0,28) width 42: "bar" 57 54 RenderBlock (anonymous) at (0,80) size 780x0 58 RenderInline {SPAN} at (0,0) size 0x0 59 caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document 55 caret: position 7 of child 0 {#text} of child 0 {PRE} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-pre-002-expected.txt
r19605 r20075 5 5 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text > PRE > SPAN > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > SPAN> PRE > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE7 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text > PRE > PRE > DIV > DIV > BODY > HTML > #document to 7 of #text > PRE > PRE > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 27 27 RenderBlock {DIV} at (0,0) size 784x30 28 28 RenderBlock {PRE} at (0,0) size 784x30 29 RenderBlock (anonymous) at (0,0) size 784x0 30 RenderInline {SPAN} at (0,0) size 0x0 31 RenderBlock (anonymous) at (0,0) size 784x30 32 RenderBlock {PRE} at (0,0) size 784x30 33 RenderText {#text} at (0,0) size 24x30 34 text run at (0,0) width 24: "foo" 35 text run at (24,0) width 0: " " 36 text run at (0,15) width 24: "bar" 29 RenderBlock {PRE} at (0,0) size 784x30 30 RenderText {#text} at (0,0) size 24x30 31 text run at (0,0) width 24: "foo" 32 text run at (24,0) width 0: " " 33 text run at (0,15) width 24: "bar" 37 34 RenderBlock (anonymous) at (0,43) size 784x0 38 RenderInline {SPAN} at (0,0) size 0x0 39 caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document 35 caret: position 7 of child 0 {#text} of child 0 {PRE} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-table-001-expected.txt
r19648 r20075 68 68 RenderText {#text} at (2,2) size 197x18 69 69 text run at (2,2) width 197: "I should be in the right column." 70 RenderBlock (anonymous) at (0,54) size 756x0 70 71 RenderTable {TABLE} at (0,54) size 292x54 [border: (2px outset #808080)] 71 72 RenderTableSection {TBODY} at (2,2) size 288x50 … … 82 83 RenderText {#text} at (2,2) size 197x18 83 84 text run at (2,2) width 197: "I should be in the right column." 84 RenderBlock (anonymous) at (0,108) size 756x085 85 caret: position 32 of child 0 {#text} of child 1 {TD} of child 1 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 3 {P} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-table-002-expected.txt
r19605 r20075 10 10 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 11 11 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > SPAN > DIV > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > SPAN> DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE12 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 14 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 17 17 foo bar 18 18 ghijk 19 <div id="test" class="editing" > <div>abcdef<span class="Apple-style-span" style="font-size: 16px; "><div style="font-size: 24px; text-align: center; "><table style="font-size: 16px; text-align: auto; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><tbody style=""><tr style=""><td style="">foo</td><td style="">bar</td></tr></tbody></table>ghijk</div></span> </div> </div>19 <div id="test" class="editing" style="border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: red; border-right-color: red; border-bottom-color: red; border-left-color: red; font-size: 24px; "> <div>abcdef<div style="text-align: center; "><table><tbody><tr><td>foo</td><td>bar</td></tr></tbody></table>ghijk</div> </div> </div> 20 20 -
trunk/LayoutTests/editing/pasteboard/paste-text-003-expected.txt
r19605 r20075 112 112 RenderText {#text} at (63,0) size 285x28 113 113 text run at (63,0) width 285: "is a tide in the affairs of men," 114 RenderInline {SPAN} at (0,0) size 0x18 115 RenderBlock (anonymous) at (14,42) size 756x56 116 RenderBlock {DIV} at (0,0) size 756x56 [border: (2px solid #FF0000)] 117 RenderText {#text} at (14,14) size 434x28 118 text run at (14,14) width 434: "Which taken at the flood leads on to fortune." 114 RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)] 115 RenderText {#text} at (14,14) size 434x28 116 text run at (14,14) width 434: "Which taken at the flood leads on to fortune." 119 117 RenderBlock (anonymous) at (14,98) size 756x0 120 RenderInline {SPAN} at (0,0) size 0x0121 118 RenderBlock {DIV} at (14,98) size 756x252 [border: (2px solid #FF0000)] 122 119 RenderBlock (anonymous) at (14,14) size 728x0 … … 127 124 text run at (94,14) width 285: "is a tide in the affairs of men," 128 125 RenderBlock (anonymous) at (14,70) size 728x0 129 RenderInline {SPAN} at (0,0) size 0x0 130 RenderBlock (anonymous) at (14,70) size 728x56 131 RenderBlock {DIV} at (0,0) size 728x56 [border: (2px solid #FF0000)] 132 RenderText {#text} at (14,14) size 434x28 133 text run at (14,14) width 434: "Which taken at the flood leads on to fortune." 126 RenderBlock {DIV} at (14,70) size 728x56 [border: (2px solid #FF0000)] 127 RenderText {#text} at (14,14) size 434x28 128 text run at (14,14) width 434: "Which taken at the flood leads on to fortune." 134 129 RenderBlock (anonymous) at (14,126) size 728x0 135 RenderInline {SPAN} at (0,0) size 0x0136 130 RenderBlock {DIV} at (14,126) size 728x112 [border: (2px solid #FF0000)] 137 131 RenderBlock (anonymous) at (14,14) size 700x28 -
trunk/LayoutTests/editing/pasteboard/paste-text-011-expected.txt
r19605 r20075 9 9 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > BODY > HTML > #document to 0 of P > BODY > HTML > #document givenAction:WebViewInsertActionPasted 10 10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 11 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > B > FONT > P > DIV > SPAN > B > FONT > P > BODY > HTML > #document to 5 of #text > B > FONT > P > DIV > SPAN> B > FONT > P > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE11 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > B > FONT > P > DIV > B > FONT > P > BODY > HTML > #document to 5 of #text > B > FONT > P > DIV > B > FONT > P > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 12 12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 13 13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 31 31 RenderInline {FONT} at (0,0) size 0x0 32 32 RenderInline {B} at (0,0) size 0x0 33 RenderInline {SPAN} at (0,0) size 0x034 33 RenderBlock (anonymous) at (0,0) size 784x58 35 34 RenderBlock {DIV} at (0,0) size 784x58 … … 44 43 RenderText {#text} at (0,0) size 55x20 45 44 text run at (0,0) width 55: "there" 45 RenderBlock (anonymous) at (0,74) size 784x0 46 46 RenderBlock (anonymous) at (0,74) size 784x0 47 47 RenderInline {FONT} at (0,0) size 0x0 48 48 RenderInline {B} at (0,0) size 0x0 49 RenderInline {SPAN} at (0,0) size 0x0 50 RenderInline {FONT} at (0,0) size 0x0 51 RenderInline {B} at (0,0) size 0x0 52 RenderInline {FONT} at (0,0) size 0x0 53 RenderInline {B} at (0,0) size 0x0 54 caret: position 5 of child 0 {#text} of child 0 {B} of child 0 {FONT} of child 1 {P} of child 0 {DIV} of child 0 {SPAN} of child 0 {B} of child 0 {FONT} of child 4 {P} of child 1 {BODY} of child 0 {HTML} of document 49 caret: position 5 of child 0 {#text} of child 0 {B} of child 0 {FONT} of child 1 {P} of child 0 {DIV} of child 0 {B} of child 0 {FONT} of child 4 {P} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-text-015-expected.txt
r19605 r20075 16 16 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 17 17 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > P > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > SPAN> P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE18 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 19 19 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 20 20 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 21 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > P > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of P > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > SPAN> P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE21 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document to 0 of P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 22 22 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 23 23 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 24 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > SPAN> P > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted24 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document to 0 of P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 25 25 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 26 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > P > DIV > SPAN > P > DIV > SPAN > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > DIV > SPAN > P > DIV > SPAN> P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE26 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > P > SPAN > DIV > P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document to 3 of #text > P > SPAN > DIV > P > SPAN > DIV > P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 27 27 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 28 28 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 35 35 RenderBlock {DIV} at (0,0) size 784x140 [border: (2px solid #FF0000)] 36 36 RenderBlock {P} at (14,14) size 756x112 37 RenderBlock (anonymous) at (0,0) size 756x038 Render Inline {SPAN} at (0,0) size 0x039 RenderBlock (anonymous) at (0,0) size 756x11240 RenderBlock {DIV}at (0,0) size 756x11237 RenderBlock {DIV} at (0,0) size 756x112 38 RenderBlock (anonymous) at (0,0) size 756x0 39 RenderInline {SPAN} at (0,0) size 0x0 40 RenderBlock (anonymous) at (0,0) size 756x112 41 41 RenderBlock {P} at (0,0) size 756x28 42 42 RenderText {#text} at (0,0) size 32x28 … … 46 46 text run at (0,0) width 31: "bar" 47 47 RenderBlock {P} at (0,56) size 756x56 48 RenderBlock (anonymous) at (0,0) size 756x049 Render Inline {SPAN} at (0,0) size 0x050 RenderBlock (anonymous) at (0,0) size 756x5651 RenderBlock {DIV}at (0,0) size 756x5648 RenderBlock {DIV} at (0,0) size 756x56 49 RenderBlock (anonymous) at (0,0) size 756x0 50 RenderInline {SPAN} at (0,0) size 0x0 51 RenderBlock (anonymous) at (0,0) size 756x56 52 52 RenderBlock {P} at (0,0) size 756x28 53 53 RenderText {#text} at (0,0) size 32x28 … … 56 56 RenderText {#text} at (0,0) size 31x28 57 57 text run at (0,0) width 31: "bar" 58 RenderBlock (anonymous) at (0,56) size 756x0 59 RenderInline {SPAN} at (0,0) size 0x0 58 60 RenderBlock (anonymous) at (0,56) size 756x0 59 RenderInline {SPAN} at (0,0) size 0x0 61 RenderBlock (anonymous) at (0,112) size 756x0 62 RenderInline {SPAN} at (0,0) size 0x0 60 63 RenderBlock (anonymous) at (0,112) size 756x0 61 RenderInline {SPAN} at (0,0) size 0x0 62 caret: position 3 of child 0 {#text} of child 1 {P} of child 0 {DIV} of child 0 {SPAN} of child 2 {P} of child 0 {DIV} of child 0 {SPAN} of child 0 {P} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document 64 caret: position 3 of child 0 {#text} of child 1 {P} of child 0 {SPAN} of child 0 {DIV} of child 2 {P} of child 0 {SPAN} of child 0 {DIV} of child 0 {P} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/paste-text-016-expected.txt
r19605 r20075 44 44 text run at (0,0) width 319: "Should be first line of document." 45 45 RenderBR {BR} at (319,22) size 0x0 46 RenderInline {SPAN} at (0,0) size 0x0 47 RenderBlock (anonymous) at (0,28) size 756x28 48 RenderBlock {P} at (0,0) size 756x28 49 RenderText {#text} at (0,0) size 130x28 50 text run at (0,0) width 130: "***TEST***" 46 RenderBlock {P} at (0,28) size 756x28 47 RenderText {#text} at (0,0) size 130x28 48 text run at (0,0) width 130: "***TEST***" 51 49 RenderBlock (anonymous) at (0,56) size 756x56 52 RenderInline {SPAN} at (0,0) size 0x053 50 RenderBR {BR} at (0,0) size 0x28 54 51 RenderText {#text} at (0,28) size 128x28 -
trunk/LayoutTests/editing/pasteboard/paste-text-017-expected.txt
r19605 r20075 41 41 RenderBR {BR} at (0,0) size 0x28 42 42 RenderBlock {DIV} at (2,58) size 780x56 43 RenderBlock (anonymous) at (0,0) size 780x0 44 RenderInline {SPAN} at (0,0) size 0x0 45 RenderBlock (anonymous) at (0,0) size 780x28 46 RenderBlock {DIV} at (0,0) size 780x28 47 RenderText {#text} at (0,0) size 36x28 48 text run at (0,0) width 36: "two" 43 RenderBlock {DIV} at (0,0) size 780x28 44 RenderText {#text} at (0,0) size 36x28 45 text run at (0,0) width 36: "two" 49 46 RenderBlock (anonymous) at (0,28) size 780x28 50 RenderInline {SPAN} at (0,0) size 0x051 47 RenderBR {BR} at (0,0) size 0x28 52 48 RenderBlock {DIV} at (2,114) size 780x28 -
trunk/LayoutTests/editing/pasteboard/styled-element-markup-expected.txt
r19605 r20075 8 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 9 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 10 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 ofDIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE10 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of SPAN > DIV > BODY > HTML > #document to 1 of SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 11 11 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 12 12 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 30 30 RenderImage {IMG} at (354,0) size 76x103 31 31 RenderBlock {DIV} at (0,207) size 784x103 32 RenderImage {IMG} at (0,0) size 76x103 33 caret: position 1 of child 0 {IMG} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document 32 RenderInline {SPAN} at (0,0) size 76x14 33 RenderImage {IMG} at (0,0) size 76x103 34 caret: position 1 of child 0 {IMG} of child 0 {SPAN} of child 6 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/pasteboard/testcase-9507-expected.txt
r19605 r20075 3 3 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > SPAN > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > SPAN> DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE5 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 7 7 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification … … 20 20 RenderText {#text} at (0,0) size 32x28 21 21 text run at (0,0) width 32: "foo" 22 RenderInline {SPAN} at (0,0) size 0x18 23 RenderBlock (anonymous) at (2,30) size 780x28 24 RenderBlock {DIV} at (0,0) size 780x28 [color=#FF0000] 25 RenderBlock {DIV} at (0,0) size 780x28 26 RenderText {#text} at (0,0) size 31x28 27 text run at (0,0) width 31: "bar" 22 RenderBlock {DIV} at (2,30) size 780x28 [color=#FF0000] 23 RenderBlock {DIV} at (0,0) size 780x28 24 RenderText {#text} at (0,0) size 31x28 25 text run at (0,0) width 31: "bar" 28 26 RenderBlock (anonymous) at (2,58) size 780x0 29 RenderInline {SPAN} at (0,0) size 0x030 27 RenderBlock {DIV} at (2,58) size 780x0 [color=#FF0000] 31 caret: position 3 of child 0 {#text} of child 0 {DIV} of child 0 {DIV} of child 1 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document28 caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/editing/style/smoosh-styles-001-expected.txt
r19605 r20075 57 57 RenderText {#text} at (25,2) size 34x28 58 58 text run at (25,2) width 34: "cde" 59 RenderInline {SPAN} at (0,0) size 20x 1860 RenderInline {SPAN} at (0,0) size 20x28 [color=#FF0000]59 RenderInline {SPAN} at (0,0) size 20x28 [color=#FF0000] 60 RenderInline {SPAN} at (0,0) size 20x28 61 61 RenderText {#text} at (59,2) size 20x28 62 62 text run at (59,2) width 20: "fg" -
trunk/LayoutTests/editing/style/smoosh-styles-002-expected.txt
r19605 r20075 56 56 RenderText {#text} at (31,2) size 46x37 57 57 text run at (31,2) width 46: "cde" 58 RenderInline {SPAN} at (0,0) size 24x 1859 RenderInline {SPAN} at (0,0) size 24x28 [color=#FF0000]58 RenderInline {SPAN} at (0,0) size 24x37 [color=#FF0000] 59 RenderInline {SPAN} at (0,0) size 24x28 60 60 RenderText {#text} at (77,8) size 24x28 61 61 text run at (77,8) width 24: "fg" -
trunk/LayoutTests/fast/lists/drag-into-marker-expected.txt
r18670 r20075 7 7 RenderListItem {LI} at (41,1) size 710x55 8 8 RenderListMarker at (-36,0) size 16x55: black square 9 RenderInline {SPAN} at (0,0) size 124x18 10 RenderInline {SPAN} at (0,0) size 124x55 11 RenderText {#text} at (0,0) size 124x55 12 text run at (0,0) width 124: "world " 9 RenderInline {SPAN} at (0,0) size 124x55 10 RenderText {#text} at (0,0) size 124x55 11 text run at (0,0) width 124: "world " 13 12 RenderText {#text} at (124,0) size 95x55 14 13 text run at (124,0) width 95: "hello" … … 22 21 text run at (0,54) width 371: "this test drags a bit of text over the list marker and drops it. " 23 22 text run at (371,54) width 386: "It should be pasted into the list item, which is contenteditable." 24 selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 { SPAN} of child 0 {LI} of child 1 {UL} of child 0 {BODY} of child 0 {HTML} of document25 selection end: position 6 of child 0 {#text} of child 0 {SPAN} of child 0 { SPAN} of child 0 {LI} of child 1 {UL} of child 0 {BODY} of child 0 {HTML} of document23 selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {LI} of child 1 {UL} of child 0 {BODY} of child 0 {HTML} of document 24 selection end: position 6 of child 0 {#text} of child 0 {SPAN} of child 0 {LI} of child 1 {UL} of child 0 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/webarchive/test-duplicate-resources-expected.txt
r20018 r20075 12 12 <link rel="stylesheet" href="resources/test-style.css" type="text/css"> 13 13 </head><body> 14 <div >14 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 15 15 <img src="resources/apple.gif"> 16 16 </div> 17 <div >17 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 18 18 This is not a frameset. This text should be red sans-serif. 19 19 </div> 20 <div >20 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 21 21 <img src="resources/apple.gif"> 22 22 </div> … … 43 43 <link rel="stylesheet" href="test-style.css" type="text/css"> 44 44 </head><body> 45 <div >45 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 46 46 <img src="apple.gif"> 47 47 </div> 48 <div >48 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 49 49 This is a subframe. This text should be red sans-serif. 50 50 </div> 51 <div >51 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 52 52 <img src="apple.gif"> 53 53 </div> -
trunk/LayoutTests/webarchive/test-frameset-expected.txt
r20018 r20075 30 30 <link rel="stylesheet" href="test-style.css" type="text/css"> 31 31 </head><body> 32 <div >32 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 33 33 <img src="apple.gif"> 34 34 </div> 35 <div >35 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 36 36 This is a subframe. This text should be red sans-serif. 37 37 </div> 38 <div >38 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 39 39 <img src="apple.gif"> 40 40 </div> -
trunk/LayoutTests/webarchive/test-link-href-expected.txt
r20018 r20075 13 13 <link rel="stylesheet" href="resources/test-style.css" type="text/css"> 14 14 </head><body> 15 <div >15 <div style="font-family: Arial, Helvetica, sans-serif; color: red; "> 16 16 This text should be red sans-serif. 17 17 </div> -
trunk/WebCore/ChangeLog
r20074 r20075 1 2007-03-08 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by harrison 4 5 <rdar://problem/4903193> 6 On particular page, Copy is so slow it seems like a hang 7 8 ~2x speedup copying: 9 http://shakespeare.mit.edu/henryviii/full.html 10 Also produces less bloated markup. 11 12 * editing/markup.cpp: 13 (WebCore::startMarkup): Don't wrap text nodes in style spans. 14 For Elements, don't inline styles inherited from ancestors. 15 (WebCore::createMarkup): No longer necessary to find 16 the root's default style and pass it to startMarkup. 17 Add a wrapper span around the markup with the styles 18 that all nodes in the markup inherit (the inheritable 19 styles from the common ancestor container's computed style). 20 Added a FIXME about unecessary markup for inline ancestors 21 up to the commonAncestorBlock. 22 1 23 2007-03-08 Darin Adler <darin@apple.com> 2 24 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r20067 r20075 11198 11198 isa = PBXProject; 11199 11199 buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */; 11200 compatibilityVersion = "Xcode 2.4";11201 11200 hasScannedForEncodings = 1; 11202 11201 knownRegions = ( … … 11213 11212 projectDirPath = ""; 11214 11213 projectRoot = ""; 11215 shouldCheckCompatibility = 1;11216 11214 targets = ( 11217 11215 93F198A508245E59001E9ABC /* WebCore */, -
trunk/WebCore/editing/markup.cpp
r19951 r20075 154 154 } 155 155 156 static DeprecatedString startMarkup(const Node *node, const Range *range, EAnnotateForInterchange annotate , CSSMutableStyleDeclaration *defaultStyle)156 static DeprecatedString startMarkup(const Node *node, const Range *range, EAnnotateForInterchange annotate) 157 157 { 158 158 bool documentIsHTML = node->document()->isHTMLDocument(); … … 169 169 bool useRenderedText = annotate && !enclosingNodeWithTag(const_cast<Node*>(node), selectTag); 170 170 DeprecatedString markup = useRenderedText ? escapeTextForMarkup(renderedText(node, range), false) : escapeTextForMarkup(stringValueForRange(node, range).deprecatedString(), false); 171 if (defaultStyle) {172 Node *element = node->parentNode();173 if (element) {174 RefPtr<CSSComputedStyleDeclaration> computedStyle = Position(element, 0).computedStyle();175 RefPtr<CSSMutableStyleDeclaration> style = computedStyle->copyInheritableProperties();176 // Styles that Mail blockquotes contribute should only be placed on the Mail blockquote, to help177 // us differentiate those styles from ones that the user has applied. This helps us178 // get the color of content pasted into blockquotes right.179 removeEnclosingMailBlockquoteStyle(style.get(), const_cast<Node*>(node));180 181 defaultStyle->diff(style.get());182 if (style->length() > 0) {183 // FIXME: Handle case where style->cssText() has illegal characters in it, like "184 DeprecatedString openTag = DeprecatedString("<span class=\"") + AppleStyleSpanClass + "\" style=\"" + style->cssText().deprecatedString() + "\">";185 markup = openTag + markup + "</span>";186 }187 }188 }189 171 return annotate ? convertHTMLTextToInterchangeFormat(markup, static_cast<const Text*>(node)) : markup; 190 172 } … … 209 191 markup += el->nodeNamePreservingCase().deprecatedString(); 210 192 String additionalStyle; 211 if (defaultStyle && el->isHTMLElement() && !isMailBlockquote(node)) { 212 RefPtr<CSSComputedStyleDeclaration> computedStyle = Position(const_cast<Element*>(el), 0).computedStyle(); 213 RefPtr<CSSMutableStyleDeclaration> style = computedStyle->copyInheritableProperties(); 214 style->merge(styleFromMatchedRulesForElement(const_cast<Element*>(el)).get()); 215 216 // Styles that Mail blockquotes contribute should only be placed on the Mail blockquote, to help 217 // us differentiate those styles from ones that the user has applied. This helps us 218 // get the color of content pasted into blockquotes right. 219 removeEnclosingMailBlockquoteStyle(style.get(), const_cast<Node*>(node)); 220 221 defaultStyle->diff(style.get()); 222 if (style->length() > 0) { 223 CSSMutableStyleDeclaration *inlineStyleDecl = static_cast<const HTMLElement*>(el)->inlineStyleDecl(); 224 if (inlineStyleDecl) 225 inlineStyleDecl->diff(style.get()); 193 if (el->isHTMLElement()) { 194 RefPtr<CSSMutableStyleDeclaration> style = styleFromMatchedRulesForElement(const_cast<Element*>(el)); 195 if (style->length() > 0) 226 196 additionalStyle = style->cssText(); 227 }228 197 } 229 198 NamedAttrMap *attrs = el->attributes(); … … 311 280 if (nodes) 312 281 nodes->append(current); 313 me += startMarkup(current, 0, DoNotAnnotateForInterchange , 0);282 me += startMarkup(current, 0, DoNotAnnotateForInterchange); 314 283 } 315 284 // print children … … 385 354 Node *lastClosed = 0; 386 355 Vector<Node*> ancestorsToClose; 387 388 // Calculate the "default style" for this markup and put those styles389 // in a top level span instead of inlining them.390 Node* root = highestEditableRoot(range->startPosition());391 if (!root) {392 root = range->startPosition().node();393 while (root && !root->hasTagName(bodyTag))394 root = root->parentNode();395 if (!root)396 root = doc->documentElement();397 }398 Position pos(root, 0);399 RefPtr<CSSComputedStyleDeclaration> computedStyle = pos.computedStyle();400 RefPtr<CSSMutableStyleDeclaration> defaultStyle = computedStyle->copyInheritableProperties();401 356 402 357 Node* startNode = range->startNode(); … … 434 389 // Add the node to the markup. 435 390 if (addMarkupForNode) { 436 markups.append(startMarkup(n, range, annotate , defaultStyle.get()));391 markups.append(startMarkup(n, range, annotate)); 437 392 if (nodes) 438 393 nodes->append(n); … … 471 426 // or b) ancestors that we never encountered during a pre-order traversal starting at startNode: 472 427 ASSERT(startNode->isDescendantOf(parent)); 473 markups.prepend(startMarkup(parent, range, annotate , defaultStyle.get()));428 markups.prepend(startMarkup(parent, range, annotate)); 474 429 markups.append(endMarkup(parent)); 475 430 if (nodes) … … 488 443 ASSERT(ec == 0); 489 444 445 // Add a wrapper span with the styles that all of the nodes in the markup inherit. 446 if (!commonAncestor->isElementNode()) 447 commonAncestor = commonAncestor->parentNode(); 448 449 if (commonAncestor) { 450 RefPtr<CSSComputedStyleDeclaration> computedStyle = new CSSComputedStyleDeclaration(commonAncestor); 451 RefPtr<CSSMutableStyleDeclaration> style = computedStyle->copyInheritableProperties(); 452 // Styles that Mail blockquotes contribute should only be placed on the Mail blockquote, to help 453 // us differentiate those styles from ones that the user has applied. This helps us 454 // get the color of content pasted into blockquotes right. 455 removeEnclosingMailBlockquoteStyle(style.get(), commonAncestor); 456 457 if (style->length() > 0) { 458 // FIXME: Handle case where style->cssText() has illegal characters in it, like " 459 DeprecatedString openTag = DeprecatedString("<span class=\"") + AppleStyleSpanClass + "\" style=\"" + style->cssText().deprecatedString() + "\">"; 460 markups.prepend(openTag); 461 markups.append("</span>"); 462 } 463 } 464 490 465 // Add ancestors up to the common ancestor block so inline ancestors such as FONT and B are part of the markup. 466 // FIXME: This seems unecessary. 491 467 if (lastClosed) { 492 468 for (Node *ancestor = lastClosed->parentNode(); ancestor; ancestor = ancestor->parentNode()) { … … 509 485 break; 510 486 } 511 markups.prepend(startMarkup(ancestor, range, annotate , defaultStyle.get()));487 markups.prepend(startMarkup(ancestor, range, annotate)); 512 488 markups.append(endMarkup(ancestor)); 513 489 if (nodes) { … … 529 505 for (Node *ancestor = commonAncestorBlock; ancestor; ancestor = ancestor->parentNode()) { 530 506 if (isMailBlockquote(ancestor)) { 531 markups.prepend(startMarkup(ancestor, range, annotate , defaultStyle.get()));507 markups.prepend(startMarkup(ancestor, range, annotate)); 532 508 markups.append(endMarkup(ancestor)); 533 509 } … … 535 511 } 536 512 537 root = range->startPosition().node();513 Node* root = range->startPosition().node(); 538 514 while (root && !root->hasTagName(bodyTag)) 539 515 root = root->parentNode(); … … 555 531 style->merge(inheritedComputedProperties.get()); 556 532 557 // Pull off default styles because those will be added via the top level style span.558 defaultStyle->diff(style.get());559 560 533 // Bring the background attribute over, but not as an attribute because a background attribute on a div 561 534 // appears to have no effect. … … 566 539 markups.append("</div>"); 567 540 } 568 569 // add in the "default style" for this markup570 // FIXME: Handle case where value has illegal characters in it, like "571 DeprecatedString openTag = DeprecatedString("<span class=\"") + AppleStyleSpanClass + "\" style=\"" + defaultStyle->cssText().deprecatedString() + "\">";572 markups.prepend(openTag);573 markups.append("</span>");574 541 575 542 doc->frame()->editor()->deleteButtonController()->enable();
Note: See TracChangeset
for help on using the changeset viewer.