<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[41465] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/41465">41465</a></dd>
<dt>Author</dt> <dd>justin.garcia@apple.com</dd>
<dt>Date</dt> <dd>2009-03-05 17:00:29 -0800 (Thu, 05 Mar 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>WebCore:

2009-03-05  Justin Garcia  &lt;justin.garcia@apple.com&gt;

        Reviewed by Darin Adler.
        
        WebViewDidChangeSelectionNotifications weren't being sent for commands that change the selection's position
        within the document without changing its position in the DOM.  For example, pressing return in (caret marked by ^):
        &lt;div contentEditable=&quot;true&quot;&gt;&lt;div&gt;^Hello&lt;/div&gt;&lt;/div&gt;
        Undo was being enabled, shouldDeleteDOMRange called, etc. when doing no-op deletes (a delete in an empty document 
        for example). 

        Changes to layout tests demonstrate fix.
        
        * editing/EditCommand.cpp:
        (WebCore::EditCommand::apply): Don't call applyEditing for a TypingCommand.  The TypingCommand knows whether or
        not it did work that needs to be applied.
        * editing/Editor.cpp:
        (WebCore::Editor::appliedEditing): Moved code (but did not alter) to changeSelectionAfterCommand.
        (WebCore::Editor::unappliedEditing): Ditto.
        (WebCore::Editor::reappliedEditing): Ditto.
        (WebCore::Editor::changeSelectionAfterCommand): Moved code from *appliedEditing into here.  Also call out to
        EditorClient::respondToChangedSelection() for commands that changed the selection's position in the document
        even if they did not change it's position in the DOM.  Any TypingCommand that gets this far changed it's position
        in the document.
        * editing/Editor.h:
        * editing/TypingCommand.cpp:
        (WebCore::TypingCommand::TypingCommand): Removed unused m_appliedEditing.
        (WebCore::TypingCommand::typingAddedToOpenCommand): Always apply editing.  We won't get this far if we don't need to.
        (WebCore::TypingCommand::deleteKeyPressed): Don't do any of the things that only make sense for Range selections, like
        adding to the killring and responding to a change in selections if the delete was a no-op.
        (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
        * editing/TypingCommand.h:

LayoutTests:

2009-03-05  Justin Garcia  &lt;justin.garcia@apple.com&gt;

        Reviewed by Darin Adler.
        
        WebViewDidChangeSelectionNotification isn't always called.
        Undo was enabled, shouldDeleteDOMRange was called, etc. for no-op backward and forward deletes.

        * platform/mac/editing/deleting/delete-4038408-fix-expected.txt:
        * platform/mac/editing/deleting/delete-at-start-or-end-expected.txt:
        * platform/mac/editing/deleting/delete-br-002-expected.txt:
        * platform/mac/editing/deleting/delete-br-004-expected.txt:
        * platform/mac/editing/deleting/delete-br-005-expected.txt:
        * platform/mac/editing/deleting/delete-br-006-expected.txt:
        * platform/mac/editing/deleting/delete-br-009-expected.txt:
        * platform/mac/editing/deleting/delete-br-010-expected.txt:
        * platform/mac/editing/deleting/delete-hr-expected.txt:
        * platform/mac/editing/deleting/delete-tab-004-expected.txt:
        * platform/mac/editing/deleting/forward-delete-expected.txt:
        * platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt:
        * platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt:
        * platform/mac/editing/inserting/editing-empty-divs-expected.txt:
        * platform/mac/editing/inserting/insert-3800346-fix-expected.txt:
        * platform/mac/editing/inserting/insert-br-004-expected.txt:
        * platform/mac/editing/inserting/insert-br-005-expected.txt:
        * platform/mac/editing/inserting/insert-br-006-expected.txt:
        * platform/mac/editing/inserting/insert-br-008-expected.txt:
        * platform/mac/editing/inserting/insert-div-006-expected.txt:
        * platform/mac/editing/inserting/insert-div-008-expected.txt:
        * platform/mac/editing/inserting/insert-div-010-expected.txt:
        * platform/mac/editing/inserting/insert-div-011-expected.txt:
        * platform/mac/editing/inserting/insert-div-013-expected.txt:
        * platform/mac/editing/inserting/insert-div-015-expected.txt:
        * platform/mac/editing/inserting/insert-div-019-expected.txt:
        * platform/mac/editing/inserting/insert-div-021-expected.txt:
        * platform/mac/editing/inserting/insert-paragraph-01-expected.txt:
        * platform/mac/editing/inserting/insert-paragraph-03-expected.txt:
        * platform/mac/editing/inserting/insert-paragraph-05-expected.txt:
        * platform/mac/editing/inserting/insert-tab-004-expected.txt:
        * platform/mac/editing/inserting/insert-text-with-newlines-expected.txt:
        * platform/mac/editing/inserting/line-break-expected.txt:
        * platform/mac/editing/pasteboard/3976872-expected.txt:
        * platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt:
        * platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt:
        * platform/mac/editing/pasteboard/paste-text-010-expected.txt:
        * platform/mac/editing/style/block-style-006-expected.txt:
        * platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt:
        * platform/mac/editing/undo/undo-combined-delete-expected.txt:
        * platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt:
        * platform/mac/editing/undo/undo-forward-delete-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdelete4038408fixexpectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeleteatstartorendexpectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletebr002expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletebr004expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletebr005expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletebr006expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletebr009expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletebr010expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletehrexpectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingdeletetab004expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingforwarddeleteexpectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingmergeintoemptyblock1expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingdeletingmergeintoemptyblock2expectedtxt">trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertingeditingemptydivsexpectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsert3800346fixexpectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertbr004expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertbr005expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertbr006expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertbr008expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv006expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv008expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv010expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv011expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv013expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv015expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv019expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertdiv021expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-div-021-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertparagraph01expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertparagraph03expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginsertparagraph05expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginserttab004expectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinginserttextwithnewlinesexpectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditinginsertinglinebreakexpectedtxt">trunk/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingpasteboard3976872expectedtxt">trunk/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingpasteboardemacsctrlakyexpectedtxt">trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingpasteboardemacsctrlky001expectedtxt">trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingpasteboardpastetext010expectedtxt">trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingstyleblockstyle006expectedtxt">trunk/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingundoundocombineddeleteboundaryexpectedtxt">trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingundoundocombineddeleteexpectedtxt">trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingundoundoforwarddeleteboundaryexpectedtxt">trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingundoundoforwarddeleteexpectedtxt">trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt</a></li>
<li><a href="#trunkWebCoreChangeLog">trunk/WebCore/ChangeLog</a></li>
<li><a href="#trunkWebCoreeditingEditCommandcpp">trunk/WebCore/editing/EditCommand.cpp</a></li>
<li><a href="#trunkWebCoreeditingEditorcpp">trunk/WebCore/editing/Editor.cpp</a></li>
<li><a href="#trunkWebCoreeditingEditorh">trunk/WebCore/editing/Editor.h</a></li>
<li><a href="#trunkWebCoreeditingTypingCommandcpp">trunk/WebCore/editing/TypingCommand.cpp</a></li>
<li><a href="#trunkWebCoreeditingTypingCommandh">trunk/WebCore/editing/TypingCommand.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/ChangeLog        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,3 +1,53 @@
</span><ins>+2009-03-05  Justin Garcia  &lt;justin.garcia@apple.com&gt;
+
+        Reviewed by Darin Adler.
+        
+        WebViewDidChangeSelectionNotification isn't always called.
+        Undo was enabled, shouldDeleteDOMRange was called, etc. for no-op backward and forward deletes.
+
+        * platform/mac/editing/deleting/delete-4038408-fix-expected.txt:
+        * platform/mac/editing/deleting/delete-at-start-or-end-expected.txt:
+        * platform/mac/editing/deleting/delete-br-002-expected.txt:
+        * platform/mac/editing/deleting/delete-br-004-expected.txt:
+        * platform/mac/editing/deleting/delete-br-005-expected.txt:
+        * platform/mac/editing/deleting/delete-br-006-expected.txt:
+        * platform/mac/editing/deleting/delete-br-009-expected.txt:
+        * platform/mac/editing/deleting/delete-br-010-expected.txt:
+        * platform/mac/editing/deleting/delete-hr-expected.txt:
+        * platform/mac/editing/deleting/delete-tab-004-expected.txt:
+        * platform/mac/editing/deleting/forward-delete-expected.txt:
+        * platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt:
+        * platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt:
+        * platform/mac/editing/inserting/editing-empty-divs-expected.txt:
+        * platform/mac/editing/inserting/insert-3800346-fix-expected.txt:
+        * platform/mac/editing/inserting/insert-br-004-expected.txt:
+        * platform/mac/editing/inserting/insert-br-005-expected.txt:
+        * platform/mac/editing/inserting/insert-br-006-expected.txt:
+        * platform/mac/editing/inserting/insert-br-008-expected.txt:
+        * platform/mac/editing/inserting/insert-div-006-expected.txt:
+        * platform/mac/editing/inserting/insert-div-008-expected.txt:
+        * platform/mac/editing/inserting/insert-div-010-expected.txt:
+        * platform/mac/editing/inserting/insert-div-011-expected.txt:
+        * platform/mac/editing/inserting/insert-div-013-expected.txt:
+        * platform/mac/editing/inserting/insert-div-015-expected.txt:
+        * platform/mac/editing/inserting/insert-div-019-expected.txt:
+        * platform/mac/editing/inserting/insert-div-021-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-01-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-03-expected.txt:
+        * platform/mac/editing/inserting/insert-paragraph-05-expected.txt:
+        * platform/mac/editing/inserting/insert-tab-004-expected.txt:
+        * platform/mac/editing/inserting/insert-text-with-newlines-expected.txt:
+        * platform/mac/editing/inserting/line-break-expected.txt:
+        * platform/mac/editing/pasteboard/3976872-expected.txt:
+        * platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt:
+        * platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt:
+        * platform/mac/editing/pasteboard/paste-text-010-expected.txt:
+        * platform/mac/editing/style/block-style-006-expected.txt:
+        * platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt:
+        * platform/mac/editing/undo/undo-combined-delete-expected.txt:
+        * platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt:
+        * platform/mac/editing/undo/undo-forward-delete-expected.txt:
+
</ins><span class="cx"> 2009-03-05  Eric Seidel  &lt;eric@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Rubber-stamped by Adam Roben.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdelete4038408fixexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-4038408-fix-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -5,10 +5,13 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 35 of #text &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeleteatstartorendexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-at-start-or-end-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,10 +1,6 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</del><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletebr002expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -24,6 +24,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletebr004expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -25,6 +25,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletebr005expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -25,8 +25,10 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletebr006expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -25,8 +25,10 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 23 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 23 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 23 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 23 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletebr009expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-br-009-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -7,6 +7,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletebr010expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-br-010-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -7,6 +7,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletehrexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-hr-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -8,6 +8,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingdeletetab004expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/delete-tab-004-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingforwarddeleteexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/forward-delete-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -2,12 +2,16 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingmergeintoemptyblock1expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-1-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingdeletingmergeintoemptyblock2expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/deleting/merge-into-empty-block-2-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertingeditingemptydivsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/editing-empty-divs-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsert3800346fixexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-3800346-fix-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -11,8 +11,11 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertbr004expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-br-004-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -7,6 +7,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertbr005expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-br-005-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -7,6 +7,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertbr006expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-br-006-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertbr008expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-br-008-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv006expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-006-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv008expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-008-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv010expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-010-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -6,6 +6,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv011expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-011-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv013expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-013-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -5,6 +5,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv015expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-015-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -9,6 +9,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv019expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-019-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -5,6 +5,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertdiv021expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-div-021-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-div-021-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-div-021-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -12,6 +12,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertparagraph01expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-01-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertparagraph03expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-03-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -3,6 +3,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginsertparagraph05expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginserttab004expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-tab-004-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinginserttextwithnewlinesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/insert-text-with-newlines-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditinginsertinglinebreakexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/inserting/line-break-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
</span><span class="cx"> EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingpasteboard3976872expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/pasteboard/3976872-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -7,6 +7,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertText:this text should end up bold replacingDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingpasteboardemacsctrlakyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -4,6 +4,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 23 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingpasteboardemacsctrlky001expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -4,14 +4,19 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertText: three
</span><span class="cx"> four five six
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingpasteboardpastetext010expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-010-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-010-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/pasteboard/paste-text-010-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -43,6 +43,7 @@
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingstyleblockstyle006expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/style/block-style-006-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -21,6 +21,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingundoundocombineddeleteboundaryexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-boundary-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -14,8 +14,10 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingundoundocombineddeleteexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/undo/undo-combined-delete-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -14,8 +14,10 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingundoundoforwarddeleteboundaryexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-boundary-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -4,12 +4,16 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingundoundoforwarddeleteexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/LayoutTests/platform/mac/editing/undo/undo-forward-delete-expected.txt        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -4,12 +4,16 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span></span></pre></div>
<a id="trunkWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/ChangeLog (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ChangeLog        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/WebCore/ChangeLog        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2009-03-05  Justin Garcia  &lt;justin.garcia@apple.com&gt;
+
+        Reviewed by Darin Adler.
+        
+        WebViewDidChangeSelectionNotifications weren't being sent for commands that change the selection's position
+        within the document without changing its position in the DOM.  For example, pressing return in (caret marked by ^):
+        &lt;div contentEditable=&quot;true&quot;&gt;&lt;div&gt;^Hello&lt;/div&gt;&lt;/div&gt;
+        Undo was being enabled, shouldDeleteDOMRange called, etc. when doing no-op deletes (a delete in an empty document 
+        for example). 
+
+        Changes to layout tests demonstrate fix.
+        
+        * editing/EditCommand.cpp:
+        (WebCore::EditCommand::apply): Don't call applyEditing for a TypingCommand.  The TypingCommand knows whether or
+        not it did work that needs to be applied.
+        * editing/Editor.cpp:
+        (WebCore::Editor::appliedEditing): Moved code (but did not alter) to changeSelectionAfterCommand.
+        (WebCore::Editor::unappliedEditing): Ditto.
+        (WebCore::Editor::reappliedEditing): Ditto.
+        (WebCore::Editor::changeSelectionAfterCommand): Moved code from *appliedEditing into here.  Also call out to
+        EditorClient::respondToChangedSelection() for commands that changed the selection's position in the document
+        even if they did not change it's position in the DOM.  Any TypingCommand that gets this far changed it's position
+        in the document.
+        * editing/Editor.h:
+        * editing/TypingCommand.cpp:
+        (WebCore::TypingCommand::TypingCommand): Removed unused m_appliedEditing.
+        (WebCore::TypingCommand::typingAddedToOpenCommand): Always apply editing.  We won't get this far if we don't need to.
+        (WebCore::TypingCommand::deleteKeyPressed): Don't do any of the things that only make sense for Range selections, like
+        adding to the killring and responding to a change in selections if the delete was a no-op.
+        (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
+        * editing/TypingCommand.h:
+
</ins><span class="cx"> 2009-03-05  Dimitri Glazkov  &lt;dglazkov@chromium.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Adam Roben.
</span></span></pre></div>
<a id="trunkWebCoreeditingEditCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/editing/EditCommand.cpp (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/editing/EditCommand.cpp        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/WebCore/editing/EditCommand.cpp        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -92,7 +92,9 @@
</span><span class="cx">     doApply();
</span><span class="cx">     deleteButtonController-&gt;enable();
</span><span class="cx"> 
</span><del>-    if (!m_parent) {
</del><ins>+    // Only need to call appliedEditing for top-level commands, and TypingCommands do it on their
+    // own (see TypingCommand::typingAddedToOpenCommand).
+    if (!m_parent &amp;&amp; !isTypingCommand()) {
</ins><span class="cx">         updateLayout();
</span><span class="cx">         frame-&gt;editor()-&gt;appliedEditing(this);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkWebCoreeditingEditorcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/editing/Editor.cpp (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/editing/Editor.cpp        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/WebCore/editing/Editor.cpp        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -871,13 +871,8 @@
</span><span class="cx">     dispatchEditableContentChangedEvents(*cmd);
</span><span class="cx">     
</span><span class="cx">     VisibleSelection newSelection(cmd-&gt;endingSelection());
</span><del>-    // If there is no selection change, don't bother sending shouldChangeSelection, but still call setSelection,
-    // because there is work that it must do in this situation.
-    // The old selection can be invalid here and calling shouldChangeSelection can produce some strange calls.
-    // See &lt;rdar://problem/5729315&gt; Some shouldChangeSelectedDOMRange contain Ranges for selections that are no longer valid
</del><span class="cx">     // Don't clear the typing style with this selection change.  We do those things elsewhere if necessary.
</span><del>-    if (newSelection == m_frame-&gt;selection()-&gt;selection() || m_frame-&gt;shouldChangeSelection(newSelection))
-        m_frame-&gt;selection()-&gt;setSelection(newSelection, false, false);
</del><ins>+    changeSelectionAfterCommand(newSelection, false, false, cmd.get());
</ins><span class="cx">         
</span><span class="cx">     if (!cmd-&gt;preservesTypingStyle())
</span><span class="cx">         m_frame-&gt;setTypingStyle(0);
</span><span class="lines">@@ -900,12 +895,7 @@
</span><span class="cx">     dispatchEditableContentChangedEvents(*cmd);
</span><span class="cx">     
</span><span class="cx">     VisibleSelection newSelection(cmd-&gt;startingSelection());
</span><del>-    // If there is no selection change, don't bother sending shouldChangeSelection, but still call setSelection,
-    // because there is work that it must do in this situation.
-    // The old selection can be invalid here and calling shouldChangeSelection can produce some strange calls.
-    // See &lt;rdar://problem/5729315&gt; Some shouldChangeSelectedDOMRange contain Ranges for selections that are no longer valid
-    if (newSelection == m_frame-&gt;selection()-&gt;selection() || m_frame-&gt;shouldChangeSelection(newSelection))
-        m_frame-&gt;selection()-&gt;setSelection(newSelection, true);
</del><ins>+    changeSelectionAfterCommand(newSelection, true, true, cmd.get());
</ins><span class="cx">     
</span><span class="cx">     m_lastEditCommand = 0;
</span><span class="cx">     if (client())
</span><span class="lines">@@ -918,12 +908,7 @@
</span><span class="cx">     dispatchEditableContentChangedEvents(*cmd);
</span><span class="cx">     
</span><span class="cx">     VisibleSelection newSelection(cmd-&gt;endingSelection());
</span><del>-    // If there is no selection change, don't bother sending shouldChangeSelection, but still call setSelection,
-    // because there is work that it must do in this situation.
-    // The old selection can be invalid here and calling shouldChangeSelection can produce some strange calls.
-    // See &lt;rdar://problem/5729315&gt; Some shouldChangeSelectedDOMRange contain Ranges for selections that are no longer valid
-    if (newSelection == m_frame-&gt;selection()-&gt;selection() || m_frame-&gt;shouldChangeSelection(newSelection))
-        m_frame-&gt;selection()-&gt;setSelection(newSelection, true);
</del><ins>+    changeSelectionAfterCommand(newSelection, true, true, cmd.get());
</ins><span class="cx">     
</span><span class="cx">     m_lastEditCommand = 0;
</span><span class="cx">     if (client())
</span><span class="lines">@@ -2189,4 +2174,25 @@
</span><span class="cx">     return lastVisibleRange(target, caseFlag);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void Editor::changeSelectionAfterCommand(const VisibleSelection&amp; newSelection, bool closeTyping, bool clearTypingStyle, EditCommand* cmd)
+{
+    // If there is no selection change, don't bother sending shouldChangeSelection, but still call setSelection,
+    // because there is work that it must do in this situation.
+    // The old selection can be invalid here and calling shouldChangeSelection can produce some strange calls.
+    // See &lt;rdar://problem/5729315&gt; Some shouldChangeSelectedDOMRange contain Ranges for selections that are no longer valid
+    bool selectionDidNotChangeDOMPosition = newSelection == m_frame-&gt;selection()-&gt;selection();
+    if (selectionDidNotChangeDOMPosition || m_frame-&gt;shouldChangeSelection(newSelection))
+        m_frame-&gt;selection()-&gt;setSelection(newSelection, closeTyping, clearTypingStyle);
+        
+    // Some kinds of deletes and line break insertions change the selection's position within the document without 
+    // changing its position within the DOM.  For example when you press return in the following (the caret is marked by ^): 
+    // &lt;div contentEditable=&quot;true&quot;&gt;&lt;div&gt;^Hello&lt;/div&gt;&lt;/div&gt;
+    // WebCore inserts &lt;div&gt;&lt;br&gt;&lt;/div&gt; *before* the current block, which correctly moves the paragraph down but which doesn't
+    // change the caret's DOM position ([&quot;hello&quot;, 0]).  In these situations the above SelectionController::setSelection call
+    // does not call EditorClient::respondToChangedSelection(), which, on the Mac, sends selection change notifications and 
+    // starts a new kill ring sequence, but we want to do these things (matches AppKit).
+    if (selectionDidNotChangeDOMPosition &amp;&amp; cmd-&gt;isTypingCommand())
+        client()-&gt;respondToChangedSelection();
+}
+
</ins><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkWebCoreeditingEditorh"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/editing/Editor.h (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/editing/Editor.h        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/WebCore/editing/Editor.h        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -299,6 +299,8 @@
</span><span class="cx"> 
</span><span class="cx">     PassRefPtr&lt;Range&gt; firstVisibleRange(const String&amp;, bool caseFlag);
</span><span class="cx">     PassRefPtr&lt;Range&gt; lastVisibleRange(const String&amp;, bool caseFlag);
</span><ins>+    
+    void changeSelectionAfterCommand(const VisibleSelection&amp; newSelection, bool closeTyping, bool clearTypingStyle, EditCommand*);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> inline void Editor::setStartNewKillRingSequence(bool flag)
</span></span></pre></div>
<a id="trunkWebCoreeditingTypingCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/editing/TypingCommand.cpp (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/editing/TypingCommand.cpp        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/WebCore/editing/TypingCommand.cpp        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -48,7 +48,6 @@
</span><span class="cx">       m_commandType(commandType), 
</span><span class="cx">       m_textToInsert(textToInsert), 
</span><span class="cx">       m_openForMoreTyping(true), 
</span><del>-      m_applyEditing(false), 
</del><span class="cx">       m_selectInsertedText(selectInsertedText),
</span><span class="cx">       m_smartDelete(false),
</span><span class="cx">       m_granularity(granularity),
</span><span class="lines">@@ -300,13 +299,7 @@
</span><span class="cx"> void TypingCommand::typingAddedToOpenCommand()
</span><span class="cx"> {
</span><span class="cx">     markMisspellingsAfterTyping();
</span><del>-    // Do not apply editing to the frame on the first time through.
-    // The frame will get told in the same way as all other commands.
-    // But since this command stays open and is used for additional typing, 
-    // we need to tell the frame here as other commands are added.
-    if (m_applyEditing)
-        document()-&gt;frame()-&gt;editor()-&gt;appliedEditing(this);
-    m_applyEditing = true;
</del><ins>+    document()-&gt;frame()-&gt;editor()-&gt;appliedEditing(this);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TypingCommand::insertText(const String &amp;text, bool selectInsertedText)
</span><span class="lines">@@ -436,18 +429,24 @@
</span><span class="cx">             break;
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    if (selectionToDelete.isCaretOrRange() &amp;&amp; document()-&gt;frame()-&gt;shouldDeleteSelection(selectionToDelete)) {
-        if (killRing)
-            document()-&gt;frame()-&gt;editor()-&gt;addToKillRing(selectionToDelete.toNormalizedRange().get(), false);
-        // Make undo select everything that has been deleted, unless an undo will undo more than just this deletion.
-        // FIXME: This behaves like TextEdit except for the case where you open with text insertion and then delete
-        // more text than you insert.  In that case all of the text that was around originally should be selected.
-        if (m_openedByBackwardDelete)
-            setStartingSelection(selectionAfterUndo);
-        CompositeEditCommand::deleteSelection(selectionToDelete, m_smartDelete);
-        setSmartDelete(false);
-        typingAddedToOpenCommand();
</del><ins>+    if (selectionToDelete.isNone()) {
+        ASSERT_NOT_REACHED();
+        return;
</ins><span class="cx">     }
</span><ins>+    
+    if (selectionToDelete.isCaret() || !document()-&gt;frame()-&gt;shouldDeleteSelection(selectionToDelete))
+        return;
+    
+    if (killRing)
+        document()-&gt;frame()-&gt;editor()-&gt;addToKillRing(selectionToDelete.toNormalizedRange().get(), false);
+    // Make undo select everything that has been deleted, unless an undo will undo more than just this deletion.
+    // FIXME: This behaves like TextEdit except for the case where you open with text insertion and then delete
+    // more text than you insert.  In that case all of the text that was around originally should be selected.
+    if (m_openedByBackwardDelete)
+        setStartingSelection(selectionAfterUndo);
+    CompositeEditCommand::deleteSelection(selectionToDelete, m_smartDelete);
+    setSmartDelete(false);
+    typingAddedToOpenCommand();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TypingCommand::forwardDeleteKeyPressed(TextGranularity granularity, bool killRing)
</span><span class="lines">@@ -514,15 +513,21 @@
</span><span class="cx">             break;
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    if (selectionToDelete.isCaretOrRange() &amp;&amp; document()-&gt;frame()-&gt;shouldDeleteSelection(selectionToDelete)) {
-        if (killRing)
-            document()-&gt;frame()-&gt;editor()-&gt;addToKillRing(selectionToDelete.toNormalizedRange().get(), false);
-        // make undo select what was deleted
-        setStartingSelection(selectionAfterUndo);
-        CompositeEditCommand::deleteSelection(selectionToDelete, m_smartDelete);
-        setSmartDelete(false);
-        typingAddedToOpenCommand();
</del><ins>+    if (selectionToDelete.isNone()) {
+        ASSERT_NOT_REACHED();
+        return;
</ins><span class="cx">     }
</span><ins>+    
+    if (selectionToDelete.isCaret() || !document()-&gt;frame()-&gt;shouldDeleteSelection(selectionToDelete))
+        return;
+        
+    if (killRing)
+        document()-&gt;frame()-&gt;editor()-&gt;addToKillRing(selectionToDelete.toNormalizedRange().get(), false);
+    // make undo select what was deleted
+    setStartingSelection(selectionAfterUndo);
+    CompositeEditCommand::deleteSelection(selectionToDelete, m_smartDelete);
+    setSmartDelete(false);
+    typingAddedToOpenCommand();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TypingCommand::deleteSelection(bool smartDelete)
</span></span></pre></div>
<a id="trunkWebCoreeditingTypingCommandh"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/editing/TypingCommand.h (41464 => 41465)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/editing/TypingCommand.h        2009-03-06 00:35:54 UTC (rev 41464)
+++ trunk/WebCore/editing/TypingCommand.h        2009-03-06 01:00:29 UTC (rev 41465)
</span><span class="lines">@@ -87,7 +87,6 @@
</span><span class="cx">     ETypingCommand m_commandType;
</span><span class="cx">     String m_textToInsert;
</span><span class="cx">     bool m_openForMoreTyping;
</span><del>-    bool m_applyEditing;
</del><span class="cx">     bool m_selectInsertedText;
</span><span class="cx">     bool m_smartDelete;
</span><span class="cx">     TextGranularity m_granularity;
</span></span></pre>
</div>
</div>

</body>
</html>