Commit 867f199a authored by justing's avatar justing
Browse files

LayoutTests:

        Reviewed by darin

        Removed unnecessary style spans:
        * editing/deleting/delete-3857753-fix-expected.txt:
        * editing/execCommand/4916541-expected.txt:
        * editing/execCommand/create-list-from-range-selection-expected.txt:
        * editing/execCommand/format-block-expected.txt:
        * editing/execCommand/format-block-from-range-selection-expected.txt:
        * editing/execCommand/format-block-with-braces-expected.txt:
        * editing/execCommand/indent-selection-expected.txt:
        * editing/execCommand/remove-list-from-range-selection-expected.txt:
        * editing/execCommand/remove-list-items-expected.txt:
        * editing/execCommand/switch-list-type-expected.txt:
        * editing/pasteboard/4861080-expected.txt:
        * editing/pasteboard/display-block-on-spans-expected.txt:
        * editing/pasteboard/drag-drop-modifies-page-expected.txt:
        * editing/pasteboard/paste-table-002-expected.txt:
        * editing/pasteboard/paste-text-001-expected.txt:
        * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
        * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
        * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
        * editing/style/smoosh-styles-001-expected.txt:
        * editing/style/smoosh-styles-002-expected.txt:

WebCore:

        Reviewed by darin
        
        ~3x speedup pasting 5k lines of rich text:
        http://shakespeare.mit.edu/hamlet/full.html
        ~2x speedup pasting 10k lines of plain text
        
        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::computedStyle): Added for convenience.
        * css/CSSComputedStyleDeclaration.h:
        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
        The code that pushed down the top level style span had
        a bug in it that made it do unnecessary work.  Instead of
        fixing the bug I removed the code because it was used to 
        help see more redundancies in second level style spans, but 
        createMarkup now *only* creates a top level style span.
        Only remove redundant styles from style spans and only remove
        unstyled elements if they are style spans.  FF doesn't
        remove redundant styles from elements, or remove redundant 
        font tags on copy/paste.  We could offer this functionality 
        through a separate "cleanup" command.
        * editing/markup.cpp:
        (WebCore::createMarkup): Only add markup for ancestors of 
        lastClosed if we're including markup for acommonAncestorBlock 
        (we do this for commonAncestorBlocks like tables and lists),
        otherwise it's unnecessary/redundant.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9f3a1769
2007-03-14 Justin Garcia <justin.garcia@apple.com>
Reviewed by darin
Removed unnecessary style spans:
* editing/deleting/delete-3857753-fix-expected.txt:
* editing/execCommand/4916541-expected.txt:
* editing/execCommand/create-list-from-range-selection-expected.txt:
* editing/execCommand/format-block-expected.txt:
* editing/execCommand/format-block-from-range-selection-expected.txt:
* editing/execCommand/format-block-with-braces-expected.txt:
* editing/execCommand/indent-selection-expected.txt:
* editing/execCommand/remove-list-from-range-selection-expected.txt:
* editing/execCommand/remove-list-items-expected.txt:
* editing/execCommand/switch-list-type-expected.txt:
* editing/pasteboard/4861080-expected.txt:
* editing/pasteboard/display-block-on-spans-expected.txt:
* editing/pasteboard/drag-drop-modifies-page-expected.txt:
* editing/pasteboard/paste-table-002-expected.txt:
* editing/pasteboard/paste-text-001-expected.txt:
* editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
* editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
* editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
* editing/style/smoosh-styles-001-expected.txt:
* editing/style/smoosh-styles-002-expected.txt:
2007-03-14 Mitz Pettel <mitz@webkit.org>
 
Reviewed by Hyatt, thumbs up by Darin.
......@@ -20,10 +20,9 @@ layer at (0,0) size 800x600
RenderInline {B} at (0,0) size 37x28
RenderText {#text} at (0,0) size 25x28
text run at (0,0) width 25: "on"
RenderInline {I} at (0,0) size 12x28
RenderInline {SPAN} at (0,0) size 12x28
RenderText {#text} at (25,0) size 12x28
text run at (25,0) width 12: "o"
RenderInline {SPAN} at (0,0) size 12x28
RenderText {#text} at (25,0) size 12x28
text run at (25,0) width 12: "o"
RenderBlock {DIV} at (14,42) size 756x28
RenderInline {B} at (0,0) size 54x28
RenderText {#text} at (0,0) size 54x28
......
......@@ -10,13 +10,11 @@ layer at (0,0) size 800x600
text run at (0,18) width 320: "'foo' and 'bar' before and after the indent operation."
RenderBlock {DIV} at (0,52) size 784x36
RenderBlock {BLOCKQUOTE} at (40,0) size 744x36
RenderInline {SPAN} at (0,0) size 21x18
RenderText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "foo"
RenderText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "foo"
RenderBR {BR} at (21,14) size 0x0
RenderInline {SPAN} at (0,0) size 20x18
RenderText {#text} at (0,18) size 20x18
text run at (0,18) width 20: "bar"
RenderText {#text} at (0,18) size 20x18
text run at (0,18) width 20: "bar"
RenderBlock (anonymous) at (0,36) size 784x0
selection start: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection end: position 2 of child 0 {#text} of child 2 {SPAN} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection start: position 1 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection end: position 2 of child 2 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 9 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text > SPAN > LI > OL > DIV > BODY > HTML > #document to 2 of #text > SPAN > LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text > SPAN > LI > OL > DIV > BODY > HTML > #document to 2 of #text > LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -40,9 +40,8 @@ layer at (0,0) size 800x600
text run at (0,0) width 20: "bar"
RenderListItem {LI} at (40,90) size 744x18
RenderListMarker at (-20,0) size 16x18: "6"
RenderInline {SPAN} at (0,0) size 22x18
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
RenderBlock (anonymous) at (0,124) size 784x0
selection start: position 2 of child 0 {#text} of child 1 {SPAN} of child 0 {LI} of child 0 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 2 of child 0 {#text} of child 0 {SPAN} of child 5 {LI} of child 0 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 2 of child 0 {#text} of child 5 {LI} of child 0 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -33,9 +33,8 @@ layer at (0,0) size 800x600
text run at (0,0) width 25: "Foo"
RenderBR {BR} at (25,14) size 0x0
RenderBlock {H1} at (0,39) size 782x37
RenderInline {SPAN} at (0,0) size 120x37
RenderText {#text} at (0,0) size 120x37
text run at (0,0) width 120: "Make h1"
RenderText {#text} at (0,0) size 120x37
text run at (0,0) width 120: "Make h1"
RenderBlock (anonymous) at (0,97) size 782x18
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
......
......@@ -26,9 +26,8 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock (anonymous) at (0,34) size 782x18
RenderBlock {DL} at (0,0) size 782x18
RenderInline {SPAN} at (0,0) size 22x18
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
RenderBlock (anonymous) at (0,68) size 782x0
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock {DL} at (0,68) size 782x18
......
......@@ -17,10 +17,9 @@ layer at (0,0) size 800x600
RenderInline {DIV} at (0,0) size 0x0
RenderBlock (anonymous) at (0,57) size 784x37
RenderBlock {H1} at (0,0) size 784x37
RenderInline {DIV} at (0,0) size 156x37
RenderText {#text} at (0,0) size 156x37
text run at (0,0) width 156: "Format Me"
RenderText {#text} at (0,0) size 156x37
text run at (0,0) width 156: "Format Me"
RenderBlock (anonymous) at (0,115) size 784x0
RenderInline {DIV} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
caret: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {H1} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
caret: position 0 of child 0 {#text} of child 0 {H1} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -2,7 +2,7 @@ EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > SPAN > BLOCKQUOTE > DIV > BODY > HTML > #document to 5 of #text > SPAN > BLOCKQUOTE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > BLOCKQUOTE > DIV > BODY > HTML > #document to 5 of #text > BLOCKQUOTE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -18,9 +18,8 @@ layer at (0,0) size 800x600
RenderBlock {DIV} at (0,36) size 784x194
RenderBlock {BLOCKQUOTE} at (40,0) size 744x54
RenderBlock (anonymous) at (0,0) size 744x36
RenderInline {SPAN} at (0,0) size 42x18
RenderText {#text} at (0,0) size 42x18
text run at (0,0) width 42: "Lorem"
RenderText {#text} at (0,0) size 42x18
text run at (0,0) width 42: "Lorem"
RenderBR {BR} at (42,14) size 0x0
RenderText {#text} at (0,18) size 83x18
text run at (0,18) width 83: "more Lorem!"
......@@ -51,9 +50,8 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 34x18
text run at (0,0) width 34: "Sum!"
RenderBR {BR} at (34,14) size 0x0
RenderInline {SPAN} at (0,0) size 38x18
RenderText {#text} at (0,18) size 38x18
text run at (0,18) width 38: "Thing"
RenderText {#text} at (0,18) size 38x18
text run at (0,18) width 38: "Thing"
RenderBlock (anonymous) at (0,194) size 784x0
selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 5 of child 0 {#text} of child 3 {SPAN} of child 3 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection start: position 0 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 5 of child 3 {#text} of child 3 {BLOCKQUOTE} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -14,9 +14,8 @@ layer at (0,0) size 800x600
text run at (0,0) width 528: "This tests Insert{Un}OrderedList on a range selection that is entirely within one list."
RenderBlock {DIV} at (0,34) size 784x106
RenderBlock (anonymous) at (0,0) size 784x72
RenderInline {SPAN} at (0,0) size 75x18
RenderText {#text} at (0,0) size 75x18
text run at (0,0) width 75: "None of the"
RenderText {#text} at (0,0) size 75x18
text run at (0,0) width 75: "None of the"
RenderBR {BR} at (75,14) size 0x0
RenderText {#text} at (0,18) size 100x18
text run at (0,18) width 100: "selected content"
......@@ -24,14 +23,13 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,36) size 61x18
text run at (0,36) width 61: "should be"
RenderBR {BR} at (61,50) size 0x0
RenderInline {SPAN} at (0,0) size 49x18
RenderText {#text} at (0,54) size 49x18
text run at (0,54) width 49: "in a list."
RenderText {#text} at (0,54) size 49x18
text run at (0,54) width 49: "in a list."
RenderBR {BR} at (49,68) size 0x0
RenderBlock {OL} at (0,88) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-20,0) size 16x18: "1"
RenderText {#text} at (0,0) size 316x18
text run at (0,0) width 316: "This should be in a list and should not be selected."
selection start: position 2 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 2 of child 0 {#text} of child 6 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection start: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 2 of child 6 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -6,17 +6,17 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of SPAN > DIV > BODY > HTML > #document to 0 of SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of SPAN > DIV > BODY > HTML > #document to 0 of SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of SPAN > DIV > BODY > HTML > #document to 0 of SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 0 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
......@@ -58,9 +58,8 @@ layer at (0,0) size 800x600
text run at (0,0) width 22: "baz"
RenderBlock (anonymous) at (41,55) size 742x0
RenderBlock (anonymous) at (0,142) size 784x18
RenderInline {SPAN} at (0,0) size 170x18
RenderText {#text} at (0,0) size 170x18
text run at (0,0) width 170: "This should not be in a list."
RenderText {#text} at (0,0) size 170x18
text run at (0,0) width 170: "This should not be in a list."
RenderBR {BR} at (170,14) size 0x0
RenderBlock {OL} at (0,176) size 784x20 [border: (1px solid #FF0000)]
RenderListItem {LI} at (41,1) size 742x18
......@@ -68,9 +67,8 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "foo"
RenderBlock (anonymous) at (0,212) size 784x18
RenderInline {SPAN} at (0,0) size 170x18
RenderText {#text} at (0,0) size 170x18
text run at (0,0) width 170: "This should not be in a list."
RenderText {#text} at (0,0) size 170x18
text run at (0,0) width 170: "This should not be in a list."
RenderBR {BR} at (170,14) size 0x0
RenderBlock {OL} at (0,246) size 784x20 [border: (1px solid #FF0000)]
RenderBlock (anonymous) at (41,1) size 742x0
......@@ -79,11 +77,9 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 20x18
text run at (0,0) width 20: "bar"
RenderBlock (anonymous) at (0,282) size 784x36
RenderInline {SPAN} at (0,0) size 170x18
RenderText {#text} at (0,0) size 170x18
text run at (0,0) width 170: "This should not be in a list."
RenderText {#text} at (0,0) size 170x18
text run at (0,0) width 170: "This should not be in a list."
RenderBR {BR} at (170,14) size 0x0
RenderInline {SPAN} at (0,0) size 170x18
RenderText {#text} at (0,18) size 170x18
text run at (0,18) width 170: "This should not be in a list."
caret: position 0 of child 0 {#text} of child 16 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
RenderText {#text} at (0,18) size 170x18
text run at (0,18) width 170: "This should not be in a list."
caret: position 0 of child 16 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -6,17 +6,17 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > UL > SPAN > DIV > BODY > HTML > #document to 0 of LI > UL > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > UL > DIV > BODY > HTML > #document to 0 of LI > UL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > UL > SPAN > DIV > BODY > HTML > #document to 0 of LI > UL > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > UL > DIV > BODY > HTML > #document to 0 of LI > UL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > OL > SPAN > DIV > BODY > HTML > #document to 0 of LI > OL > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 0 of LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -57,33 +57,23 @@ layer at (0,0) size 800x600
RenderText {#text} at (0,0) size 206x18
text run at (0,0) width 206: "This should be in an ordered list."
RenderBlock (anonymous) at (41,55) size 742x0
RenderBlock (anonymous) at (0,142) size 784x0
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock (anonymous) at (0,142) size 784x18
RenderBlock {UL} at (0,0) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-17,0) size 7x18: bullet
RenderInline {SPAN} at (0,0) size 222x18
RenderText {#text} at (0,0) size 222x18
text run at (0,0) width 222: "This should be in an unordered list."
RenderBlock {UL} at (0,142) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-17,0) size 7x18: bullet
RenderText {#text} at (0,0) size 222x18
text run at (0,0) width 222: "This should be in an unordered list."
RenderBlock (anonymous) at (0,176) size 784x0
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock {OL} at (0,176) size 784x20 [border: (1px solid #FF0000)]
RenderListItem {LI} at (41,1) size 742x18
RenderListMarker at (-20,0) size 16x18: "1"
RenderText {#text} at (0,0) size 206x18
text run at (0,0) width 206: "This should be in an ordered list."
RenderBlock (anonymous) at (0,212) size 784x0
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock (anonymous) at (0,212) size 784x18
RenderBlock {UL} at (0,0) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-17,0) size 7x18: bullet
RenderInline {SPAN} at (0,0) size 222x18
RenderText {#text} at (0,0) size 222x18
text run at (0,0) width 222: "This should be in an unordered list."
RenderBlock {UL} at (0,212) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-17,0) size 7x18: bullet
RenderText {#text} at (0,0) size 222x18
text run at (0,0) width 222: "This should be in an unordered list."
RenderBlock (anonymous) at (0,246) size 784x0
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock {OL} at (0,246) size 784x20 [border: (1px solid #FF0000)]
RenderBlock (anonymous) at (41,1) size 742x0
RenderListItem {LI} at (41,1) size 742x18
......@@ -95,14 +85,10 @@ layer at (0,0) size 800x600
text run at (0,0) width 170: "This should not be in a list."
RenderBR {BR} at (170,14) size 0x0
RenderText {#text} at (0,0) size 0x0
RenderInline {SPAN} at (0,0) size 0x0
RenderBlock (anonymous) at (0,316) size 784x18
RenderBlock {OL} at (0,0) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-20,0) size 16x18: "1"
RenderInline {SPAN} at (0,0) size 206x18
RenderText {#text} at (0,0) size 206x18
text run at (0,0) width 206: "This should be in an ordered list."
RenderBlock {OL} at (0,316) size 784x18
RenderListItem {LI} at (40,0) size 744x18
RenderListMarker at (-20,0) size 16x18: "1"
RenderText {#text} at (0,0) size 206x18
text run at (0,0) width 206: "This should be in an ordered list."
RenderBlock (anonymous) at (0,350) size 784x0
RenderInline {SPAN} at (0,0) size 0x0
caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {LI} of child 0 {OL} of child 11 {SPAN} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
caret: position 0 of child 0 {#text} of child 0 {LI} of child 11 {OL} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -15,10 +15,8 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 0x18
RenderBlock (anonymous) at (1,19) size 782x20
RenderBlock {DIV} at (0,0) size 782x20 [border: (1px solid #FF0000)]
RenderInline {SPAN} at (0,0) size 57x18
RenderInline {SPAN} at (0,0) size 57x18
RenderText {#text} at (1,1) size 57x18
text run at (1,1) width 57: "DragMe "
RenderText {#text} at (1,1) size 57x18
text run at (1,1) width 57: "DragMe "
RenderText {#text} at (58,1) size 97x18
text run at (58,1) width 97: "DropAboveMe"
RenderBlock (anonymous) at (1,39) size 782x0
......@@ -26,5 +24,5 @@ layer at (0,0) size 800x600
RenderBlock {DIV} at (0,40) size 784x18
RenderBR {BR} at (0,0) size 0x18
RenderBlock {UL} at (0,126) size 784x0
selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection end: position 7 of child 0 {#text} of child 0 {SPAN} of child 0 {SPAN} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection end: position 7 of child 0 {#text} of child 0 {DIV} of child 0 {SPAN} of child 1 {LI} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
......@@ -4,7 +4,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -33,9 +33,9 @@ layer at (0,0) size 800x600
text run at (0,0) width 137: "This is a paragraph."
RenderBlock (anonymous) at (0,18) size 784x0
RenderBlock {SPAN} at (0,18) size 784x18
RenderInline {B} at (0,0) size 182x18
RenderInline {SPAN} at (0,0) size 182x18
RenderText {#text} at (0,0) size 30x18
text run at (0,0) width 30: "This"
RenderText {#text} at (30,0) size 152x18
text run at (30,0) width 152: " is another paragraph."
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
caret: position 4 of child 0 {#text} of child 0 {SPAN} of child 2 {SPAN} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -3,7 +3,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -17,8 +17,7 @@ layer at (0,0) size 800x600
RenderBlock {DIV} at (0,34) size 784x18
RenderText {#text} at (0,0) size 37x18
text run at (0,0) width 37: "world"
RenderInline {SPAN} at (0,0) size 35x18
RenderText {#text} at (37,0) size 35x18
text run at (37,0) width 35: " hello"
selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 6 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
RenderText {#text} at (37,0) size 35x18
text run at (37,0) width 35: " hello"
selection start: position 0 of child 1 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 6 of child 1 {#text} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -16,5 +16,5 @@ Problem: copy/pasting some HTML including tables can give rise to a <div> elemen
abcdef
foo bar
ghijk
<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>
<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>
......@@ -9,7 +9,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 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
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -21,10 +21,9 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 140x28
RenderText {#text} at (14,14) size 69x28
text run at (14,14) width 69: "foo bar"
RenderInline {SPAN} at (0,0) size 31x28
RenderText {#text} at (83,14) size 31x28
text run at (83,14) width 31: "bar"
RenderText {#text} at (83,14) size 31x28
text run at (83,14) width 31: "bar"
RenderText {#text} at (114,14) size 40x28
text run at (114,14) width 40: " baz"
RenderText {#text} at (0,0) size 0x0
caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
caret: position 3 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -3,10 +3,10 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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
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 > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
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 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
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
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -18,13 +18,12 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 155x28
RenderText {#text} at (14,14) size 11x28
text run at (14,14) width 11: "a"
RenderInline {SPAN} at (0,0) size 23x28
RenderText {#text} at (25,14) size 23x28
text run at (25,14) width 23: "ax"
RenderText {#text} at (25,14) size 23x28
text run at (25,14) width 23: "ax"
RenderInline {SPAN} at (0,0) size 110x28
RenderText {#text} at (48,14) size 110x28
text run at (48,14) width 110: "\x{9}\x{9}\x{9}"
RenderText {#text} at (158,14) size 11x28
text run at (158,14) width 11: "z"
RenderText {#text} at (0,0) size 0x0
caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
caret: position 2 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -4,10 +4,10 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
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
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -22,13 +22,12 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 37x28
RenderText {#text} at (25,14) size 37x28
text run at (25,14) width 37: "\x{9}"
RenderInline {SPAN} at (0,0) size 23x28
RenderText {#text} at (62,14) size 23x28
text run at (62,14) width 23: "ax"
RenderText {#text} at (62,14) size 23x28
text run at (62,14) width 23: "ax"
RenderInline {SPAN} at (0,0) size 73x28
RenderText {#text} at (85,14) size 73x28
text run at (85,14) width 73: "\x{9}\x{9}"
RenderText {#text} at (158,14) size 11x28
text run at (158,14) width 11: "z"
RenderText {#text} at (0,0) size 0x0
caret: position 2 of child 0 {#text} of child 2 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -6,10 +6,10 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
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
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
......@@ -24,10 +24,9 @@ layer at (0,0) size 800x600
RenderInline {SPAN} at (0,0) size 133x28
RenderText {#text} at (25,14) size 133x28
text run at (25,14) width 133: "\x{9}\x{9}\x{9}"
RenderInline {SPAN} at (0,0) size 23x28
RenderText {#text} at (158,14) size 23x28
text run at (158,14) width 23: "ax"
RenderText {#text} at (158,14) size 23x28
text run at (158,14) width 23: "ax"
RenderText {#text} at (181,14) size 11x28
text run at (181,14) width 11: "z"
RenderText {#text} at (0,0) size 0x0
caret: position 2 of child 0 {#text} of child 2 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
......@@ -57,8 +57,7 @@ layer at (0,0) size 800x600
RenderText {#text} at (25,2) size 34x28
text run at (25,2) width 34: "cde"
RenderInline {SPAN} at (0,0) size 20x28 [color=#FF0000]
RenderInline {SPAN} at (0,0) size 20x28
RenderText {#text} at (59,2) size 20x28
text run at (59,2) width 20: "fg"
RenderText {#text} at (59,2) size 20x28
text run at (59,2) width 20: "fg"
RenderBlock (anonymous) at (0,32) size 784x0
caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment