<!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>[240902] 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/240902">240902</a></dd>
<dt>Author</dt> <dd>megan_gardner@apple.com</dd>
<dt>Date</dt> <dd>2019-02-03 01:05:21 -0800 (Sun, 03 Feb 2019)</dd>
</dl>

<h3>Log Message</h3>
<pre>Turn on Smart Paste
https://bugs.webkit.org/show_bug.cgi?id=193786

Reviewed by Ryosuke Niwa.

Source/WebCore:

Turned on a modified tests:
LayoutTests/editing/pasteboard/smart-paste-001.html
LayoutTests/editing/pasteboard/smart-paste-002.html
LayoutTests/editing/pasteboard/smart-paste-003.html
LayoutTests/editing/pasteboard/smart-paste-004.html
LayoutTests/editing/pasteboard/smart-paste-005.html
LayoutTests/editing/pasteboard/smart-paste-006.html
LayoutTests/editing/pasteboard/smart-paste-007.html
LayoutTests/editing/pasteboard/smart-paste-008.html

* platform/ios/PasteboardIOS.mm:
(WebCore::Pasteboard::canSmartReplace):
Turn on smart replace.

Source/WebKit:

* Platform/spi/ios/UIKitSPI.h:
* UIProcess/ios/TextCheckerIOS.mm:
(WebKit::TextChecker::isSmartInsertDeleteEnabled):
Use the flag from UIKit to determine if smart copy paste should be
turned on.

LayoutTests:

Rebaselined many tests and/or added iOS specific expectations to
correctly reflect smart copy paste behavior.

* editing/editing.js:
(runEditingTestWithCallbackLogging):
(runDumpAsTextEditingTest):
Added ability to handle async functions.
* editing/pasteboard/smart-paste-001.html:
* editing/pasteboard/smart-paste-002.html:
* editing/pasteboard/smart-paste-003.html:
* editing/pasteboard/smart-paste-004.html:
* editing/pasteboard/smart-paste-005.html:
* editing/pasteboard/smart-paste-006.html:
* editing/pasteboard/smart-paste-007.html:
* editing/pasteboard/smart-paste-008.html:
* platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt:
* platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt:
* platform/ios/TestExpectations:
* platform/ios/editing/pasteboard/smart-paste-001-expected.txt: Added.
* platform/ios/editing/pasteboard/smart-paste-002-expected.txt: Added.
* platform/ios/editing/pasteboard/smart-paste-003-expected.txt: Added.
* platform/ios/editing/pasteboard/smart-paste-004-expected.txt: Added.
* platform/ios/editing/pasteboard/smart-paste-005-expected.txt: Added.
* platform/ios/editing/pasteboard/smart-paste-006-expected.txt: Added.
* resources/ui-helper.js:
(window.UIHelper.doubleClickAt):
(window.UIHelper.async.selectWordByDoubleTapOrClick):
Added helper functions to allow for selecting a word by double tap or click.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestseditingeditingjs">trunk/LayoutTests/editing/editing.js</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardsmartpaste006html">trunk/LayoutTests/editing/pasteboard/smart-paste-006.html</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardsmartpaste007html">trunk/LayoutTests/editing/pasteboard/smart-paste-007.html</a></li>
<li><a href="#trunkLayoutTestsplatformiosTestExpectations">trunk/LayoutTests/platform/ios/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboard4989774expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/4989774-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboard40762672expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/4076267-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardinputfield1expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/input-field-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings006expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings007expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings008expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings009expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings010expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastematchstyle001expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-match-style-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastetext008expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastetext009expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastetext019expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-019-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastetextattabspan003expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-at-tabspan-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardpastexmlexpectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-xml-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardsmartpaste007expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioswk2editingpasteboardsmartpaste008expectedtxt">trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreplatformiosPasteboardIOSmm">trunk/Source/WebCore/platform/ios/PasteboardIOS.mm</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitPlatformspiiosUIKitSPIh">trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h</a></li>
<li><a href="#trunkSourceWebKitUIProcessiosTextCheckerIOSmm">trunk/Source/WebKit/UIProcess/ios/TextCheckerIOS.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardonpastetexthtmlexpectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/onpaste-text-html-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardpastetext001expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardpastetext002expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardpastetext003expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardpastetext010expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardpastetextattabspan001expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-at-tabspan-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste001expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste002expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste003expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste003trailingwhitespaceexpectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste004expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste005expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformioseditingpasteboardsmartpaste006expectedtxt">trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-006-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/ChangeLog 2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -1,3 +1,39 @@
</span><ins>+2019-02-03  Megan Gardner  <megan_gardner@apple.com>
+
+        Turn on Smart Paste
+        https://bugs.webkit.org/show_bug.cgi?id=193786
+
+        Reviewed by Ryosuke Niwa.
+
+        Rebaselined many tests and/or added iOS specific expectations to 
+        correctly reflect smart copy paste behavior.
+
+        * editing/editing.js:
+        (runEditingTestWithCallbackLogging):
+        (runDumpAsTextEditingTest):
+        Added ability to handle async functions.
+        * editing/pasteboard/smart-paste-001.html:
+        * editing/pasteboard/smart-paste-002.html:
+        * editing/pasteboard/smart-paste-003.html:
+        * editing/pasteboard/smart-paste-004.html:
+        * editing/pasteboard/smart-paste-005.html:
+        * editing/pasteboard/smart-paste-006.html:
+        * editing/pasteboard/smart-paste-007.html:
+        * editing/pasteboard/smart-paste-008.html:
+        * platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt:
+        * platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt:
+        * platform/ios/TestExpectations:
+        * platform/ios/editing/pasteboard/smart-paste-001-expected.txt: Added.
+        * platform/ios/editing/pasteboard/smart-paste-002-expected.txt: Added.
+        * platform/ios/editing/pasteboard/smart-paste-003-expected.txt: Added.
+        * platform/ios/editing/pasteboard/smart-paste-004-expected.txt: Added.
+        * platform/ios/editing/pasteboard/smart-paste-005-expected.txt: Added.
+        * platform/ios/editing/pasteboard/smart-paste-006-expected.txt: Added.
+        * resources/ui-helper.js:
+        (window.UIHelper.doubleClickAt):
+        (window.UIHelper.async.selectWordByDoubleTapOrClick):
+        Added helper functions to allow for selecting a word by double tap or click.
+
</ins><span class="cx"> 2019-02-02  Justin Fan  <justin_fan@apple.com>
</span><span class="cx"> 
</span><span class="cx">         [WebGPU] Fix GPURenderPassEncoder::setVertexBuffers and allow overlapping indices with GPUBindGroups
</span></span></pre></div>
<a id="trunkLayoutTestseditingeditingjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/editing/editing.js (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/editing.js     2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/editing/editing.js        2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -954,8 +954,21 @@
</span><span class="cx">     selection.setPosition(elem, 0);
</span><span class="cx">     const result = editingTest();
</span><span class="cx"> 
</span><del>-    for (var i = 0; i < elementsForDumpingMarkupList.length; i++)
-        document.body.appendChild(elementsForDumpingMarkupList[i]);
</del><ins>+    const postTask = () => {
+        for (var i = 0; i < elementsForDumpingMarkupList.length; i++)
+            document.body.appendChild(elementsForDumpingMarkupList[i]);
+    }
+
+    if (result instanceof Promise) {
+        if (window.testRunner)
+            testRunner.waitUntilDone();
+        result.then(() => {
+            postTask();
+            if (window.testRunner)
+                testRunner.notifyDone();
+        });
+    } else
+        postTask();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function debugForDumpAsText(name) {
</span></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardsmartpaste006html"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/editing/pasteboard/smart-paste-006.html (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/smart-paste-006.html        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/editing/pasteboard/smart-paste-006.html   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -44,7 +44,8 @@
</span><span class="cx"> <script>
</span><span class="cx"> 
</span><span class="cx"> async function editingTest() {
</span><del>-    await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test'));    cutCommand();
</del><ins>+    await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test'));
+    cutCommand();
</ins><span class="cx">     typeCharacterCommand('-');
</span><span class="cx">     typeCharacterCommand('-');
</span><span class="cx">     moveSelectionBackwardByCharacterCommand();
</span></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardsmartpaste007html"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/editing/pasteboard/smart-paste-007.html (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/smart-paste-007.html        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/editing/pasteboard/smart-paste-007.html   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -18,7 +18,6 @@
</span><span class="cx"> </style>
</span><span class="cx"> <script src="../editing.js"></script>
</span><span class="cx"> <script src="../../resources/ui-helper.js"></script>
</span><del>-
</del><span class="cx"> <script>
</span><span class="cx"> 
</span><span class="cx"> async function editingTest() {
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiosTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios/TestExpectations (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/TestExpectations  2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios/TestExpectations     2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -2107,6 +2107,9 @@
</span><span class="cx"> editing/pasteboard/paste-visible-script.html [ Failure ]
</span><span class="cx"> editing/pasteboard/paste-wrapped-blockquote-into-nonblockquote.html [ Failure ]
</span><span class="cx"> 
</span><ins>+# Not able to select select element on iOS
+editing/pasteboard/4944770-2.html [ Failure ]
+
</ins><span class="cx"> # Failing pasteboard to triage
</span><span class="cx"> editing/pasteboard/4242293-1.html [ Failure ]
</span><span class="cx"> editing/pasteboard/5780697-2.html [ Failure ]
</span><span class="lines">@@ -2138,14 +2141,8 @@
</span><span class="cx"> editing/pasteboard/paste-sanitize-crash-1.html [ Failure ]
</span><span class="cx"> editing/pasteboard/paste-sanitize-crash-2.html [ Failure ]
</span><span class="cx"> editing/pasteboard/paste-text-events.html [ Failure ]
</span><del>-editing/pasteboard/smart-paste-001.html [ Failure ]
-editing/pasteboard/smart-paste-002.html [ Failure ]
-editing/pasteboard/smart-paste-003.html [ Failure ]
-editing/pasteboard/smart-paste-004.html [ Failure ]
-editing/pasteboard/smart-paste-005.html [ Failure ]
-editing/pasteboard/smart-paste-007.html [ Failure ]
-editing/pasteboard/smart-paste-008.html [ Failure ]
</del><span class="cx"> 
</span><ins>+
</ins><span class="cx"> # Local pasteboard is not implemented on iOS, so pasteboard tests used to be all disabled.
</span><span class="cx"> 
</span><span class="cx"> editing/execCommand/find-after-replace.html [ Skip ]
</span></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboard4989774expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios/editing/pasteboard/4989774-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/4989774-expected.txt   2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/4989774-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -4,14 +4,18 @@
</span><span class="cx">   RenderBlock {HTML} at (0,0) size 800x600
</span><span class="cx">     RenderBody {BODY} at (8,8) size 784x584
</span><span class="cx">       RenderImage {IMG} at (0,0) size 76x103
</span><del>-      RenderImage {IMG} at (76,0) size 76x103
-      RenderImage {IMG} at (152,0) size 76x103
-      RenderBR {BR} at (228,103) size 0x0
-      RenderText {#text} at (0,103) size 740x39
-        text run at (0,103) width 635: "This tests for a bug where an images pasted on the same line would appear on different lines. "
-        text run at (634,103) width 102: "You should see"
-        text run at (735,103) width 5: " "
-        text run at (0,123) width 364: "several pictures above all in the same line/paragraph."
</del><ins>+      RenderText {#text} at (76,88) size 4x19
+        text run at (76,88) width 4: " "
+      RenderImage {IMG} at (80,0) size 76x103
+      RenderText {#text} at (156,88) size 4x19
+        text run at (156,88) width 4: " "
+      RenderImage {IMG} at (160,0) size 76x103
+      RenderBR {BR} at (236,103) size 0x0
+      RenderText {#text} at (0,108) size 740x39
+        text run at (0,108) width 635: "This tests for a bug where an images pasted on the same line would appear on different lines. "
+        text run at (634,108) width 102: "You should see"
+        text run at (735,108) width 5: " "
+        text run at (0,128) width 364: "several pictures above all in the same line/paragraph."
</ins><span class="cx">       RenderText {#text} at (0,0) size 0x0
</span><span class="cx">       RenderText {#text} at (0,0) size 0x0
</span><del>-caret: position 164 of child 4 {#text} of body
</del><ins>+caret: position 164 of child 6 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardonpastetexthtmlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/onpaste-text-html-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/onpaste-text-html-expected.txt                         (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/onpaste-text-html-expected.txt    2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+CONSOLE MESSAGE: line 21: text/plain: This test verifies that we can get text/html from the clipboard during an onpaste event. 
+CONSOLE MESSAGE: line 23: text/html: <span style="...">This test verifies that we can get text/html from the clipboard during an onpaste event.<span class="Apple-converted-space"> </span></span>
+This test verifies that we can get text/html from the clipboard during an onpaste event. This test requires DRT.
+Paste content in this div. This test verifies that we can get text/html from the clipboard during an onpaste event. 
+PASS
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardpastetext001expectedtxtfromrev240901trunkLayoutTestsplatformioswk2editingpasteboardpastexmlexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-001-expected.txt (from rev 240901, trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-xml-expected.txt) (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-001-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-001-expected.txt       2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > SPAN > DIV > BODY > HTML > #document to 15 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > SPAN > DIV > BODY > HTML > #document to 11 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+You should see "foo barbar baz" below:
+| "
+"
+| <span>
+|   id="test"
+|   "foo bar bar<#selection-caret> baz"
+| "
+"
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardpastetext002expectedtxtfromrev240901trunkLayoutTestsplatformioswk2editingpasteboardpastetext009expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-002-expected.txt (from rev 240901, trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-009-expected.txt) (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-002-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-002-expected.txt       2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,74 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 9 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 45 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 44 of #text > DIV > DIV > BODY > HTML > #document to 44 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests copy and pastes "is a tide in the affairs of men,\nWhich taken" twice.
+
+There is a tide in the affairs of men,
+Which taken is a tide in the affairs of men,
+Which taken at the flood leads on to fortune.
+Omitted, all the voyage of their life,
+Is bound in shallows and in miseries.
+execCopyCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div> <div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div>
+execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div>
+execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which taken is a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardpastetext003expectedtxtfromrev240901trunkLayoutTestsplatformioswk2editingpasteboardpastetext008expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-003-expected.txt (from rev 240901, trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-008-expected.txt) (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-003-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-003-expected.txt       2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,117 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 38 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 40 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 40 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This test copies and pastes "is a tide in the affairs of men,\nWhich taken at the flood leads on to fortune.\nOmitted" twice.
+
+There is a tide in the affairs of men,
+Which taken at the flood leads on to fortune.
+Omitted is a tide in the affairs of men,
+Which taken at the flood leads on to fortune.
+Omitted, all the voyage of their life,
+Is bound in shallows and in miseries.
+execCopyCommand: <div id="test" class="editing">There is a tide in the affairs of men, <div class="editing">Which taken at the flood leads on to fortune. <div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div>
+execPasteCommand: <div id="test" class="editing">There&nbsp;is a tide in the affairs of men,<div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing"><div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div>
+execPasteCommand: <div id="test" class="editing">There&nbsp;is a tide in the affairs of men,<div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing"><div class="editing">Omitted is a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardpastetext010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-010-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-010-expected.txt                            (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-010-expected.txt       2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+There was a bug when pasting at the end of the block. The content was inserted at the start
+the block instead of the end. This tests the insert-at-end case.
+| "
+"
+| <div>
+|   class="editing"
+|   id="test"
+|   "There is a tide in the affairs of men."
+|   <br>
+|   <br>
+|   "of men. of men.<#selection-caret>"
+| "
+"
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardpastetextattabspan001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-at-tabspan-001-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-at-tabspan-001-expected.txt                         (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/paste-text-at-tabspan-001-expected.txt    2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+You should see aax\tz below:
+| "
+"
+| <span>
+|   id="test"
+|   "a ax<#selection-caret>"
+|   <span>
+|     class="Apple-tab-span"
+|     style="white-space:pre"
+|     "                   "
+|   "z"
+| "
+"
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-001-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-001-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-001-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Smart paste when pasting after a word at the end of a line.
+Expected Results: 
+A space should be added between the preexisting word and the word that's pasted. It should like this: 
+test test
+test test
+execCopyCommand: <div id="test" class="editing"> test </div>
+execPasteCommand: <div id="test" class="editing"> test test</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-002-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-002-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-002-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Smart paste when pasting at the beginning of a line before a word.
+Expected Results: 
+A space should be added after the pasted word before the preexising word. It should like this: 
+test test
+test test
+execCopyCommand: <div id="test" class="editing"> test </div>
+execPasteCommand: <div id="test" class="editing">test test </div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Smart paste when pasting after a word and before a space and another word.
+Expected Results: 
+A space should be added between the preexisting word and the word that's pasted. No space should be added after the pasted word. It should like this: 
+test test test
+test test test
+execCopyCommand: <div id="test" class="editing"> test test </div>
+execPasteCommand: <div id="test" class="editing"> test test test</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste003trailingwhitespaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt                               (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt  2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Smart paste when pasting a word with trailing whitespace after a word and a space before another word.
+
+To run this test manually, select "hello " (including trailing space), copy, and paste.
+
+Expected result
+
+A space should be added between the preexisting word and the word that's pasted. No space should be added after the pasted word: hello hello world
+
+Actual result
+
+execCopyCommand: <div id="test" class="editing" style="font-size: 24px;"> hello world </div>
+execPasteCommand: <div id="test" class="editing" style="font-size: 24px;"> hello hello &nbsp;world</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-004-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-004-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-004-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DIV > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Smart paste when pasting after word and a space before another word.
+Expected Results: 
+A space should be added after the pasted word before the other preexisting word. It should like this: 
+test test test
+test test test
+execCopyCommand: <div id="test" class="editing"> test test </div>
+execPasteCommand: <div id="test" class="editing"> test test test</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-005-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-005-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-005-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Smart paste when pasting in the middle of a word.
+Expected Results: 
+Spaces should be added before and after the pasted word. It should look like this: 
+te test st
+te test st
+execCopyCommand: <div id="test" class="editing"> test </div>
+execPasteCommand: <div id="test" class="editing"> te test st</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioseditingpasteboardsmartpaste006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-006-expected.txt (0 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-006-expected.txt                           (rev 0)
+++ trunk/LayoutTests/platform/ios/editing/pasteboard/smart-paste-006-expected.txt      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Smart paste when pasting between smart paste exempt characters.
+Expected Results: 
+No spaces should be added before or after the pasted word. It should look like this: 
+-test-
+-test-
+execCutCommand: <div id="test" class="editing"><br></div>
+execTypeCharacterCommand: <div id="test" class="editing">-</div>
+execTypeCharacterCommand: <div id="test" class="editing">--</div>
+execPasteCommand: <div id="test" class="editing">-test-</div>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboard40762672expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/4076267-2-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/4076267-2-expected.txt     2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/4076267-2-expected.txt        2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertText:there should be a single trailing space between the '.' and the last character in this sentence  replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 96 of #text > DIV > DIV > BODY > HTML > #document to 96 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 97 of #text > DIV > DIV > BODY > HTML > #document to 97 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 97 of #text > DIV > DIV > BODY > HTML > #document to 97 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -27,4 +27,4 @@
</span><span class="cx">         RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #AAAAFF)]
</span><span class="cx">           RenderText {#text} at (2,2) size 586x19
</span><span class="cx">             text run at (2,2) width 586: "there should be a single trailing space between the '.' and the last character in this sentence ."
</span><del>-caret: position 96 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
</del><ins>+caret: position 97 of child 0 {#text} of child 0 {DIV} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardinputfield1expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/input-field-1-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/input-field-1-expected.txt 2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/input-field-1-expected.txt    2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 3 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -19,7 +19,9 @@
</span><span class="cx">           text run at (0,0) width 241: "This tests Copy/Paste of a input field."
</span><span class="cx">       RenderBlock {DIV} at (0,36) size 784x25
</span><span class="cx">         RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
</span><del>-        RenderTextControl {INPUT} at (141,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
</del><ins>+        RenderText {#text} at (139,1) size 5x19
+          text run at (139,1) width 5: " "
+        RenderTextControl {INPUT} at (145,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
</ins><span class="cx">       RenderBlock {UL} at (0,77) size 784x20
</span><span class="cx">         RenderListItem {LI} at (40,0) size 744x20
</span><span class="cx">           RenderListMarker at (-18,0) size 7x19: bullet
</span><span class="lines">@@ -27,6 +29,6 @@
</span><span class="cx">             text run at (0,0) width 44: "Passed"
</span><span class="cx"> layer at (17,49) size 122x14
</span><span class="cx">   RenderBlock {DIV} at (6,3) size 123x15
</span><del>-layer at (156,49) size 122x14
</del><ins>+layer at (160,49) size 122x14
</ins><span class="cx">   RenderBlock {DIV} at (6,3) size 123x15
</span><del>-caret: position 1 of child 1 {INPUT} of child 2 {DIV} of body
</del><ins>+caret: position 1 of child 2 {INPUT} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings006expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-006-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-006-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-006-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -47,6 +47,6 @@
</span><span class="cx">           RenderText {#text} at (2,3) size 77x28
</span><span class="cx">             text run at (2,3) width 77: "line one"
</span><span class="cx">           RenderBR {BR} at (78,25) size 1x0
</span><del>-          RenderText {#text} at (2,33) size 78x28
-            text run at (2,33) width 78: "line two"
-caret: position 1 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+          RenderText {#text} at (2,33) size 84x28
+            text run at (2,33) width 84: "l ine two"
+caret: position 2 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings007expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-007-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-007-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-007-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -49,6 +49,6 @@
</span><span class="cx">               text run at (0,1) width 77: "line one"
</span><span class="cx">             RenderBR {BR} at (76,23) size 1x0
</span><span class="cx">           RenderBlock {DIV} at (2,32) size 780x30
</span><del>-            RenderText {#text} at (0,1) size 78x28
-              text run at (0,1) width 78: "line two"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+            RenderText {#text} at (0,1) size 84x28
+              text run at (0,1) width 84: "l ine two"
+caret: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings008expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-008-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-008-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-008-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -48,6 +48,6 @@
</span><span class="cx">             RenderText {#text} at (0,1) size 77x28
</span><span class="cx">               text run at (0,1) width 77: "line one"
</span><span class="cx">           RenderBlock {DIV} at (2,32) size 780x30
</span><del>-            RenderText {#text} at (0,1) size 78x28
-              text run at (0,1) width 78: "line two"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+            RenderText {#text} at (0,1) size 84x28
+              text run at (0,1) width 84: "l ine two"
+caret: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings009expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-009-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-009-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-009-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -50,6 +50,6 @@
</span><span class="cx">                 text run at (0,1) width 77: "line one"
</span><span class="cx">               RenderBR {BR} at (76,23) size 1x0
</span><span class="cx">             RenderBlock {DIV} at (0,30) size 780x30
</span><del>-              RenderText {#text} at (0,1) size 78x28
-                text run at (0,1) width 78: "line two"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+              RenderText {#text} at (0,1) size 84x28
+                text run at (0,1) width 84: "l ine two"
+caret: position 2 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastelineendings010expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-010-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-010-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-line-endings-010-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 8 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -49,6 +49,6 @@
</span><span class="cx">               RenderText {#text} at (0,1) size 77x28
</span><span class="cx">                 text run at (0,1) width 77: "line one"
</span><span class="cx">             RenderBlock (anonymous) at (0,30) size 780x30
</span><del>-              RenderText {#text} at (0,1) size 78x28
-                text run at (0,1) width 78: "line two"
-caret: position 1 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+              RenderText {#text} at (0,1) size 84x28
+                text run at (0,1) width 84: "l ine two"
+caret: position 2 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastematchstyle001expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-match-style-001-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-match-style-001-expected.txt 2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-match-style-001-expected.txt    2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertText:b replacingDOMRange:range from 1 of #text > B > DIV > DIV > BODY > HTML > #document to 1 of #text > B > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > B > DIV > DIV > BODY > HTML > #document to 2 of #text > B > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > B > DIV > DIV > BODY > HTML > #document to 3 of #text > B > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">           RenderText {#text} at (0,0) size 0x0
</span><span class="cx">       RenderBlock {DIV} at (0,248) size 784x34
</span><span class="cx">         RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
</span><del>-          RenderInline {B} at (0,0) size 26x28
-            RenderText {#text} at (2,3) size 26x28
-              text run at (2,3) width 26: "ab"
-caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+          RenderInline {B} at (0,0) size 32x28
+            RenderText {#text} at (2,3) size 32x28
+              text run at (2,3) width 32: "a b"
+caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastetext008expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-008-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-008-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-008-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 45 of #text > DIV > BODY > HTML > #document to 45 of #text > DIV > BODY > HTML > #document toDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 46 of #text > DIV > BODY > HTML > #document to 46 of #text > DIV > BODY > HTML > #document toDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -122,8 +122,8 @@
</span><span class="cx">           RenderText {#text} at (14,15) size 356x28
</span><span class="cx">             text run at (14,15) width 356: "Is bound in shallows and in miseries."
</span><span class="cx">         RenderBlock (anonymous) at (14,102) size 756x30
</span><del>-          RenderText {#text} at (0,1) size 438x28
-            text run at (0,1) width 438: "Upon such a full seashallows and in miseries."
</del><ins>+          RenderText {#text} at (0,1) size 444x28
+            text run at (0,1) width 444: "Upon such a full sea shallows and in miseries."
</ins><span class="cx">       RenderBlock {DIV} at (0,146) size 784x58 [border: (2px solid #FF0000)]
</span><span class="cx">         RenderText {#text} at (14,15) size 380x28
</span><span class="cx">           text run at (14,15) width 380: "Upon such a full sea are we now afloat,"
</span></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastetext009expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-009-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-009-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-009-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -81,12 +81,12 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 39 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text > DIV > DIV > BODY > HTML > #document to 40 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><del>-EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</del><ins>+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -102,9 +102,10 @@
</span><span class="cx">           RenderText {#text} at (14,15) size 356x28
</span><span class="cx">             text run at (14,15) width 356: "Is bound in shallows and in miseries."
</span><span class="cx">         RenderBlock (anonymous) at (14,102) size 756x30
</span><del>-          RenderText {#text} at (0,1) size 18x28
</del><ins>+          RenderText {#text} at (0,1) size 24x28
</ins><span class="cx">             text run at (0,1) width 18: "U"
</span><ins>+            text run at (17,1) width 7: " "
</ins><span class="cx">       RenderBlock {DIV} at (0,146) size 784x58 [border: (2px solid #FF0000)]
</span><del>-        RenderText {#text} at (14,15) size 380x28
-          text run at (14,15) width 380: "Upon such a full sea are we now afloat,"
-caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</del><ins>+        RenderText {#text} at (14,15) size 386x28
+          text run at (14,15) width 386: "U pon such a full sea are we now afloat,"
+caret: position 2 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastetext019expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-019-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-019-expected.txt        2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-019-expected.txt   2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertText:Bar replacingDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -48,11 +48,12 @@
</span><span class="cx">             RenderText {#text} at (0,1) size 154x28
</span><span class="cx">               text run at (0,1) width 154: "(case sensitive)."
</span><span class="cx">       RenderBlock {DIV} at (0,321) size 784x34 [border: (2px solid #FF0000)]
</span><del>-        RenderInline {SPAN} at (0,0) size 152x28
</del><ins>+        RenderInline {SPAN} at (0,0) size 118x28
</ins><span class="cx">           RenderInline {SPAN} at (0,0) size 78x28
</span><span class="cx">             RenderText {#text} at (2,3) size 78x28
</span><span class="cx">               text run at (2,3) width 78: "Foo Bar"
</span><del>-          RenderText {#text} at (80,3) size 74x28
-            text run at (80,3) width 74: " bazBar"
-        RenderText {#text} at (0,0) size 0x0
-caret: position 7 of child 1 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</del><ins>+          RenderText {#text} at (80,3) size 40x28
+            text run at (80,3) width 40: " baz"
+        RenderText {#text} at (119,3) size 41x28
+          text run at (119,3) width 41: " Bar"
+caret: position 4 of child 2 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastetextattabspan003expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-at-tabspan-003-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-at-tabspan-003-expected.txt     2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-text-at-tabspan-003-expected.txt        2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -7,11 +7,12 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</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 class="lines">@@ -19,13 +20,13 @@
</span><span class="cx">   RenderBlock {HTML} at (0,0) size 800x600
</span><span class="cx">     RenderBody {BODY} at (8,8) size 784x584
</span><span class="cx">       RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
</span><del>-        RenderInline {SPAN} at (0,0) size 178x28
</del><ins>+        RenderInline {SPAN} at (0,0) size 184x28
</ins><span class="cx">           RenderText {#text} at (14,15) size 11x28
</span><span class="cx">             text run at (14,15) width 11: "a"
</span><span class="cx">           RenderInline {SPAN} at (0,0) size 134x28
</span><span class="cx">             RenderText {#text} at (24,15) size 134x28
</span><span class="cx">               text run at (24,15) width 134: "\x{9}\x{9}\x{9}"
</span><del>-          RenderText {#text} at (158,15) size 34x28
-            text run at (158,15) width 34: "axz"
</del><ins>+          RenderText {#text} at (158,15) size 40x28
+            text run at (158,15) width 40: "a xz"
</ins><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span><del>-caret: position 2 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</del><ins>+caret: position 3 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardpastexmlexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-xml-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-xml-expected.txt     2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/paste-xml-expected.txt        2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -11,9 +11,9 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > span > div > body > html > #document to 7 of #text > span > div > body > html > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text > span > div > body > html > #document to 14 of #text > span > div > body > html > #document toDOMRange:range from 10 of #text > span > div > body > html > #document to 10 of #text > span > div > body > html > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > span > div > body > html > #document to 15 of #text > span > div > body > html > #document toDOMRange:range from 11 of #text > span > div > body > html > #document to 11 of #text > span > div > body > html > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><del>-foo barbar baz
</del><ins>+foo bar bar baz
</ins><span class="cx"> execCopyCommand: <span xmlns="http://www.w3.org/1999/xhtml" id="test">foo bar baz</span>
</span><del>-execPasteCommand: <span xmlns="http://www.w3.org/1999/xhtml" id="test">foo barbar baz</span>
</del><ins>+execPasteCommand: <span xmlns="http://www.w3.org/1999/xhtml" id="test">foo bar bar baz</span>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardsmartpaste007expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt       2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt  2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -1,8 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</ins><span class="cx"> EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="lines">@@ -9,7 +18,7 @@
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -36,7 +45,7 @@
</span><span class="cx">             text run at (0,91) width 52: ". test."
</span><span class="cx">       RenderBlock {DIV} at (0,248) size 784x34
</span><span class="cx">         RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
</span><del>-          RenderText {#text} at (2,3) size 79x28
-            text run at (2,3) width 79: ".test.test"
-        RenderBlock (anonymous) at (0,34) size 784x0
-caret: position 5 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</del><ins>+          RenderText {#text} at (2,3) size 52x28
+            text run at (2,3) width 52: ". test."
+caret: position 6 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
+scrolled to 0,21
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformioswk2editingpasteboardsmartpaste008expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt       2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt  2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -1,9 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</ins><span class="cx"> EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
</span><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><del>-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document to 4 of #text > SPAN > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</del><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
</ins><span class="cx"> EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
</span><span class="cx"> EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="lines">@@ -21,14 +28,8 @@
</span><span class="cx">           text run at (0,0) width 559: "A smart paste is performed into a selection starting in one block and ending in another. "
</span><span class="cx">           text run at (558,0) width 221: "Spaces should surround the pasted"
</span><span class="cx">           text run at (0,20) width 37: "word."
</span><del>-      RenderBlock {DIV} at (0,112) size 784x30
-        RenderBlock {DIV} at (0,0) size 784x30
-          RenderText {#text} at (0,8) size 6x19
-            text run at (0,8) width 6: "f"
-          RenderInline {SPAN} at (0,0) size 34x28
-            RenderText {#text} at (5,1) size 34x28
-              text run at (5,1) width 34: "test"
-          RenderText {#text} at (38,8) size 26x19
-            text run at (38,8) width 26: " bar"
-        RenderBlock (anonymous) at (0,30) size 784x0
-caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 4 {DIV} of body
</del><ins>+      RenderBlock {DIV} at (0,112) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 56x19
+            text run at (0,0) width 56: "f foo bar"
+caret: position 5 of child 0 {#text} of child 0 {DIV} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/Source/WebCore/ChangeLog      2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2019-02-03  Megan Gardner  <megan_gardner@apple.com>
+
+        Turn on Smart Paste
+        https://bugs.webkit.org/show_bug.cgi?id=193786
+
+        Reviewed by Ryosuke Niwa.
+
+        Turned on a modified tests:
+        LayoutTests/editing/pasteboard/smart-paste-001.html
+        LayoutTests/editing/pasteboard/smart-paste-002.html
+        LayoutTests/editing/pasteboard/smart-paste-003.html
+        LayoutTests/editing/pasteboard/smart-paste-004.html
+        LayoutTests/editing/pasteboard/smart-paste-005.html
+        LayoutTests/editing/pasteboard/smart-paste-006.html
+        LayoutTests/editing/pasteboard/smart-paste-007.html
+        LayoutTests/editing/pasteboard/smart-paste-008.html
+
+        * platform/ios/PasteboardIOS.mm:
+        (WebCore::Pasteboard::canSmartReplace):
+        Turn on smart replace.
+
</ins><span class="cx"> 2019-02-02  Simon Fraser  <simon.fraser@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Tidy up data memebers of FrameView and related classes to shrink class sizes
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosPasteboardIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/PasteboardIOS.mm (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/PasteboardIOS.mm       2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/Source/WebCore/platform/ios/PasteboardIOS.mm  2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -147,7 +147,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool Pasteboard::canSmartReplace()
</span><span class="cx"> {
</span><del>-    return false;
</del><ins>+    return true;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void Pasteboard::read(PasteboardPlainText& text)
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog    2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/Source/WebKit/ChangeLog       2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2019-02-03  Megan Gardner  <megan_gardner@apple.com>
+
+        Turn on Smart Paste
+        https://bugs.webkit.org/show_bug.cgi?id=193786
+
+        Reviewed by Ryosuke Niwa.
+
+        * Platform/spi/ios/UIKitSPI.h:
+        * UIProcess/ios/TextCheckerIOS.mm:
+        (WebKit::TextChecker::isSmartInsertDeleteEnabled):
+        Use the flag from UIKit to determine if smart copy paste should be
+        turned on.
+
</ins><span class="cx"> 2019-02-02  Simon Fraser  <simon.fraser@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Tidy up data memebers of FrameView and related classes to shrink class sizes
</span></span></pre></div>
<a id="trunkSourceWebKitPlatformspiiosUIKitSPIh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h  2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h     2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -259,6 +259,7 @@
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> @interface UIKeyboardImpl : UIView <UIKeyboardCandidateListDelegate>
</span><ins>+- (BOOL)smartInsertDeleteIsEnabled;
</ins><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> @interface UIKeyboardImpl ()
</span></span></pre></div>
<a id="trunkSourceWebKitUIProcessiosTextCheckerIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/UIProcess/ios/TextCheckerIOS.mm (240901 => 240902)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/UIProcess/ios/TextCheckerIOS.mm      2019-02-03 00:16:44 UTC (rev 240901)
+++ trunk/Source/WebKit/UIProcess/ios/TextCheckerIOS.mm 2019-02-03 09:05:21 UTC (rev 240902)
</span><span class="lines">@@ -113,8 +113,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool TextChecker::isSmartInsertDeleteEnabled()
</span><span class="cx"> {
</span><del>-    notImplemented();
-    return false;
</del><ins>+    return [[UIKeyboardImpl sharedInstance] smartInsertDeleteIsEnabled];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TextChecker::setSmartInsertDeleteEnabled(bool)
</span></span></pre>
</div>
</div>

</body>
</html>