<!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>[174514] trunk/LayoutTests</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/174514">174514</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2014-10-09 11:41:00 -0700 (Thu, 09 Oct 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>iOS Simulator results for editing tests.

* platform/ios-simulator/editing/*: Added</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/platform/ios-simulator/editing/</li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/caret/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingcaretcaretcolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/caret/caret-color-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/deleting/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting26106753expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/2610675-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting4875189expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/4875189-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting49162351expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/4916235-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting4922367expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/4922367-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5032066expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5032066-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5099303expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5099303-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5115601expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5115601-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5126166expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5126166-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting51441392expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5144139-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting52063111expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting52063112expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5272440expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5272440-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5290534expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5290534-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5300379expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5300379-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5369009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5369009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting54338622expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5433862-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5483370expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5483370-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5546763expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5546763-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5729680expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5729680-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting58473302expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5847330-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting5890684expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/5890684-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeleting6026335expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/6026335-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingbackspaceattablecellbeginningexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-at-table-cell-beginning-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingbackspaceavoidprecedingstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-avoid-preceding-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingcollapsewhitespace3587601fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/collapse-whitespace-3587601-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3608430fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608430-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3608445fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608445-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3608462fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608462-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3775172fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3775172-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3800834fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3800834-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3857753fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3857753-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3865854fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3865854-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3928305fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3928305-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3959464fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3959464-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete4038408fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4038408-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdelete4083333fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4083333-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteacrosseditablecontentboundaries1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteacrosseditablecontentboundaries2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteacrosseditablecontentboundaries3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteafterspanws001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteafterspanws002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteafterspanws003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletealltextintextfieldassertionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteandcleanupexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-cleanup-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteandundoexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-undo-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatstartorendexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-start-or-end-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebeforeblockimage1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-image-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebeforeblocktableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockcontents001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockcontents002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockcontents003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-012-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents014expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-014-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents015expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents016expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-016-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents017expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-017-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents018expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-018-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents019expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-019-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents020expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-020-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents021expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-021-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents022expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-022-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents023expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-023-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents024expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-024-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblocktableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockquotelargeoffsetsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-blockquote-large-offsets-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-012-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebrinlasttablecellexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-in-last-table-cell-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebyword001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebyword002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletecellcontentsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-cell-contents-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletecharacter001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-character-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletecontiguousws001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-contiguous-ws-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletefirstlistitemexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-first-list-item-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletehrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-hr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimagefollowedbytwobrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-followed-by-two-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteinlinebrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-inline-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteleadingws001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-leading-ws-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteligature001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteligature002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteligature003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-012-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline014expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-014-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline015expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline016expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-016-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline017expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-017-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelinebreakbeforeunderlinedcontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-before-underlined-content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelinebreakbetweenparagraphswithsamestyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-between-paragraphs-with-same-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelineendws001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelineendws002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelistitem001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelistitem002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletemixededitablecontent001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-mixed-editable-content-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselectall001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselectall002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselectall003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselection001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-selection-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletestartblockexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-start-block-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletesurrogatepairexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-surrogatepair-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetablecellcontentsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-table-cell-contents-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetoendofparagraphexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-end-of-paragraph-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetoselecttableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-select-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetrailingws001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetrailingws002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingdeletinglinebreakpreservesunderlinecolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/deleting-line-break-preserves-underline-color-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingforwarddeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingforwarddeletekeyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-key-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletinglistitem1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/list-item-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmaintainstyleafterdeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/maintain-style-after-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergedifferentstylesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-different-styles-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergedivwithinlinestyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-div-with-inline-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeendOfParagraphexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-endOfParagraph-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeintoemptyblock1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeintoemptyblock2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergenobrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-no-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphcontatiningnoneditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-contatining-noneditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromaddressexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-address-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromh6expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromh6withstyle2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromh6withstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromlistingexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-listing-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfrompwithstyle2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfrompwithstyle3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfrompwithstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromspanwithmultipletextdecorationexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-multiple-text-decoration-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromspanwithstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-blockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1withdir2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1withdirexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1withstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintopreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphwithstylefromruleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-with-style-from-rule-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphswithtransparentbackgroundexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraphs-with-transparent-background-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergeunrenderedspaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-unrendered-space-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmergewhitespacepreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-whitespace-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingmovenodes001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/move-nodes-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingnonsmartdeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/non-smart-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingparagraphinpreserveNewlineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/paragraph-in-preserveNewline-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingpassworddeletecontentsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/password-delete-contents-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingpastewithtransparentbackgroundcolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/paste-with-transparent-background-color-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingpruningaftermerge1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingpruningaftermerge2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingregionalindicatorsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/regional-indicators-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingremoveNodeCommandassertexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/removeNodeCommand-assert-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingskipvirama001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/skip-virama-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdeleteacrosseditableboundaries2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdeleteacrosseditableboundariesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingsmarteditingdisabledmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-editing-disabled-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingtablecellsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/table-cells-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingtypedeleteafterquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/type-delete-after-quote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingdeletingwhitespacepre1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/deleting/whitespace-pre-1-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/editability/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingeditabilityignoredcontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/editability/ignored-content-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/execCommand/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand15381expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/15381-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand16049expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/16049-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand19087expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19087-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand19089expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19089-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand196531expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand196532expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand25256expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25256-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand25320expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25320-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand35791expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/35791-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand41280801expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4128080-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand45805831expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand45805832expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand46418801expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand46418802expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4747450expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4747450-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand47864041expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand47864042expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4916235expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916235-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4916402expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916402-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4916541expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916541-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4916583expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916583-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4920488expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920488-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand49207421expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920742-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4924441expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4924441-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand4928635expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4928635-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5049671expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5049671-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5062376expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5062376-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand50803331expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand50803332expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5136770expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5136770-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5138441expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5138441-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand51420121expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand51420122expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand51420123expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand51441391expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5144139-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5164796expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5164796-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5190926expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5190926-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5207369expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5207369-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand54322541expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5432254-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5481523expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5481523-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5482023expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5482023-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand55434721expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5543472-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5569741expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5569741-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5573879expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5573879-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand56856041expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5685604-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand57004141expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand57004142expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand5763082expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5763082-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommand57708341expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5770834-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandaligninspanexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/align-in-span-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandargumentscombinationsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/arguments-combinations-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandbackcolorcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/backcolor-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandboldSelectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/boldSelection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandbreaknoneditableblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-non-editable-blockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandbreakoutofemptylistitemexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-out-of-empty-list-item-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandbuttonexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandcontenteditablejustifynextparagraphexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/contenteditable-justify-next-paragraph-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandconvertstyleelementstospansexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/convert-style-elements-to-spans-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandcrashindentinglistitemexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/crash-indenting-list-item-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandcreatelistwithhrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/create-list-with-hr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandcreateLinkexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/createLink-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddefaultparagraphseparatorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/default-paragraph-separator-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddeleteimageinanchorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-image-in-anchor-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletelineandinserttextinfontinsideblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-line-and-insert-text-in-font-inside-blockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletenoscrollexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-no-scroll-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddeleteselectionhasstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-selection-has-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletetablewithemptycontentsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-table-with-empty-contents-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletingtextreststypingstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/deleting-text-rests-typing-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandemptyspanremovalexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/empty-span-removal-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandenablingandselection2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/enabling-and-selection-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandenablingandselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/enabling-and-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandfindafterreplaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/find-after-replace-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandfindString2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandfindStringexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockcontenteditablefalseexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-contenteditable-false-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockfromrangeselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-from-range-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockmultipleparagraphsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockmultipleparagraphsinpreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-in-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblocktableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblocktypingstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-typing-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockwithbracesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-braces-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockwithtrailingbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-trailing-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandforwarddeletenoscrollexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/forward-delete-no-scroll-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandhilitecolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/hilitecolor-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentblockinlistexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-block-in-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentdivinsidelistexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-div-inside-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentemptyrootexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-root-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentemptytablecellexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-table-cell-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentimages2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentimagesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentimgtwiceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-img-twice-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentlistitemexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-list-item-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedblockquotesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-blockquotes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedinlines1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-inlines-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedlists4expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedlists7expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-7-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentparagraphsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-paragraphs-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentpreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandindentselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertlinebreaknoscrollexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-line-break-no-scroll-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertlistandstitchexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-and-stitch-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertlistwithnoneditablecontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-with-noneditable-content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertHTMLexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHTML-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertHorizontalRuleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHorizontalRule-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertImageexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertImage-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandnsresponderindentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-indent-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandnsresponderoutdentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-outdent-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandoutdentnestedlists4expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/outdent-nested-lists-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandpaste1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/paste-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandprintexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/print-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandquerycommandstateexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/query-command-state-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformatmultipleelementsmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformatmultipleelementswinexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-win-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformatting2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformattingexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremovelist1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremovelistfromrangeselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-from-range-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandremovelistitem1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-item-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandselectAllexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/selectAll-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandtogglelinkmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-link-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandtoggleunlinkmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-unlink-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingexecCommandunlinkexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/execCommand/unlink-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/input/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputcaretattheedgeofcontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputcaretattheedgeofinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputdivfirstchildruleinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputdivfirstchildruletextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputeditablecontainerwithwordwrapnormalexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/editable-container-with-word-wrap-normal-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputemacsctrloexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/emacs-ctrl-o-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputimecompositionclearpreeditexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/ime-composition-clearpreedit-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputinsertwrappingspaceintextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/insert-wrapping-space-in-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputoptionpageupdownexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/option-page-up-down-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpageupdownscrollsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/page-up-down-scrolls-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpasswordechopassnodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpasswordechopassnode2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpasswordechopassnode3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpasswordechotextnodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-textnode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpastelinebreakintoinitiallyhiddentextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/paste-linebreak-into-initially-hidden-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputpastetextendingwithinterchangenewlineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/paste-text-ending-with-interchange-newline-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealcaretofmultilinecontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealcaretofmultilineinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealcaretoftransformedmultilineinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-transformed-multiline-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealcontenteditableoninputverticallyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-input-vertically-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealcontenteditableonpasteverticallyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-paste-vertically-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealeditoninputverticallyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-input-vertically-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputrevealeditonpasteverticallyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-paste-vertically-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputscrolltoedgeiflinebreakatendofdocumentcontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputscrolltoedgeifparagraphseparatoratendofdocumentcontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-paragraph-separator-at-end-of-document-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputscrollviewportpageupdownexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-viewport-page-up-down-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputselectallclearinputmethodexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/select-all-clear-input-method-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputsetvalueoninputanddeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputsetvalueoninputandtypeinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputsetvalueoninputandtypetextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputsettinginputvaluecancelimecompositionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/setting-input-value-cancel-ime-composition-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginputstylechangeduringinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/input/style-change-during-input-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/inserting/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting12882expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/12882-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting4278698expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4278698-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting4840662expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4840662-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting48751891expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting48751892expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting4959067expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4959067-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting49601201expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting49601202expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting5002441expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5002441-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting50581631expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting50581632expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting51564012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5156401-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting5378847expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5378847-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting5418891expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5418891-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting5510537expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5510537-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting55499292expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting55499293expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting56070693expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5607069-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting56856011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting56856012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting56856013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting58037061expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting58037062expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting59944802expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting5994480expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting61043692expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting6104369expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting66094791expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting6609479expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting67038732expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginserting6703873expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingbeforeafterinputelementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/before-after-input-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingbreakblockquoteafterdeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/break-blockquote-after-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingcaretpositionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/caret-position-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingeditablehtmlelementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-html-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingeditableinlineelementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-inline-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingeditedwhitespace1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/edited-whitespace-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingeditingemptydivsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/editing-empty-divs-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingfontsizeclearsfromtypingstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/font-size-clears-from-typing-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3654864fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3654864-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3659587fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3659587-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3775316fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3775316-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3778059fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3778059-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3786362fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3786362-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3800346fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3800346-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3851164fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3851164-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3907422fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3907422-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertafterdelete001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-after-delete-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertatend01expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-01-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertatend02expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-02-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbeforelink1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-before-link-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbgfontexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-bg-font-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrattabspan001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrattabspan002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrattabspan003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertcharacterinfirstlettercrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-character-in-first-letter-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertcompositionwhitespaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-composition-whitespace-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-012-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv014expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-014-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv015expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv016expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-016-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv017expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-017-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv018expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-018-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv019expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-019-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv020expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-020-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv021expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-021-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv022expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-022-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv023expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-023-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv024expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-024-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv025expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-025-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv026expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-026-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv027expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-027-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph01expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-01-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph02expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-02-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph03expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-03-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph04expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-04-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph05expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-05-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraphatendoflineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-at-end-of-line-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraphselectionoutsidecontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertpastebidicontrolexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paste-bidi-control-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertspaceinemptydocexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-space-in-empty-doc-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextattabspan001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextattabspan002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextattabspan003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextwithnewlinesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-with-newlines-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinginsertthaicharacters001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-thai-characters-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertinglinebreakexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/line-break-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingmultiplelinesselectedexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/multiple-lines-selected-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphoutsidenesteddivsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-outside-nested-divs-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparator01expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-01-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparator02expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-02-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparator03expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-03-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparatorintable1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparatorintable2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingredoexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/redo-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingreturnkeywithselection001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingreturnkeywithselection002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingreturnkeywithselection003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtyping001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtyping002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtyping003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtypingaroundbr001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-br-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtypingaroundimage001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-image-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtypingatendoflineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-at-end-of-line-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtypingspacetotriggersmartlinkexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-space-to-trigger-smart-link-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtypingtabdesignmodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditinginsertingtypingtabdesignmodeformsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-forms-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard196441expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard196442expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard3976872expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/3976872-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard40762672expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard40762673expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4076267expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard42422931expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4242293expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4631972expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4631972-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4641033expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4641033-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4744008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4744008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4806874expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4806874-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4922709expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4922709-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard49309861expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard49309862expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard49309863expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard49447701expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard49447702expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4947130expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4947130-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard4989774expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4989774-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5006779expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5006779-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5028447expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5028447-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5032095expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5032095-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5065605expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5065605-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard50710742expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5071074expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5075944expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5075944-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5134759expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5134759-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard51564011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5156401-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5245519expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5245519-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5387578expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5387578-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5478250expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5478250-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5480736expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5480736-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5521237expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5521237-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard56015831expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5601583-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard5665299expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5665299-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard57615301expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5761530-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard57806972expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5780697-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard7955expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/7955-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard81451expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard81452expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboard81453expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardavoidcopyingbodywithbackgroundexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/avoid-copying-body-with-background-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardbadplaceholderexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/bad-placeholder-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardblockwrappersnecessaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/block-wrappers-necessary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcanreadincopyandcuteventsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-copy-and-cut-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcanreadindragstarteventexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-dragstart-event-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcleanuponmoveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cleanup-on-move-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardclipboardcustomDataexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/clipboard-customData-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcontenteditablepre2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcontenteditablepreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopybackslashwitheucexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-backslash-with-euc-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyimagewithalttextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-image-with-alt-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyinpasswordfieldexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-in-password-field-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyinsideh1preservesh1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopynullcharactersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-null-characters-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastebidiexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-bidi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastecontentstartingandendingcanvasexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-content-starting-and-ending-canvas-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteconvertsfixedexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-fixed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteconvertsstickyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-sticky-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastedoesntconvertstickyandfixedduringpartialcopyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-doesnt-convert-sticky-and-fixed-during-partial-copy-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastefirstlineintextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-first-line-in-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastefloatexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-float-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteinsertsclearingdivexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-inserts-clearing-div-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteprelinecontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-pre-line-content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasterubytextwithblockexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-ruby-text-with-block-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastewithimportantrulesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-with-important-rules-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastewrapspositionabsoluteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-wraps-position-absolute-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyresolvesurlsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-resolves-urls-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopystandaloneimagecrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopystandaloneimageexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopytextwithbackgroundcolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-backgroundcolor-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopytextwithwrappedtagexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopytwopasteboardtypesbothworkexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-two-pasteboard-types-both-work-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcopywithoutselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-without-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardcuttext001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cut-text-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsdragdropentryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-entry-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsdragdropfileexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-file-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsdragdropstringexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddataTransfersetDatagetDataexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/dataTransfer-setData-getData-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddisplacedgenericplaceholderexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-generic-placeholder-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddisplacedplaceholderexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-placeholder-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddisplayblockonspansexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/display-block-on-spans-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddonotcopyunnecessarystyles2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddonotcopyunnecessarystylesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddraganddropimagecontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-image-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddraganddropinputimagecontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-inputimage-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddraganddropobjectimagecontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-objectimage-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropdeadframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-dead-frame-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropinputtextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-input-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdroplistexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropmodifiespageexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-modifies-page-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropparagraphcrasherexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-paragraph-crasher-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdroptodataurlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-to-data-url-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropurltextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropurlwithstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-with-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragfilestoeditableelementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-files-to-editable-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragimageinaboutblankframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-in-about-blank-frame-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragimagetocontenteditableiniframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddraglistitemexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-list-item-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddragselectedimagetocontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddropfilesvgexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-file-svg-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddropinputtextacquiresstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-inputtext-acquires-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddroplinkexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-link-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddroptexteventsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboarddroptextwithoutselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-without-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardemacscntly001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-cntl-y-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardemacsctrlakyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardemacsctrlkwithmoveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-with-move-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardemacsctrlky001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardfiledragtoeditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-drag-to-editable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardfileinputfilesaccessexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-input-files-access-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardfilesduringpagedragsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/files-during-page-drags-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardgetdatatextplaindropexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/get-data-text-plain-drop-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardheadingcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/heading-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardinnerTextinlinetableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/innerText-inline-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardinputfield1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-field-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardinputwithdisplaynonedivexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-display-none-div-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardinputwithvisibilityhiddenexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-visibility-hidden-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardinsertdivtextintotextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/insert-div-text-into-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardlinefeedbetweenbrandbshouldnotreorderpastedcontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/line-feed-between-br-and-b-should-not-reorder-pasted-content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeafterdelete1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeafterdelete2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeafterdeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeend2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeend3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeend5expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-5-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-blockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendbordersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-borders-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendlist2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendlistexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendtable2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-table-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergestartblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-blockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardmergestartlistexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardnestedblockswithtextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-area-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardnestedblockswithtextfieldexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-field-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardonpastetexthtmlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardonpastetexthtmltypesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-types-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpagezoomexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/page-zoom-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpaste2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpaste4038267fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4038267-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpaste4039777fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4039777-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteRTFDexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-RTFD-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteTIFFexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-TIFF-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteandsanitizeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-and-sanitize-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastebeforetabspanexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-before-tab-span-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquote3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquoteafterblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquoteandparagraphbreakexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-and-paragraph-break-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquoteintoblockquote4expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastecodeinpreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-code-in-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteglobalselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-global-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteintoanchortextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-anchor-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteintotablecellexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-table-cell-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastematchstyle001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastematchstyle002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenopluginexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noplugin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenoscriptexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenoscriptsvgexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-svg-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenoscriptxhtmlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-xhtml-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteplaceholderinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-placeholder-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteplaintextuserselectnoneexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-plaintext-user-select-none-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastepre001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastepre002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastesanitizecrash1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastesanitizecrash2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetable001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetable002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetable003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetablecellsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-cells-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-012-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext014expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-014-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext015expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext016expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-016-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext017expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-017-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext018expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-018-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext019expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-019-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextattabspan001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextattabspan002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextattabspan003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetexteventsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle4expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle5expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-5-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteunrenderedselectexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-unrendered-select-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastevisiblescriptexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-visible-script-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastewithoutnestingexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-without-nesting-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastewrappedblockquoteintononblockquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-wrapped-blockquote-into-nonblockquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastexmlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-xml-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingemptyhtmlfallsbacktotextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-empty-html-falls-back-to-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingintopshouldnotnestpexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-into-p-should-not-nest-p-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingobjectexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-object-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingtabsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-tabs-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpreservelinebreakatendofpastedcontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-line-break-at-end-of-pasted-content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardpreserveunderlinecolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-underline-color-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardquirksmodebr1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/quirks-mode-br-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardselectelement1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/select-element-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsimplfiyingmarkupshouldnotstripcontentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartdragdropexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-drag-drop-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste003trailingwhitespaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpasteintextcontrolexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-in-text-control-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardstylefromrulesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/style-from-rules-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardstyledelementmarkupexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/styled-element-markup-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardsubframedragndrop1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/subframe-dragndrop-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardtestcase9507expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/testcase-9507-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardundoablefragmentremovesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/undoable-fragment-removes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingpasteboardunrenderedbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/unrendered-br-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/secure-input/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingsecureinputpasswordinputchangedtypeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-changed-type-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingsecureinputpasswordinputfocusingexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingsecureinputpasswordinputfocusingtodifferentframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-to-different-frame-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingsecureinputremovedpasswordinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/secure-input/removed-password-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingsecureinputresetstateonnavigationexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/secure-input/reset-state-on-navigation-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/selection/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection14971expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/14971-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection36907032expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection3690703expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection3690719expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/3690719-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4397952expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4397952-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4402375expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4402375-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4776665expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4776665-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4818145expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4818145-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4866671expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4866671-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4889598expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4889598-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection48954281expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection48954282expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection48954283expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection48954284expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection49322601expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection49322602expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection49322603expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4947387expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4947387-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4960116expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4960116-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4960137expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4960137-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4975120expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4975120-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection4983858expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/4983858-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50071432expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5007143expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50575062expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5057506expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50763231expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50763232expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50763233expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50812571expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection50812572expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5099303expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5099303-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51317161expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51317162expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51317163expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51317164expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51344expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/51344-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5136696expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5136696-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51951661expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection51951662expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5232159expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5232159-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection52343831expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection52343832expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5240265expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5240265-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection5333725expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5333725-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection53544551expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection53544552expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection58253501expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection58253502expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection6476expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/6476-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection71521expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselection71522expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionaddRangeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/addRange-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionafterlinebreakexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-break-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionafterlinewrapexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-wrap-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionanchorfocus1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionanchorfocus2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionanchorfocus3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionblockcursorovertypemodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/block-cursor-overtype-mode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionblockwithpositionedlastchildexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/block-with-positioned-lastchild-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionblockquotecrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/blockquote-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretafterkeypressexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-after-keypress-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretandfocusringexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-and-focus-ring-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretatbidiboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-at-bidi-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretbeforeselectexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-before-select-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretbidifirstandlastlettersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-bidi-first-and-last-letters-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretinemptyinline1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretinemptyinline2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretltr2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretltr2leftexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-left-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretltrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretltrrightexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-right-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretmodeparagraphkeysnavigationexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-mode-paragraph-keys-navigation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtl2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtl2leftexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-left-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtlrightexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-right-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionclearselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/clear-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionclickinfocusablelinkshouldnotclearselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/click-in-focusable-link-should-not-clear-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionclickoutsideeditabledivexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/click-outside-editable-div-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionclickstartoflineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/click-start-of-line-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncollapseselectioninbidiexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/collapse-selection-in-bidi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncontainsboundariesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/contains-boundaries-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncontenteditableclickinsideexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/contenteditable-click-inside-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncontextmenuontextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-on-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioncontextmenutextselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-text-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondesignmodenocaretexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/designmode-no-caret-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondirectionalityafterundoreplaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/directionality-after-undo-replace-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondisplaytabletextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/display-table-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickselectionwithdommutationexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/double-click-selection-with-dom-mutation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickbesidecrspanexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-beside-cr-span-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickinlinefirstlastcontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-inline-first-last-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickjapanesetextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-japanese-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickwhitespaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-whitespace-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondraginiframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-in-iframe-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondragselect1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondragselectrapidlyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-rapidly-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondragstarteventclientxyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-start-event-client-x-y-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondragtextdelayexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-text-delay-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiondragtocontenteditableiframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-to-contenteditable-iframe-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioneditabledivclearonkeydownexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-div-clear-on-keydown-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioneditablehtmlelementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-html-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioneditablelinksexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-links-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioneditablenoneditablecrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-non-editable-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionendofdocumentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/end-of-document-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionexpandingselectionsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionexpandingselections2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendaftermouseselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-after-mouse-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbysentence001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-sentence-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbyword001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendbyword002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendforwardbywordovernoneditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-forward-by-word-over-non-editable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendinsidetransformsbackwardexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-backward-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendinsidetransformsforwardexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-forward-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionafterdoubleclickexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-after-double-click-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionbidiexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-bidi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionenclosingblockmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionenclosingblockwinexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-win-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionhomeendexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-home-end-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionwordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionextendtolineboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-to-line-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionfakedoubleclickexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-doubleclick-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionfakedragexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-drag-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionfindyensignandbackslashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/find-yensign-and-backslash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionfocusbodyexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/focus-body-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionfocus_editable_htmlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/focus_editable_html-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionhomeendexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/home-end-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioniframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/iframe-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionimagebeforelinebreakexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/image-before-linebreak-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioninlineclosestleafchildexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-closest-leaf-child-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioninlinetableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectioninternalcaretrectexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/internal-caret-rect-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionlastemptyinlineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/last-empty-inline-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionleaverequestedblockexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/leave-requested-block-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionlinewrap1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionlinewrap2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability10expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-10-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability4expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability5expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-5-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability6expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-6-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability7expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-7-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability8expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-8-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability9expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-9-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmodifybylineboundaryininlineeditablecontextsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-by-lineboundary-in-inline-editable-contexts-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmodifyuponrtlwrappingtextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-up-on-rtl-wrapping-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmove3875618fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875618-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmove3875641fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875641-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebackwordsbyword001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-backwords-by-word-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebeginendexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-begin-end-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebetweenblocksno001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-no-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebetweenblocksyes001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-yes-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebetweenlinesofdifferenteditabilitiesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-lines-of-different-editabilities-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter6expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-6-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebysentence001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebysentencelinebreakexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-linebreak-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebyword001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallymacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallymultilineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-line-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallymultispaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-space-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallysinglespaceoneelementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-single-space-one-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmoveleftrightexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-left-right-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmovepasttrailingspaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-past-trailing-space-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionmoveverticallywithpaddingsbordersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/move-vertically-with-paddings-borders-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionnoderemoval1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionnoderemoval2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionparagraphgranularityexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/paragraph-granularity-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionpreviouslinepositionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-line-position-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionpreviouswordboundaryacrosstextnodesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-word-boundary-across-text-nodes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionprogrammaticselectiononmacisdirectionlessexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/programmatic-selection-on-mac-is-directionless-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionrangebetweenblockandinlineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/range-between-block-and-inline-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionreplaceselection1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/replace-selection-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionreplacedboundaries1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionreplacedboundaries2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionreplacedboundaries3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionrtlmoveselectionrightleftexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/rtl-move-selection-right-left-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput4expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput5expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-5-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectall001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectall002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectall003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectall004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectall005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectall006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectalliframeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-iframe-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectbidirunexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-bidi-run-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectboxexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-box-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectelementparagraphboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-element-paragraph-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectfromtextfieldoutwardsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-from-textfield-outwards-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectlinebreakwithoppositedirectionalityexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-line-break-with-opposite-directionality-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectmissingimageexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-missing-image-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectoutofeditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-editable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectoutoffloatedcontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectoutoffloatedinputexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-input-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectoutoffloatedtextareaexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-textarea-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselecttextoverflowellipsisexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/select-text-overflow-ellipsis-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectNodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectNodeContentsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNodeContents-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselection3748164fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-3748164-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectionactionsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-actions-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectionbackgroundexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-background-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectionbuttontextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-button-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionselectionextendshouldnotmoveacrosscaretonmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-extend-should-not-move-across-caret-on-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionshiftclickexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/shift-click-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionshrinkselectionaftershiftpagedownexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/shrink-selection-after-shift-pagedown-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionskipnoneditable1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/skip-non-editable-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiontablecaret1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiontablecaret2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiontablecaret3expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiontransformedselectionrectsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/transformed-selection-rects-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectiontripleclickinpreexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/triple-click-in-pre-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionunrendered001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionunrendered002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionunrendered003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionunrendered004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionunrendered005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionunrenderedspaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-space-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionuserdragelementanduserselectnoneexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/user-drag-element-and-user-select-none-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionuserselectallselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionuserselectallwithshiftexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-with-shift-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticallrltrextendlinebackwardbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticallrltrextendlineforwardbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlinebackwardbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlinebackwardpexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlinebackwardwrapexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlineforwardbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlineforwardpexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlineforwardwrapexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlinebackwardbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlinebackwardpexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlineforwardbrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-br-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlineforwardpexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-p-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionwordgranularityexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/word-granularity-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionwrappedlinecaret1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingselectionwrappedlinecaret2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-2-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/shadow/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowadjustingeditingboundarywithtableinshadowexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowboldtwiceinshadowexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/bold-twice-in-shadow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowbreakingeditingboundaries2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowbreakingeditingboundariesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowbreakingeditingboundarywithtableexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundary-with-table-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowcomparepositionsinnestedshadowexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/compare-positions-in-nested-shadow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowcontenteditablepropagationatshadowboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowdeletecharactersindistributednodecrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowdeletelistinshadowexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-list-in-shadow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowdoubleclickonmeterinshadowcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowexeccommandindentinshadowexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/execcommand-indent-in-shadow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowinsertorderedlistcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/insertorderedlist-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowpressingenteronlistexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/pressing-enter-on-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowrightclickonmeterinshadowcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowselectcontenteditableshadowhostexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/select-contenteditable-shadowhost-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowselectionoforphanshadowrootexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-orphan-shadowroot-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowselectionofshadowrootexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-shadowroot-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingshadowshadowselectionnotexportedexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/shadow/shadow-selection-not-exported-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/spelling/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingcenteringmisspellingdotsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/centering-misspelling-dots-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingcontextmenusuggestionsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingcontextmenusuggestionsmultiwordselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-multiword-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingcontextmenusuggestionssubwordselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-subword-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingdeleteintomisspelledwordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/delete-into-misspelled-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingdesignmodespellcheckoffexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/design-mode-spellcheck-off-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingeditingmultiplewordswithmarkersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-multiple-words-with-markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingeditingwordwithmarker2expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-word-with-marker-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinggrammareditwordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-edit-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinggrammarexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinggrammarmarkersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinggrammarmarkershidpiexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-hidpi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinggrammarpasteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-paste-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinginlinespellingmarkersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellinginlinespellingmarkershidpiexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-hidpi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingmarkersexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingmisspellingdotsdontextendbeyondwordsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/misspelling-dots-dont-extend-beyond-words-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingmovecursoraroundmisspelledwordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/move-cursor-around-misspelled-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckasyncexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckasyncmutationexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-mutation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckattributeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-attribute-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckinputsearchcrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-input-search-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckpastecontinuousdisabledexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckpastedisabledexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-disabled-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckpasteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckqueueexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-queue-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingattributeatchildexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-at-child-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingattributechangeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-change-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingbackspacebetweenlinesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backspace-between-lines-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingbackwardexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backward-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingchangedtextexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-changed-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingdoubleclickedwordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-double-clicked-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingexactlyselectedwordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-exactly-selected-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellinghasspellingmarkerexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-hasspellingmarker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellinginserthtmlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-insert-html-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellinglinebreakexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-linebreak-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingmarkerdescriptionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-marker-description-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingunifiedemulationexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-unified-emulation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingwithpunctuationselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-punctuation-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingspellingspellingwithwhitespaceselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-whitespace-selection-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/style/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle4230923expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/4230923-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle4916887expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/4916887-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle50176131expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle50176132expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle50468751expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle50468752expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle5065910expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5065910-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle5084241expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5084241-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle5228141expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5228141-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyle5279521expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/5279521-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleapplestyleeditablemixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/apple-style-editable-mix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleapplyfontsizetomultiplenodesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/apply-font-size-to-multiple-nodes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleapplystyleatomicexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/apply-style-atomic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleapplythroughendofdocumentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/apply-through-end-of-document-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylebackgroundcolorretainedexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/background-color-retained-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleblockstyles007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/block-styles-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleboldwithdomchangesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/bold-with-dom-changes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle006expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle007expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-007-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle008expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-008-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle009expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-009-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle010expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-010-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle011expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-011-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle012expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-012-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle013expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-013-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyledesignmodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/designmode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylefontfaceunquoteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/font-face-unquote-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylefontfamilywithspaceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/font-family-with-space-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylefontsize1expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/fontsize-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleforecolorbynameexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/fore-color-by-name-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleheadingtextafterhrexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/heading-text-after-hr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylehighlightexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylehighlightinsertparagraphexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-insert-paragraph-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleinlinestylecontainerexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-container-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleinlinestyleextendrunexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-extend-run-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleinvalidfontsizeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/invalid-font-size-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylemaketextwritingdirectioninlinemacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylemaketextwritingdirectioninlinewinexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-win-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylenoninheritablestylesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/non-inheritable-styles-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepreserveselectiondirectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/preserve-selection-direction-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepushdownfontstylesmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepushdownfontstyleswinexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-win-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepushdownimplicitstylesaroundlistmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepushdownimplicitstylesaroundlistwinexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-win-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepushdownimplicitstylesmacexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-mac-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylepushdowninlinestylesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-inline-styles-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylequerytypingstyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/query-typing-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleredundantbackgroundcolorexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/redundant-background-color-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremovestyledelementwithstylespanexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-styled-element-with-style-span-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineacrossparagraphexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineacrossparagraphinboldexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-in-bold-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineafterparagraphinboldexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-after-paragraph-in-bold-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlinefromstylesheetexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-from-stylesheet-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineinboldexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-in-bold-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylesmooshstyles001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylesmooshstyles003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyle3681552fix001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyle3681552fix002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyle3998892fixexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-3998892-fix-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary004expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary005expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstylestyletextnodewithouteditableparentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/style-text-node-without-editable-parent-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletableselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/table-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletextdecorationstatechangeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-change-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletextdecorationstateexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletextindentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/text-indent-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletogglestylebolditalicexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletogglestylebolditalicmixededitabilityexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-mixed-editability-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletypingstyle001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletypingstyle002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyletypingstyle003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleunboldinboldexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/unbold-in-bold-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingstyleunderlineexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/style/underline-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingtextiteratorbasiciterationshadowdomexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/basic-iteration-shadowdom-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingtextiteratorfirstletterwordboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/first-letter-word-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingtextiteratorthaicursormovementexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/thai-cursor-movement-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/undo/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundo4063751expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/4063751-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundo5378473expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/5378473-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundo5658727expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/5658727-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoredosplittextnodeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-node-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoredosplittextwithremovalexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-with-removal-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoredostyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoredotyping001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-typing-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoremovecsspropertyandremovestyleexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/remove-css-property-and-remove-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoreplacebyspanthenremoveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-by-span-then-remove-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoreplacetextinnodepreservingmarkerscrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-text-in-node-preserving-markers-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundocombineddeleteboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundocombineddeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundodeleteboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundodeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundodeleteWordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-deleteWord-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundoforwarddeleteboundaryexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-boundary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundoforwarddeleteexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundoiframelocationchangeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-iframe-location-change-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundoindentexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-indent-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundomisspellingsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-misspellings-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundosmartdeletereversedselectionexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-reversed-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundosmartdeletewordexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-word-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingundoundotyping001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-typing-001-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlistdelete001expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlistdelete003expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlisttypeafterexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-after-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlisttypebeforeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-before-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontenttabledelete002expectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-delete-002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontenttabletypeafterexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-after-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatoreditingunsupportedcontenttabletypebeforeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-before-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (174513 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-10-09 18:38:50 UTC (rev 174513)
+++ trunk/LayoutTests/ChangeLog        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -1,3 +1,9 @@
</span><ins>+2014-10-09  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        iOS Simulator results for editing tests.
+
+        * platform/ios-simulator/editing/*: Added
+
</ins><span class="cx"> 2014-10-09  Bruno de Oliveira Abinader  &lt;bruno.d@partner.samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Re-add tests for :enabled with Anchor, Area &amp; Link elements
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingcaretcaretcolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/caret/caret-color-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/caret/caret-color-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/caret/caret-color-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x100
+  RenderBlock {HTML} at (0,0) size 800x100
+    RenderBody {BODY} at (8,16) size 784x76
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 754x39
+          text run at (0,0) width 754: &quot;This tests to make sure that the caret is visible in the black background by getting the caret color from the color of the&quot;
+          text run at (0,20) width 638: &quot;element(span) containing the text, not the parent element(div) that has the contentEditable attribute.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderInline {SPAN} at (0,0) size 124x19 [color=#FFFFFF] [bgcolor=#000000]
+          RenderText {#text} at (0,0) size 124x19
+            text run at (0,0) width 124: &quot;Where is my caret?&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 17 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting26106753expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/2610675-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/2610675-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/2610675-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to see that if the caret is in an empty quoted paragraph, and there's no quoted content before that paragraph, then pressing delete removes that paragraph's quoting. Below you should see just an unquoted paragraph.
+&lt;blockquote type=&quot;cite&quot; id=&quot;blockquote&quot;&gt;&lt;br&gt;&lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting4875189expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/4875189-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/4875189-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/4875189-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This test deletes the contents of a list, then it performs another delete, which should remove the empty list item. There should be two paragraphs below.
+
+Paragraph One.
+
+Paragraph Two.
+Paragraph One.&lt;ul&gt;&lt;li id=&quot;li&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;Paragraph Two.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting49162351expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/4916235-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/4916235-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/4916235-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This tests for a bug in moveParagraphs that would cause an empty paragraph to collapse.
+
+There should be an empty paragraph below this one.
+There should be an empty paragraph below this one.
+
+There should be an empty paragraph above this one.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting4922367expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/4922367-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/4922367-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/4922367-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 757x39
+          text run at (0,0) width 395: &quot;This tests selecting and deleting the paragraph before a table. &quot;
+          text run at (394,0) width 363: &quot;You should see only a table in the editable region below,&quot;
+          text run at (0,20) width 176: &quot;with the caret just before it.&quot;
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderTable {TABLE} at (0,0) size 32x30 [border: (1px solid #BBBBBB)]
+            RenderTableSection {TBODY} at (1,1) size 30x28
+              RenderTableRow {TR} at (0,2) size 30x24
+                RenderTableCell {TD} at (2,2) size 12x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;1&quot;
+                RenderTableCell {TD} at (16,2) size 12x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;2&quot;
+          RenderBlock (anonymous) at (0,30) size 784x0
+        RenderBlock (anonymous) at (0,30) size 784x0
+      RenderBlock {UL} at (0,102) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5032066expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5032066-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5032066-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5032066-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This tests deleting when the caret is at the start of a paragraph just after a table.  The content in that paragraph should be moved into the last table cell unless that content is another table.
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;All the content in this editable region &quot;
+| &lt;div&gt;
+|   id=&quot;div&quot;
+|   &quot;should be in one table cell.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5099303expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5099303-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5099303-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5099303-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 773x19
+          text run at (0,0) width 773: &quot;This tests for a bug where deleting from the start of a paragraph after a table would leave the caret in the wrong position.&quot;
+      RenderBlock {DIV} at (0,36) size 784x50
+        RenderTable {TABLE} at (0,0) size 354x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 352x28
+            RenderTableRow {TR} at (0,2) size 352x24
+              RenderTableCell {TD} at (2,2) size 342x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 338x19
+                  text run at (2,2) width 338: &quot;The caret should be between these two parenthesis: (&quot;
+              RenderTableCell {TD} at (346,12) size 4x4 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+        RenderBlock {DIV} at (0,30) size 784x20
+          RenderText {#text} at (0,0) size 10x19
+            text run at (0,0) width 10: &quot;).&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5115601expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5115601-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5115601-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5115601-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+This tests to make sure that after a deletion, merging can merge into an editable region that's embedded in non-editable content that is collapsed by the deletion.
+| &quot;
+&quot;
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   contenteditable=&quot;false&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;span&gt;
+|           contenteditable=&quot;true&quot;
+|           id=&quot;start&quot;
+|           &quot;foo&quot;
+| &lt;span&gt;
+|   id=&quot;end&quot;
+|   &quot;x&quot;
+| &quot;This sentence should be inside the editable cell.
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5126166expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5126166-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5126166-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5126166-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 746x39
+          text run at (0,0) width 426: &quot;This tests deleting a selection that ends inside an empty table cell. &quot;
+          text run at (425,0) width 321: &quot;No merging should happen, only editable selected&quot;
+          text run at (0,20) width 177: &quot;content should be removed.&quot;
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderTable {TABLE} at (0,0) size 70x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 68x28
+            RenderTableRow {TR} at (0,2) size 68x24
+              RenderTableCell {TD} at (2,12) size 4x4 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+              RenderTableCell {TD} at (8,2) size 58x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 54x19
+                  text run at (2,2) width 54: &quot;Editable&quot;
+        RenderTable {TABLE} at (0,30) size 359x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 357x28
+            RenderTableRow {TR} at (0,2) size 357x24
+              RenderTableCell {TD} at (2,12) size 4x4 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+              RenderTableCell {TD} at (8,2) size 347x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 343x19
+                  text run at (2,2) width 343: &quot;There should be one empty cell to the left of this one.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting51441392expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5144139-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5144139-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5144139-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 718x39
+          text run at (0,0) width 711: &quot;This tests to see that deleting a selection that starts just before a table and ends inside the table does not insert a&quot;
+          text run at (0,20) width 190: &quot;placeholder br unnecessarily. &quot;
+          text run at (189,20) width 255: &quot;You should see two ToDos, one empty. &quot;
+          text run at (443,20) width 275: &quot;The caret should be just before the second.&quot;
+      RenderBlock {DIV} at (0,56) size 784x58
+        RenderTable {TABLE} at (0,0) size 135x29
+          RenderTableSection {TBODY} at (0,0) size 135x29
+            RenderTableRow {TR} at (0,2) size 135x25
+              RenderTableCell {TD} at (2,3) size 18x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 16x19
+                  text run at (1,1) width 16: &quot;\x{21D2}&quot;
+              RenderTableCell {TD} at (22,3) size 93x22 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 91x19
+                  text run at (1,1) width 91: &quot;ToDo Content&quot;
+              RenderTableCell {TD} at (117,2) size 16x25 [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (1,4) size 14x19
+                  text run at (1,4) width 14: &quot;\x{21E3}&quot;
+        RenderTable {TABLE} at (0,29) size 135x29
+          RenderTableSection {TBODY} at (0,0) size 135x29
+            RenderTableRow {TR} at (0,2) size 135x25
+              RenderTableCell {TD} at (2,3) size 18x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 16x19
+                  text run at (1,1) width 16: &quot;\x{21D2}&quot;
+              RenderTableCell {TD} at (22,3) size 93x22 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 91x19
+                  text run at (1,1) width 91: &quot;ToDo Content&quot;
+              RenderTableCell {TD} at (117,2) size 16x25 [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (1,4) size 14x19
+                  text run at (1,4) width 14: &quot;\x{21E3}&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting52063111expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,110 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 357x19
+          text run at (0,0) width 213: &quot;This empties a row (the second). &quot;
+          text run at (212,0) width 145: &quot;It should be removed. &quot;
+        RenderInline {B} at (0,0) size 780x39
+          RenderText {#text} at (356,0) size 780x39
+            text run at (356,0) width 424: &quot;This demonstrates a bug: the two cells that contained the ends&quot;
+            text run at (0,20) width 655: &quot;of the selection aren't given a placeholder and so appear differently than the other emptied cells.&quot;
+      RenderBlock {DIV} at (0,56) size 784x82
+        RenderTable {TABLE} at (0,0) size 46x82 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x80
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;1&quot;
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;2&quot;
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;3&quot;
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;4&quot;
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;5&quot;
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;6&quot;
+            RenderTableRow {TR} at (0,54) size 44x24
+              RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;7&quot;
+              RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;8&quot;
+              RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;9&quot;
+      RenderBlock {P} at (0,154) size 784x20
+        RenderText {#text} at (0,0) size 607x19
+          text run at (0,0) width 607: &quot;This empties a row (the second), but it still contains the selection and so shouldn't be removed.&quot;
+      RenderBlock {DIV} at (0,190) size 784x82
+        RenderTable {TABLE} at (0,0) size 46x82 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x80
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;1&quot;
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;2&quot;
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;3&quot;
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;4&quot;
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;5&quot;
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;6&quot;
+            RenderTableRow {TR} at (0,54) size 44x24
+              RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;7&quot;
+              RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;8&quot;
+              RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;9&quot;
+      RenderBlock {P} at (0,288) size 784x20
+        RenderText {#text} at (0,0) size 311x19
+          text run at (0,0) width 311: &quot;This empties the first row, it should be removed.&quot;
+      RenderBlock {DIV} at (0,324) size 784x76
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 40x19
+            text run at (0,0) width 36: &quot;Hello&quot;
+            text run at (35,0) width 5: &quot; &quot;
+        RenderTable {TABLE} at (0,20) size 46x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x54
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x19
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (2,2) size 0x19
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;6&quot;
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;7&quot;
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;8&quot;
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;9&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting52063112expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5206311-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+
+The test deletes cells 5 through 9.
+Since all the cells in the third row were deleted, the third row is removed.
+The cells in the second row are not removed because not all of them are deleted.
+The second cell, which used to contain '5', is replaced with the 'world!' text, and the third cell is cleared:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   &quot;
+&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;1&quot;
+|       &lt;td&gt;
+|         &quot;2&quot;
+|       &lt;td&gt;
+|         &quot;3&quot;
+|     &quot;
+&quot;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;4&quot;
+|       &lt;td&gt;
+|         class=&quot;start&quot;
+|         &quot;world!&quot;
+|         &lt;br&gt;
+|       &lt;td&gt;
+|         &lt;br&gt;
+| &quot;
+&quot;
+
+
+This test deletes cells 5 through 9 of the first table and 1 through 5 of the second.
+In the first table, cells 5-6 in the second row are cleared and the last row (cells 7-9) is removed.
+In the second table, the first row (cells 1-3) is removed and cells 4-5 in the second row are cleared:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   &quot;
+&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;1&quot;
+|       &lt;td&gt;
+|         &quot;2&quot;
+|       &lt;td&gt;
+|         &quot;3&quot;
+|     &quot;
+&quot;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;4&quot;
+|       &lt;td&gt;
+|         class=&quot;start&quot;
+|         &lt;br&gt;
+|       &lt;td&gt;
+|         &lt;br&gt;
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;br&gt;
+|       &lt;td&gt;
+|         class=&quot;end&quot;
+|         &lt;br&gt;
+|       &lt;td&gt;
+|         &quot;6&quot;
+|     &quot;
+&quot;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;7&quot;
+|       &lt;td&gt;
+|         &quot;8&quot;
+|       &lt;td&gt;
+|         &quot;9&quot;
+|     &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5272440expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5272440-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5272440-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5272440-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 683x19
+          text run at (0,0) width 683: &quot;This tests for a bug where deleting the contents of an editable root that's inline would introduce a new line.&quot;
+      RenderBlock {DIV} at (0,36) size 784x22 [border: (1px solid #000000)]
+        RenderInline {SPAN} at (0,0) size 22x19
+          RenderText {#text} at (1,1) size 22x19
+            text run at (1,1) width 22: &quot;foo&quot;
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5290534expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5290534-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5290534-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5290534-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a crash when adding/removing content from a search field that is inside an editable region.
+
+
+Failure: text wasn't added to the search field.
+Success! Test successfully removed text from the search field.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5300379expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5300379-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5300379-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5300379-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5369009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5369009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5369009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5369009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 782x39
+          text run at (0,0) width 782: &quot;This tests for a hang on delete where a style rule would cause style spans in content moved after the delete to be displayed&quot;
+          text run at (0,20) width 204: &quot;as blocks. You should see Hello&quot;
+        RenderInline {B} at (0,0) size 45x19
+          RenderText {#text} at (203,20) size 45x19
+            text run at (203,20) width 45: &quot;World&quot;
+        RenderText {#text} at (247,20) size 47x19
+          text run at (247,20) width 47: &quot; below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 36x19
+            text run at (0,0) width 36: &quot;Hello&quot;
+          RenderInline {SPAN} at (0,0) size 45x19
+            RenderText {#text} at (35,0) size 45x19
+              text run at (35,0) width 45: &quot;World&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting54338622expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5433862-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5433862-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5433862-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 591: &quot;This tests for a bug where empty table rows well after the selection to delete were removed. &quot;
+          text run at (590,0) width 185: &quot;There should be five rows in&quot;
+          text run at (0,20) width 290: &quot;the table below, before and after the deletion.&quot;
+      RenderBlock {DIV} at (0,56) size 784x140
+        RenderTable {TABLE} at (0,0) size 112x140 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 110x138
+            RenderTableRow {TR} at (0,2) size 110x32
+              RenderTableCell {TD} at (2,2) size 34x32 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+              RenderTableCell {TD} at (38,2) size 33x32 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+              RenderTableCell {TD} at (73,2) size 35x32 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+            RenderTableRow {TR} at (0,36) size 110x32
+              RenderTableCell {TD} at (2,36) size 34x32 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (6,6) size 22x19
+                  text run at (6,6) width 22: &quot;foo&quot;
+              RenderTableCell {TD} at (38,36) size 33x32 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (6,6) size 21x19
+                  text run at (6,6) width 21: &quot;bar&quot;
+              RenderTableCell {TD} at (73,36) size 35x32 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (6,6) size 23x19
+                  text run at (6,6) width 23: &quot;baz&quot;
+            RenderTableRow {TR} at (0,70) size 110x32
+              RenderTableCell {TD} at (2,70) size 34x32 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+              RenderTableCell {TD} at (38,70) size 33x32 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+              RenderTableCell {TD} at (73,70) size 35x32 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+            RenderTableRow {TR} at (0,104) size 110x32
+              RenderTableCell {TD} at (2,104) size 34x32 [border: (1px inset #808080)] [r=3 c=0 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+              RenderTableCell {TD} at (38,104) size 33x32 [border: (1px inset #808080)] [r=3 c=1 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
+              RenderTableCell {TD} at (73,104) size 35x32 [border: (1px inset #808080)] [r=3 c=2 rs=1 cs=1]
+                RenderBR {BR} at (6,6) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5483370expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5483370-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5483370-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5483370-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 721: &quot;This tests for a problem where empty table rows after the selection being deleted would be removed incorrectly. &quot;
+          text run at (720,0) width 56: &quot;Only the&quot;
+          text run at (0,20) width 352: &quot;last letter in 'foo' should be removed during this delete.&quot;
+      RenderBlock {DIV} at (0,56) size 784x36
+        RenderTable {TABLE} at (0,0) size 30x36 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 28x34
+            RenderTableRow {TR} at (0,2) size 28x24
+              RenderTableCell {TD} at (2,2) size 18x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 14x19
+                  text run at (2,2) width 14: &quot;fo&quot;
+              RenderTableCell {TD} at (22,12) size 4x4 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+            RenderTableRow {TR} at (0,28) size 28x4
+              RenderTableCell {TD} at (2,28) size 18x4 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              RenderTableCell {TD} at (22,28) size 4x4 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5546763expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5546763-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5546763-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5546763-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests for a crash when deleting a selection that starts before the first child of a block and ends after the last child (which must be a link) of another block. There shouldn't be any content in the editable region below.
+
+foo
+bar baz
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5729680expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5729680-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5729680-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5729680-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests deleting a selection that ends just before a space. There was a bug where it would be treated like a smart delete (the space would be incorrectly removed). To run it outside of DRT, you must delete manually. Press delete and you should see &quot;Th is a test&quot;.
+
+This is a test.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting58473302expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5847330-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5847330-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5847330-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a crash when deleting inside an empty list item that is an editable root.
+Hello
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting5890684expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/5890684-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/5890684-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/5890684-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a bug where deleting a line break would change the size of monospace text. Below you should see &quot;helloworld&quot; all in the same font.
+hello&lt;div id=&quot;world&quot;&gt;world&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeleting6026335expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/6026335-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/6026335-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/6026335-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests deleting a selection that starts at the beginning of an editable pocket inside a non-editable table. The caret should not disappear during the delete and should be placed inside the editable span. When text is then inserted, it should be placed inside that span.
+
+&lt;div contenteditable=&quot;false&quot;&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span contenteditable=&quot;true&quot; id=&quot;start&quot;&gt;Hello&lt;/span&gt;&lt;/div&gt;
+&lt;div id=&quot;end&quot;&gt;&lt;br&gt;&lt;/div&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingbackspaceattablecellbeginningexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-at-table-cell-beginning-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-at-table-cell-beginning-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-at-table-cell-beginning-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+This test verifies that backspace at the beginning of a table-cell is a no-op. The first dump verifies that the caret stays before 'abc', and doesn't select the nested table. The second dump verifies that the caret stays before 'def'.
+
+Dump of markup 1:
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;table&gt;
+|           &lt;tbody&gt;
+|             &lt;tr&gt;
+|               &lt;td&gt;
+|                 &quot;ghi&quot;
+|               &lt;td&gt;
+|                 &quot;jkl&quot;
+|       &lt;td&gt;
+|         id=&quot;first&quot;
+|         &quot;abc&quot;
+|       &lt;td&gt;
+|         id=&quot;second&quot;
+|         &quot;def&quot;
+
+Dump of markup 2:
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;table&gt;
+|           &lt;tbody&gt;
+|             &lt;tr&gt;
+|               &lt;td&gt;
+|                 &quot;ghi&quot;
+|               &lt;td&gt;
+|                 &quot;jkl&quot;
+|       &lt;td&gt;
+|         id=&quot;first&quot;
+|         &quot;abc&quot;
+|       &lt;td&gt;
+|         id=&quot;second&quot;
+|         &quot;&lt;#selection-caret&gt;def&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingbackspaceavoidprecedingstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-avoid-preceding-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-avoid-preceding-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/backspace-avoid-preceding-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This should be underlined.
+This should not be underlined.
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingcollapsewhitespace3587601fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/collapse-whitespace-3587601-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/collapse-whitespace-3587601-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/collapse-whitespace-3587601-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 73x28
+          RenderText {#text} at (14,15) size 40x28
+            text run at (14,15) width 40: &quot;test &quot;
+          RenderInline {MAP} at (0,0) size 0x0
+          RenderText {#text} at (53,15) size 34x28
+            text run at (53,15) width 34: &quot;test&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3608430fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608430-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608430-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608430-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+This test makes sure that deletion of an element auto-removes a blank element before it. Below, you should see &quot;start-deleting&quot;, followed by several lines showing the states of the content-editable div over time, ending with 'start-deleting' inside a span id'd as &quot;test&quot;.
+
+foo 
+foo   select-in-me-andstart-deleting
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
+execDeleteCommand: &lt;span id=&quot;test&quot;&gt;foo &lt;br&gt;foo &lt;i&gt; &lt;/i&gt; &lt;img src=&quot;../resources/abe.png&quot;&gt; select-in-me-andstart-deleting&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3608445fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608445-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608445-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608445-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 228x88
+          RenderText {#text} at (14,15) size 16x28
+            text run at (14,15) width 16: &quot;s &quot;
+          RenderBR {BR} at (29,37) size 1x0
+          RenderBR {BR} at (14,45) size 0x28
+          RenderText {#text} at (14,75) size 228x28
+            text run at (14,75) width 120: &quot;tha war. We &quot;
+            text run at (133,75) width 109: &quot;of that war.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3608462fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608462-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608462-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3608462-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x248 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 218x138
+          RenderText {#text} at (14,95) size 11x28
+            text run at (14,95) width 11: &quot;a&quot;
+          RenderImage {IMG} at (24,14) size 77x103
+          RenderText {#text} at (100,95) size 47x28
+            text run at (100,95) width 47: &quot;new &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,205) size 38x28
+            text run at (14,205) width 38: &quot;foo &quot;
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (51,124) size 77x103
+          RenderText {#text} at (127,205) size 105x28
+            text run at (127,205) width 105: &quot; conceived&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3775172fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3775172-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3775172-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3775172-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 8x19
+          text run at (0,0) width 8: &quot;x&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,20) size 784x0
+        RenderInline {SPAN} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3800834fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3800834-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3800834-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3800834-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x136 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderInline {SPAN} at (0,0) size 38x28
+            RenderText {#text} at (0,1) size 38x28
+              text run at (0,1) width 38: &quot;Foo&quot;
+            RenderBR {BR} at (37,23) size 1x0
+        RenderBlock (anonymous) at (14,68) size 756x30
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;Bar&quot;
+        RenderBlock (anonymous) at (14,122) size 756x0
+          RenderInline {SPAN} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3857753fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3857753-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3857753-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3857753-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [border: (2px solid #FF0000)]
+      RenderBlock {DIV} at (14,14) size 756x30
+        RenderInline {B} at (0,0) size 36x28
+          RenderText {#text} at (0,1) size 36x28
+            text run at (0,1) width 36: &quot;one&quot;
+      RenderBlock {DIV} at (14,44) size 756x30
+        RenderInline {I} at (0,0) size 35x28
+          RenderText {#text} at (0,1) size 35x28
+            text run at (0,1) width 35: &quot;two&quot;
+      RenderBlock {DIV} at (14,74) size 756x30
+        RenderInline {B} at (0,0) size 53x28
+          RenderText {#text} at (0,1) size 53x28
+            text run at (0,1) width 53: &quot;three&quot;
+        RenderInline {I} at (0,0) size 41x28
+          RenderText {#text} at (52,1) size 41x28
+            text run at (52,1) width 41: &quot;four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3865854fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3865854-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3865854-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3865854-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x148 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderInline {B} at (0,0) size 36x28
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;one&quot;
+        RenderBlock {DIV} at (14,44) size 756x30
+          RenderInline {I} at (0,0) size 35x28
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;two&quot;
+        RenderBlock {DIV} at (14,74) size 756x30
+          RenderInline {B} at (0,0) size 53x28
+            RenderText {#text} at (0,1) size 53x28
+              text run at (0,1) width 53: &quot;three&quot;
+        RenderBlock {DIV} at (14,104) size 756x30
+          RenderInline {I} at (0,0) size 41x28
+            RenderText {#text} at (0,1) size 41x28
+              text run at (0,1) width 41: &quot;four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3928305fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3928305-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3928305-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3928305-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 311x19
+          text run at (0,0) width 311: &quot;Should see a blank line between \&quot;foo\&quot; and \&quot;baz\&quot;&quot;
+      RenderBlock {DIV} at (0,20) size 784x24
+      RenderBlock {DIV} at (0,44) size 784x118 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 32x28
+            text run at (0,1) width 32: &quot;foo&quot;
+        RenderBlock (anonymous) at (14,44) size 756x30
+          RenderText {#text} at (0,1) size 31x28
+            text run at (0,1) width 31: &quot;bar&quot;
+        RenderBlock {DIV} at (14,74) size 756x30
+          RenderText {#text} at (0,1) size 34x28
+            text run at (0,1) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete3959464fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3959464-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3959464-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-3959464-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
+Should see two blank lines after &quot;foo&quot; each in a separate red box (class=editing).
+
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;foo&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete4038408fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4038408-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4038408-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4038408-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,165 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+rdar://problems/4038408&amp;4154187&amp;4125087&amp;4125381, This tests deletion from underneath quoted text:
+
+before deletion:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &lt;br&gt;
+|     class=&quot;khtml-block-placeholder&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;
+&quot;
+|   &lt;blockquote&gt;
+|     style=&quot;color:blue;&quot;
+|     type=&quot;cite&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;Here is some reply text&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;It should have the reply text style&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|   &quot;
+
+
+&quot;
+|   &lt;div&gt;
+|     &lt;br&gt;
+|       class=&quot;khtml-block-placeholder&quot;
+|   &quot;
+&quot;
+| &quot;
+
+&quot;
+
+after deletion:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &lt;br&gt;
+|     class=&quot;khtml-block-placeholder&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;
+&quot;
+|   &lt;blockquote&gt;
+|     style=&quot;color:blue;&quot;
+|     type=&quot;cite&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;Here is some reply text&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;It should have the reply text style&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|   &quot;
+
+
+&quot;
+|   &lt;div&gt;
+|     &lt;br&gt;
+|       class=&quot;khtml-block-placeholder&quot;
+|   &quot;
+&quot;
+| &quot;
+
+&quot;
+
+after insert text:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &lt;br&gt;
+|     class=&quot;khtml-block-placeholder&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;
+&quot;
+|   &lt;blockquote&gt;
+|     style=&quot;color:blue;&quot;
+|     type=&quot;cite&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;Here is some reply text&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;It should have the reply text style&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;br&gt;
+|         class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|   &quot;
+
+
+&quot;
+|   &lt;div&gt;
+|     &lt;br&gt;
+|       class=&quot;khtml-block-placeholder&quot;
+|   &quot;
+&quot;
+| &quot;
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdelete4083333fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4083333-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4083333-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-4083333-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 117x28
+          RenderText {#text} at (14,15) size 80x28
+            text run at (14,15) width 80: &quot;this is a &quot;
+          RenderInline {A} at (0,0) size 38x28 [color=#0000EE]
+            RenderText {#text} at (93,15) size 38x28
+              text run at (93,15) width 38: &quot;link&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteacrosseditablecontentboundaries1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests the deletion of non-editable content that both starts and ends in editable roots - it should successfully be removed. There should be no visible content in the markup below. &lt;radr://problem/5026848&gt;
+| &quot;foo &quot;
+| &lt;span&gt;
+|   contenteditable=&quot;false&quot;
+|   style=&quot;color: red;&quot;
+|   &quot;bar&quot;
+| &quot; baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteacrosseditablecontentboundaries2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+This tests to see that selected non-editable nodes that are not in both the start and end editable root are preserved during a deletion.  You should see two 'Non-editable' pieces on either side of the editable piece below. &lt;radr://problem/5026848&gt;
+| &quot;
+&quot;
+| &lt;table&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;
+    &quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         &quot;Non-editable&quot;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         contenteditable=&quot;true&quot;
+|         &quot;Editable &quot;
+|         &lt;span&gt;
+|           id=&quot;start&quot;
+|           &quot;content&quot;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         &quot;Non-editable&quot;
+|       &quot;
+    &quot;
+|     &quot;
+&quot;
+| &quot;
+Editable &quot;
+| &lt;span&gt;
+|   id=&quot;end&quot;
+|   &quot;content&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteacrosseditablecontentboundaries3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-across-editable-content-boundaries-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+This tests to see that selected editable nodes that are not in both the start and end editable roots are cleared.  You should see one non-editable piece and an editable one and then two empty table cells.  The table cells are editable but are preserved and not removed because they are in a non-editable region.  They should be completely cleared out, even the second one that contains a non-editable piece. &lt;radr://problem/5026848&gt;
+| &quot;
+&quot;
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   contenteditable=&quot;false&quot;
+|   &quot;
+    &quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         &quot;Non-editable&quot;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         contenteditable=&quot;true&quot;
+|         &quot;Editable &quot;
+|         &lt;span&gt;
+|           id=&quot;start&quot;
+|           &quot;content&quot;
+|       &quot;
+        &quot;
+|       &lt;!--  The following cell should be removed, even though it contains non-editable pieces.  --&gt;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         contenteditable=&quot;true&quot;
+|         &quot;Editable&quot;
+|       &quot;
+        &quot;
+|       &lt;td&gt;
+|         contenteditable=&quot;true&quot;
+|         &quot;Edit&quot;
+|         &lt;span&gt;
+|           contenteditable=&quot;false&quot;
+|           &quot;(non-editable content that should be removed because its in an editable region)&quot;
+|         &quot;able&quot;
+|       &quot;
+    &quot;
+|     &quot;
+&quot;
+| &quot;
+Editable &quot;
+| &lt;span&gt;
+|   id=&quot;end&quot;
+|   &quot;content&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteafterspanws001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 41: &quot; baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteafterspanws002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 7: &quot; &quot;
+          text run at (111,84) width 35: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteafterspanws003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-after-span-ws-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 7: &quot; &quot;
+          text run at (111,84) width 35: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletealltextintextfieldassertionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of FORM &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Bug 9358: REGRESSION: Assertion failure in HTMLInputElement::setValueFromRenderer (value == constrainValue(value)) when deleting all text
+https://bugs.webkit.org/show_bug.cgi?id=9358
+
+Assertion fails when all characters are deleted: 
+SUCCESS if the test didn't crash and you see this message.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteandcleanupexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-cleanup-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-cleanup-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-cleanup-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+This test checks that deletion does not leave unnecessary nested divs.
+
+FAIL confirmedMarkup should be &lt;br&gt;. Was Hello.
+FAIL confirmedMarkup should be &lt;br&gt;. Was &lt;div&gt;Hello&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;div id=&quot;mydiv&quot;&gt;&lt;br&gt;&lt;/div&gt;. Was &lt;div id=&quot;mydiv&quot;&gt;Hello&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;br&gt;. Was &lt;div&gt;&lt;div&gt;Hello&lt;/div&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;br&gt;&lt;/b&gt;. Was &lt;div&gt;&lt;b&gt;&lt;div&gt;&lt;i&gt;Hello&lt;/i&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;div style=&quot;border: solid red&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/b&gt;. Was &lt;div&gt;&lt;b&gt;&lt;div style=&quot;border: solid red&quot;&gt;&lt;i&gt;Hello&lt;/i&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;br&gt;. Was &lt;div&gt;Hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;br&gt;. Was &lt;div&gt;Hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;p&gt;&lt;br&gt;&lt;/p&gt;. Was &lt;div&gt;&lt;p&gt;Hello&lt;/p&gt;&lt;/div&gt;&lt;p&gt;world&lt;/p&gt;.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteandundoexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-undo-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-undo-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-and-undo-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 750x58
+          text run at (14,15) width 750: &quot;Should see \&quot;foo bar baz\&quot; in the red box. Insertion point should be between the&quot;
+          text run at (14,45) width 200: &quot;\&quot;b\&quot; and \&quot;a\&quot; of \&quot;baz\&quot;.&quot;
+      RenderBlock {DIV} at (0,112) size 784x58
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 108x28
+            text run at (14,15) width 108: &quot;foo bar baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
+
+Tests: 
+
+Deleting when a selection starts in a blank line created by a block with a BR placeholder in it and extends to the end of a block.
+
+
+Expected Results:
+
+Should see the three lines in the red box. First line should be &quot;A&quot;. Next two lines should be empty. Insertion point should
+be blinking on the second line (the first blank one).
+
+
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&quot;
+|   &lt;p&gt;
+|     style=&quot;margin-top: 0; margin-bottom: 0&quot;
+|     &quot;A&quot;
+|   &quot;
+&quot;
+|   &lt;p&gt;
+|     style=&quot;margin-top: 0; margin-bottom: 0&quot;
+|     &lt;br&gt;
+|       class=&quot;webkit-block-placeholder&quot;
+|   &quot;
+&quot;
+|   &lt;p&gt;
+|     style=&quot;margin-top: 0; margin-bottom: 0&quot;
+|     &quot;A&quot;
+|   &quot;
+&quot;
+|   &lt;p&gt;
+|     style=&quot;margin-top: 0; margin-bottom: 0&quot;
+|     &lt;br&gt;
+|       class=&quot;webkit-block-placeholder&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 731x58
+            text run at (0,31) width 731: &quot;Deleting when a selection starts in a blank line created by a BR element and&quot;
+            text run at (0,61) width 282: &quot;extends to the end of a block.&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 726x88
+            text run at (0,31) width 725: &quot;Should see the three lines in the red box. First line should be \&quot;A\&quot;. Next two&quot;
+            text run at (0,61) width 726: &quot;lines should be empty. Insertion point should be blinking on the second line&quot;
+            text run at (0,91) width 196: &quot;(the first blank one).&quot;
+      RenderBlock {DIV} at (0,278) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock (anonymous) at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock {P} at (2,92) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 733x88
+            text run at (0,31) width 733: &quot;Deleting when a selection starts in a blank line created by a block with a BR&quot;
+            text run at (0,61) width 720: &quot;placeholder in it and extends to a character that is not at the end of a block.&quot;
+            text run at (0,91) width 729: &quot;This ensures that some of our \&quot;special-case\&quot; code does not run for this case.&quot;
+        RenderBlock {DIV} at (14,150) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 675x58
+            text run at (0,31) width 675: &quot;Should see the two lines in the red box. Each should contain \&quot;A\&quot; only.&quot;
+            text run at (0,61) width 614: &quot;Insertion point should be blinking at the start of the second line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x94
+        RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock {P} at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;AA&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 742x88
+            text run at (0,31) width 731: &quot;Deleting when a selection starts in a blank line created by a BR element and&quot;
+            text run at (0,61) width 742: &quot;extends to a character that is not at the end of a block. This ensures that some&quot;
+            text run at (0,91) width 504: &quot;of our \&quot;special-case\&quot; code does not run for this case.&quot;
+        RenderBlock {DIV} at (14,150) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 675x58
+            text run at (0,31) width 675: &quot;Should see the two lines in the red box. Each should contain \&quot;A\&quot; only.&quot;
+            text run at (0,61) width 614: &quot;Insertion point should be blinking at the start of the second line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x94
+        RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock (anonymous) at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;AA&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 731x58
+            text run at (0,31) width 731: &quot;Deleting when a selection starts in a blank line created by a BR element and&quot;
+            text run at (0,61) width 342: &quot;extends to the end of the document.&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 735x88
+            text run at (0,31) width 711: &quot;Should see the two lines in the red box. First line should be \&quot;A\&quot;. Next one&quot;
+            text run at (0,61) width 735: &quot;should be empty. Insertion point should be blinking at the start of the second&quot;
+            text run at (0,91) width 42: &quot;line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock (anonymous) at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock (anonymous) at (2,92) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 733x58
+            text run at (0,31) width 733: &quot;Deleting when a selection starts in a blank line created by a block with a BR&quot;
+            text run at (0,61) width 545: &quot;placeholder in it and extends to the end of the document.&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 735x88
+            text run at (0,31) width 711: &quot;Should see the two lines in the red box. First line should be \&quot;A\&quot;. Next one&quot;
+            text run at (0,61) width 735: &quot;should be empty. Insertion point should be blinking at the start of the second&quot;
+            text run at (0,91) width 42: &quot;line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock {P} at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;A&quot;
+          RenderBlock {P} at (2,92) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 734x58
+            text run at (0,31) width 734: &quot;Deleting when a selection starts at the beginning of a paragraph preceded by&quot;
+            text run at (0,61) width 653: &quot;another block and extends into the middle of a following paragraph.&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 741x88
+            text run at (0,31) width 741: &quot;Should see the three lines in the red box. First line should be \&quot;one\&quot;. Next one&quot;
+            text run at (0,61) width 167: &quot;should be \&quot;two\&quot;. &quot;
+            text run at (166,61) width 570: &quot;Next one should be \&quot;ur\&quot;. Insertion point should be blinking&quot;
+            text run at (0,91) width 261: &quot;at the start of the third line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;one&quot;
+          RenderBlock {P} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;two&quot;
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 48x28
+              text run at (0,1) width 48: &quot;three&quot;
+          RenderBlock {P} at (2,92) size 780x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 682x58
+            text run at (0,31) width 682: &quot;Deleting when a selection starts in the middle of the last paragraph and&quot;
+            text run at (0,61) width 344: &quot;extends to the end of that paragraph&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 733x88
+            text run at (0,31) width 733: &quot;Should see the four lines in the red box. First line should be \&quot;one\&quot;. Next one&quot;
+            text run at (0,61) width 167: &quot;should be \&quot;two\&quot;. &quot;
+            text run at (166,61) width 504: &quot;Next one should be \&quot;three\&quot;. Last one should be \&quot;fo\&quot;.&quot;
+            text run at (0,91) width 661: &quot;Insertion point should be blinking at the start of the fourth (last) line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;one&quot;
+          RenderBlock {P} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;two&quot;
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 48x28
+              text run at (0,1) width 48: &quot;three&quot;
+          RenderBlock {P} at (2,92) size 780x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 750x58
+            text run at (0,31) width 750: &quot;Deleting when a selection starts at the beginning of a paragraph preceded by a&quot;
+            text run at (0,61) width 640: &quot;text element and extends into the middle of a following paragraph.&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 741x88
+            text run at (0,31) width 741: &quot;Should see the three lines in the red box. First line should be \&quot;one\&quot;. Next one&quot;
+            text run at (0,61) width 152: &quot;should be \&quot;ee\&quot;. &quot;
+            text run at (151,61) width 590: &quot;Next one should be \&quot;four\&quot;. Insertion point should be blinking&quot;
+            text run at (0,91) width 282: &quot;at the start of the second line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;one&quot;
+          RenderBlock {P} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;two&quot;
+          RenderBlock {P} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 48x28
+              text run at (0,1) width 48: &quot;three&quot;
+          RenderBlock {P} at (2,92) size 780x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x344 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 734x58
+            text run at (0,31) width 734: &quot;Deleting when a selection starts at the beginning of a text following a nested&quot;
+            text run at (0,61) width 684: &quot;block, and extends out of the enclosing block into the following block. &quot;
+          RenderBR {BR} at (683,83) size 1x0
+          RenderText {#text} at (0,91) size 549x28
+            text run at (0,91) width 266: &quot;FIXME: Currently broken! &quot;
+            text run at (265,91) width 284: &quot;See rdar://problem/4099839/.&quot;
+        RenderBlock {DIV} at (14,150) size 756x180
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 744x148
+            text run at (0,31) width 719: &quot;Should see a total of five lines in the red box, with the third line inside of a&quot;
+            text run at (0,61) width 670: &quot;nested red box. First line should be \&quot;one\&quot;. Next line should be \&quot;two\&quot;. &quot;
+            text run at (669,61) width 48: &quot;Next&quot;
+            text run at (0,91) width 730: &quot;line should be \&quot;cha cha cha\&quot;, inside of a nested red box. Next line should be&quot;
+            text run at (0,121) width 52: &quot;\&quot;ur\&quot;. &quot;
+            text run at (51,121) width 368: &quot;The last line should be \&quot;cha cha cha\&quot;. &quot;
+            text run at (418,121) width 326: &quot;Insertion point should be blinking&quot;
+            text run at (0,151) width 336: &quot;at the start of the fourth line (\&quot;ur\&quot;).&quot;
+      RenderBlock {DIV} at (0,368) size 784x158
+        RenderBlock {DIV} at (0,0) size 784x158 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;one&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;two&quot;
+          RenderBlock {DIV} at (2,62) size 780x34 [border: (2px solid #FF0000)]
+            RenderBlock {DIV} at (2,2) size 776x30
+              RenderText {#text} at (0,1) size 112x28
+                text run at (0,1) width 112: &quot;cha cha cha&quot;
+            RenderBlock (anonymous) at (2,32) size 776x0
+          RenderBlock {DIV} at (2,96) size 780x30
+            RenderText {#text} at (0,1) size 20x28
+              text run at (0,1) width 20: &quot;ur&quot;
+          RenderBlock {DIV} at (2,126) size 780x30
+            RenderText {#text} at (0,1) size 112x28
+              text run at (0,1) width 112: &quot;cha cha cha&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatparagraphboundaries011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 622x28
+            text run at (0,31) width 622: &quot;Delete at the end of document when there is a BR following a P. &quot;
+          RenderBR {BR} at (621,53) size 1x0
+          RenderText {#text} at (0,61) size 437x28
+            text run at (0,61) width 437: &quot;This is a test case for rdar://problem/4110366&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 715x58
+            text run at (0,31) width 239: &quot;Red box with four lines. &quot;
+            text run at (238,31) width 477: &quot;The second line is a nested red box with the word&quot;
+            text run at (0,61) width 80: &quot;\&quot;hello\&quot;. &quot;
+            text run at (79,61) width 311: &quot;The other three lines are empty. &quot;
+          RenderBR {BR} at (389,83) size 1x0
+          RenderText {#text} at (0,91) size 461x28
+            text run at (0,91) width 461: &quot;Selection is a caret at the start of the fourth line.&quot;
+      RenderBlock {DIV} at (0,278) size 784x174 [border: (2px solid #FF0000)]
+        RenderBlock {P} at (2,26) size 780x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 48x28
+            text run at (2,3) width 48: &quot;hello&quot;
+        RenderBlock {P} at (2,84) size 780x34 [border: (2px solid #FF0000)]
+          RenderBR {BR} at (2,3) size 0x28
+        RenderBlock (anonymous) at (2,142) size 780x30
+          RenderBR {BR} at (0,1) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteatstartorendexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-start-or-end-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-start-or-end-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-at-start-or-end-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebeforeblockimage1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-image-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-image-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-image-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests placing the caret just before a block image and pressing delete. The image should not be deleted. The caret should just move back to the previous paragraph.&lt;img id=&quot;img&quot; style=&quot;display:block;&quot; src=&quot;../resources/abe.png&quot;&gt;
+
+Selection: [null, 0]
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebeforeblocktableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-before-block-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests placing the caret just before a block table and pressing delete. The caret should just move back to the previous paragraph.&lt;table border=&quot;1&quot; id=&quot;table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
+
+Selection: [null, 0]
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockcontents001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 108x28
+          RenderText {#text} at (14,15) size 108x28
+            text run at (14,15) width 38: &quot;foo &quot;
+            text run at (51,15) width 38: &quot;bar &quot;
+            text run at (88,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockcontents002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockcontents003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-contents-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 108x28
+          RenderText {#text} at (14,15) size 108x28
+            text run at (14,15) width 38: &quot;foo &quot;
+            text run at (51,15) width 38: &quot;bar &quot;
+            text run at (88,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 83x28
+            text run at (0,1) width 83: &quot;OneTwo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 83x28
+            text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBR {BR} at (82,23) size 1x0
+          RenderText {#text} at (0,31) size 56x28
+            text run at (0,31) width 56: &quot;Three&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 83x28
+            text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBR {BR} at (82,23) size 1x0
+          RenderText {#text} at (0,31) size 56x28
+            text run at (0,31) width 56: &quot;Three&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 83x28
+            text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBR {BR} at (82,23) size 1x0
+          RenderText {#text} at (0,31) size 56x28
+            text run at (0,31) width 56: &quot;Three&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 83x28
+              text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBlock {DIV} at (0,30) size 756x30
+            RenderBlock (anonymous) at (0,0) size 756x0
+            RenderBlock {DIV} at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 56x28
+                text run at (0,1) width 56: &quot;Three&quot;
+          RenderBlock (anonymous) at (0,60) size 756x30
+            RenderText {#text} at (0,1) size 46x28
+              text run at (0,1) width 46: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 83x28
+              text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBlock {DIV} at (0,30) size 756x30
+            RenderBlock (anonymous) at (0,0) size 756x0
+            RenderBlock {DIV} at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 56x28
+                text run at (0,1) width 56: &quot;Three&quot;
+              RenderBR {BR} at (55,23) size 1x0
+          RenderBlock (anonymous) at (0,60) size 756x30
+            RenderText {#text} at (0,1) size 46x28
+              text run at (0,1) width 46: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 83x28
+              text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBlock {DIV} at (0,30) size 756x30
+            RenderBlock (anonymous) at (0,0) size 756x0
+            RenderBlock {DIV} at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 56x28
+                text run at (0,1) width 56: &quot;Three&quot;
+              RenderBR {BR} at (55,23) size 1x0
+          RenderBlock (anonymous) at (0,60) size 756x30
+            RenderText {#text} at (0,1) size 46x28
+              text run at (0,1) width 46: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 83x28
+              text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBlock {DIV} at (0,30) size 756x60
+            RenderBlock {DIV} at (0,0) size 756x30
+              RenderBlock (anonymous) at (0,0) size 756x0
+              RenderBlock {DIV} at (0,0) size 756x30
+                RenderText {#text} at (0,1) size 56x28
+                  text run at (0,1) width 56: &quot;Three&quot;
+            RenderBlock (anonymous) at (0,30) size 756x30
+              RenderText {#text} at (0,1) size 46x28
+                text run at (0,1) width 46: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x178 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x150
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;One&quot;
+          RenderBlock {DIV} at (0,30) size 756x90
+            RenderBlock (anonymous) at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 43x28
+                text run at (0,1) width 43: &quot;Two&quot;
+              RenderBR {BR} at (42,23) size 1x0
+            RenderBlock {DIV} at (0,30) size 756x30
+              RenderText {#text} at (0,1) size 56x28
+                text run at (0,1) width 56: &quot;Three&quot;
+              RenderBR {BR} at (55,23) size 1x0
+            RenderBlock (anonymous) at (0,60) size 756x30
+              RenderText {#text} at (0,1) size 46x28
+                text run at (0,1) width 46: &quot;Four&quot;
+          RenderBlock (anonymous) at (0,120) size 756x30
+            RenderText {#text} at (0,1) size 43x28
+              text run at (0,1) width 43: &quot;Five&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 83x28
+              text run at (0,1) width 83: &quot;OneTwo&quot;
+          RenderBlock {DIV} at (0,30) size 756x30
+            RenderBlock (anonymous) at (0,0) size 756x0
+            RenderBlock {DIV} at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 56x28
+                text run at (0,1) width 56: &quot;Three&quot;
+              RenderBR {BR} at (55,23) size 1x0
+          RenderBlock (anonymous) at (0,60) size 756x30
+            RenderText {#text} at (0,1) size 46x28
+              text run at (0,1) width 46: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x148 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;One&quot;
+          RenderBlock {DIV} at (0,30) size 756x60
+            RenderText {#text} at (0,1) size 43x28
+              text run at (0,1) width 43: &quot;Two&quot;
+            RenderBR {BR} at (42,23) size 1x0
+            RenderBR {BR} at (0,31) size 0x28
+          RenderBlock (anonymous) at (0,90) size 756x30
+            RenderText {#text} at (0,1) size 56x28
+              text run at (0,1) width 56: &quot;Three&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-012-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-012-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-012-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldDeleteDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 176x28
+              text run at (0,1) width 176: &quot;This is  some text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-013-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-013-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-013-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 170x28
+              text run at (0,1) width 170: &quot;This is some text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents014expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-014-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-014-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-014-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 170x28
+              text run at (0,1) width 170: &quot;This is some text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents015expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-015-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-015-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-015-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 170x28
+              text run at (0,1) width 170: &quot;This is some text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents016expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-016-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-016-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-016-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 170x28
+              text run at (0,1) width 170: &quot;This is some text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents017expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-017-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-017-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-017-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 15 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderBlock {DIV} at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 176x28
+              text run at (0,1) width 176: &quot;This is  some text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents018expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-018-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-018-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-018-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 726x58
+          text run at (14,15) width 720: &quot;Should see \&quot;Test OK\&quot; in top red box, followed by \&quot;...more text\&quot;, in its own&quot;
+          text run at (733,15) width 7: &quot; &quot;
+          text run at (14,45) width 79: &quot;red box.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 15x28
+              text run at (0,1) width 15: &quot;T&quot;
+          RenderBlock {DIV} at (14,44) size 756x88 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 80x28
+              text run at (14,15) width 80: &quot;xest OK&quot;
+            RenderBR {BR} at (93,37) size 1x0
+            RenderText {#text} at (14,45) size 110x28
+              text run at (14,45) width 110: &quot;...more text&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents019expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-019-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-019-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-019-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 291x28
+          text run at (14,15) width 291: &quot;Should see \&quot;XX\&quot; in a red box.&quot;
+      RenderBlock {DIV} at (0,82) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;X&quot;
+          RenderBlock {DIV} at (14,44) size 756x88 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 255x28
+              text run at (14,15) width 255: &quot;should not see this content&quot;
+            RenderBR {BR} at (268,37) size 1x0
+            RenderText {#text} at (14,45) size 18x28
+              text run at (14,45) width 18: &quot;X&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents020expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-020-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-020-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-020-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 355x28
+          text run at (14,15) width 355: &quot;Should see \&quot;XX\&quot; in a single red box.&quot;
+      RenderBlock {DIV} at (0,82) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;X&quot;
+          RenderBlock {DIV} at (14,44) size 756x88 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 255x28
+              text run at (14,15) width 255: &quot;should not see this content&quot;
+            RenderBR {BR} at (268,37) size 1x0
+            RenderText {#text} at (14,45) size 35x28
+              text run at (14,45) width 35: &quot;XX&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents021expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-021-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-021-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-021-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 732x58
+          text run at (14,15) width 726: &quot;Should see \&quot;XX\&quot; in a top red box, and another \&quot;XX\&quot; in a red box inside the&quot;
+          text run at (739,15) width 7: &quot; &quot;
+          text run at (14,45) width 45: &quot;first.&quot;
+      RenderBlock {DIV} at (0,112) size 784x176
+        RenderBlock {DIV} at (0,0) size 784x176 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 18x28
+              text run at (0,1) width 18: &quot;X&quot;
+          RenderBlock {DIV} at (14,44) size 756x118 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 255x28
+              text run at (14,15) width 255: &quot;should not see this content&quot;
+            RenderBR {BR} at (268,37) size 1x0
+            RenderText {#text} at (14,45) size 35x28
+              text run at (14,45) width 35: &quot;XX&quot;
+            RenderBR {BR} at (48,67) size 1x0
+            RenderText {#text} at (14,75) size 35x28
+              text run at (14,75) width 35: &quot;XX&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents022expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-022-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-022-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-022-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 749x58
+          text run at (14,15) width 743: &quot;Should see \&quot;XX\&quot; in outer red box, and another \&quot;XX\&quot; in an orange box nested&quot;
+          text run at (756,15) width 7: &quot; &quot;
+          text run at (14,45) width 143: &quot;in a green box.&quot;
+      RenderBlock {DIV} at (0,112) size 784x144
+        RenderBlock {DIV} at (0,0) size 784x144 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;XX&quot;
+          RenderBlock {DIV} at (14,44) size 756x86 [border: (2px solid #008000)]
+            RenderBlock {DIV} at (14,14) size 728x58 [border: (2px solid #FFA500)]
+              RenderText {#text} at (14,15) size 35x28
+                text run at (14,15) width 35: &quot;XX&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents023expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-023-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-023-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-023-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 513x28
+          text run at (14,15) width 513: &quot;Should see \&quot;XX\&quot; in a yellow box nested in a red box.&quot;
+      RenderBlock {DIV} at (0,82) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;AA&quot;
+          RenderBlock {DIV} at (14,44) size 756x66 [border: (3px solid #FFFF00)]
+            RenderBlock (anonymous) at (3,3) size 750x30
+              RenderText {#text} at (0,1) size 255x28
+                text run at (0,1) width 255: &quot;should not see this content&quot;
+            RenderBlock {DIV} at (3,33) size 750x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;XX&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockmergecontents024expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-024-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-024-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-merge-contents-024-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 496x28
+          text run at (14,15) width 496: &quot;Should see \&quot;X\&quot; in a yellow box nested in a red box.&quot;
+      RenderBlock {DIV} at (0,82) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;AA&quot;
+          RenderBlock {DIV} at (14,44) size 756x66 [border: (3px solid #FFFF00)]
+            RenderBlock (anonymous) at (3,3) size 750x30
+              RenderText {#text} at (0,1) size 255x28
+                text run at (0,1) width 255: &quot;should not see this content&quot;
+            RenderBlock {DIV} at (3,33) size 750x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;XX&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblocktableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-block-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This test checks that deleting into a table works properly. When deleting three times with the cursor after the character &quot;a&quot; in the &quot;after&quot; text after the table, the &quot;a&quot; should be deleted, as should the &quot;o&quot; of &quot;buffalo&quot; in the last table cell.
+
+Before
+Foo        baz
+bar        buffalo
+after
+execDeleteCommand: &lt;div&gt;Before&lt;/div&gt; &lt;table style=&quot;border:3px solid #aaa;&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; Foo &lt;/td&gt; &lt;td&gt; baz &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; bar &lt;/td&gt; &lt;td&gt; buffalo &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;span id=&quot;start&quot;&gt;after&lt;/span&gt;
+execDeleteCommand: &lt;div&gt;Before&lt;/div&gt; &lt;table style=&quot;border:3px solid #aaa;&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; Foo &lt;/td&gt; &lt;td&gt; baz &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; bar &lt;/td&gt; &lt;td&gt; buffalo &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;span id=&quot;start&quot;&gt;after&lt;/span&gt;
+execDeleteCommand: &lt;div&gt;Before&lt;/div&gt; &lt;table style=&quot;border:3px solid #aaa;&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; Foo &lt;/td&gt; &lt;td&gt; baz &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; bar &lt;/td&gt; &lt;td&gt; buffalo &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;span id=&quot;start&quot;&gt;after&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteblockquotelargeoffsetsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-blockquote-large-offsets-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-blockquote-large-offsets-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-blockquote-large-offsets-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests setting caret inside a blockquote with a large offset and running execCommand('Delete'). WebKit should not crash and you should see PASS below:
+
+FAIL: expected empty line but got &lt;blockquote type=&quot;cite&quot; id=&quot;blockquote&quot; style=&quot;font-size: 0px; -webkit-min-logical-height: 4px;&quot;&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x58
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderText {#text} at (14,45) size 92x28
+            text run at (14,45) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x88
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderBR {BR} at (14,45) size 0x28
+          RenderText {#text} at (14,75) size 92x28
+            text run at (14,75) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldDeleteDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 23 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 23 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x88
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderBR {BR} at (14,45) size 0x28
+          RenderText {#text} at (14,75) size 92x28
+            text run at (14,75) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x88
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderBR {BR} at (14,45) size 0x28
+          RenderText {#text} at (14,75) size 92x28
+            text run at (14,75) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x148 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x118
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderBR {BR} at (14,45) size 0x28
+          RenderBR {BR} at (14,75) size 0x28
+          RenderText {#text} at (14,105) size 92x28
+            text run at (14,105) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 628x148 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x118
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderBR {BR} at (14,45) size 0x28
+          RenderBR {BR} at (14,75) size 0x28
+          RenderText {#text} at (14,105) size 92x28
+            text run at (14,105) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 204x58
+          RenderText {#text} at (14,15) size 204x28
+            text run at (14,15) width 102: &quot;Fourscore &quot;
+            text run at (115,15) width 42: &quot;and &quot;
+            text run at (156,15) width 62: &quot;seven &quot;
+          RenderBR {BR} at (217,37) size 1x0
+          RenderText {#text} at (14,45) size 92x28
+            text run at (14,45) width 92: &quot;years ago&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 40x28
+          text run at (14,15) width 40: &quot;One&quot;
+      RenderBlock (anonymous) at (0,58) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+      RenderBlock {DIV} at (0,78) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 43x28
+          text run at (14,15) width 43: &quot;Two&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 40x28
+          text run at (14,15) width 40: &quot;One&quot;
+      RenderBlock (anonymous) at (0,58) size 784x0
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 43x28
+          text run at (14,15) width 43: &quot;Two&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 40x28
+          text run at (14,15) width 40: &quot;One&quot;
+      RenderBlock (anonymous) at (0,58) size 784x0
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 43x28
+          text run at (14,15) width 43: &quot;Two&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+rdar://problem/4065343 Mail: Deleting a line sometimes makes the insertion point jump to the top of the message.
+
+before deletion:
+| &quot;hello&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;#selection-caret&gt;
+|   &lt;br&gt;
+| &lt;br&gt;
+| &quot;
+&quot;
+
+after deletion:
+| &quot;hello&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-012-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-012-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-012-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+This tests pressing delete key to remove empty quoted line places cursor at the right location. rdar://problem/4813973
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;
+    &quot;
+|   &lt;div&gt;
+|     style=&quot;border-style:solid; border-color:black;&quot;
+|     &quot;
+        hello
+    &quot;
+|   &quot;
+    &quot;
+| &lt;div&gt;
+|   id=&quot;test&quot;
+|   style=&quot;border-style:solid; border-color:blue;&quot;
+|   &lt;br&gt;
+|   &quot;
+&quot;
+| &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebr013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-013-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-013-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-013-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 768x39
+          text run at (0,0) width 768: &quot;This tests that we only preserve an empty paragraph's style when moving paragraphs around if the selection is still in an&quot;
+          text run at (0,20) width 255: &quot;empty paragraph after the move occurs.&quot;
+      RenderBlock {DIV} at (0,40) size 784x20
+        RenderText {#text} at (0,0) size 324x19
+          text run at (0,0) width 324: &quot;The test passes if the text below is still underlined.&quot;
+      RenderBlock (anonymous) at (0,60) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+      RenderBlock {DIV} at (0,80) size 784x20
+        RenderInline {SPAN} at (0,0) size 195x19
+          RenderText {#text} at (0,0) size 195x19
+            text run at (0,0) width 195: &quot;This text should be underlined&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebrinlasttablecellexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-in-last-table-cell-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-in-last-table-cell-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-br-in-last-table-cell-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,80 @@
</span><ins>+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       language=&quot;JavaScript&quot;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/JavaScript&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       language=&quot;JavaScript&quot;
+|       src=&quot;../editing.js&quot;
+|       type=&quot;text/JavaScript&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       &quot;
+function runTest()
+{
+    br = document.getElementById(&quot;lastBR&quot;);
+    sel = window.getSelection();
+    sel.setBaseAndExtent(br, 0, br, 0);
+    deleteCommand();
+}
+&quot;
+|     &quot;
+&quot;
+|   &quot;
+
+&quot;
+|   &lt;body&gt;
+|     &quot;
+&quot;
+|     &lt;p&gt;
+|       &lt;a&gt;
+|         href=&quot;https://bugs.webkit.org/show_bug.cgi?id=35369&quot;
+|         &quot;Bug 35369&quot;
+|       &quot; and &quot;
+|       &lt;a&gt;
+|         href=&quot;https://bugs.webkit.org/show_bug.cgi?id=35632&quot;
+|         &quot;Bug 35632&quot;
+|     &quot;
+&quot;
+|     &lt;p&gt;
+|       &quot;Executing a delete command when positioned before a BR in a table cell (esp. the last)&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       contenteditable=&quot;&quot;
+|       &quot;
+&quot;
+|       &lt;table&gt;
+|         id=&quot;table&quot;
+|         &lt;tbody&gt;
+|           &lt;tr&gt;
+|             &lt;td&gt;
+|               &quot;1&quot;
+|             &lt;td&gt;
+|               &quot;2&quot;
+|           &lt;tr&gt;
+|             &lt;td&gt;
+|               &quot;3&quot;
+|             &lt;td&gt;
+|               &quot;4&quot;
+|               &lt;br&gt;
+|               &lt;br&gt;
+|                 id=&quot;lastBR&quot;
+|       &quot;
+&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       &quot;
+runTest();
+&quot;
+|     &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebyword001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests: 
+Option-delete when a typing command is open.
+Expected Results: 
+Net result is a third &quot;cha&quot;. It should like this: 
+one two cha cha cha three four cha cha cha
+one two  cha cha three four cha cha cha
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+DeleteWord: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; one two &amp;nbsp;cha cha three four cha cha cha &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletebyword002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-by-word-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Tests: 
+Option-delete when no typing command is open, then undo.
+Expected Results: 
+It should like this, with the word &quot;two&quot; selected: 
+one two three four
+one two three four
+DeleteWord: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;one two three four&lt;/div&gt;
+execUndoCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;one two three four&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletecellcontentsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-cell-contents-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-cell-contents-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-cell-contents-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests for a crasher when deleting contents of a table cell. &lt;radr://problem/4845371&gt;
+
+baz
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletecharacter001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-character-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-character-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-character-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 96x28
+          RenderText {#text} at (14,15) size 96x28
+            text run at (14,15) width 26: &quot;fo &quot;
+            text run at (39,15) width 38: &quot;bar &quot;
+            text run at (76,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletecontiguousws001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-contiguous-ws-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-contiguous-ws-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-contiguous-ws-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 78x28
+          RenderText {#text} at (14,15) size 78x28
+            text run at (14,15) width 78: &quot;foo  baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletefirstlistitemexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-first-list-item-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-first-list-item-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-first-list-item-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of UL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 754x39
+          text run at (0,0) width 754: &quot;This tests deletion when the caret is in an empty list item at the beginning of the document. It also makes sure that the&quot;
+          text run at (0,20) width 275: &quot;style inside the empty list item is retained. &quot;
+          text run at (274,20) width 105: &quot;You should see '&quot;
+        RenderInline {B} at (0,0) size 22x19
+          RenderText {#text} at (378,20) size 22x19
+            text run at (378,20) width 22: &quot;foo&quot;
+        RenderText {#text} at (399,20) size 258x19
+          text run at (399,20) width 258: &quot;' followed by a list item containing 'bar'.&quot;
+      RenderBlock {DIV} at (0,56) size 784x56
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderInline {B} at (0,0) size 0x19
+            RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {UL} at (0,36) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletehrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-hr-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-hr-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-hr-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 44x19
+            text run at (0,0) width 44: &quot;Before&quot;
+        RenderBlock {HR} at (0,28) size 784x2 [border: (1px inset #000000)]
+        RenderBlock (anonymous) at (0,38) size 784x20
+          RenderInline {SPAN} at (0,0) size 23x19
+            RenderText {#text} at (0,0) size 23x19
+              text run at (0,0) width 23: &quot;fter&quot;
+          RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x248 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 202x138
+          RenderText {#text} at (14,95) size 11x28
+            text run at (14,95) width 11: &quot;a&quot;
+          RenderImage {IMG} at (24,14) size 77x103
+          RenderText {#text} at (100,95) size 7x28
+            text run at (100,95) width 7: &quot; &quot;
+          RenderText {#text} at (106,95) size 110x28
+            text run at (106,95) width 110: &quot; conceived &quot;
+          RenderBR {BR} at (215,117) size 1x0
+          RenderText {#text} at (14,205) size 60x28
+            text run at (14,205) width 60: &quot;nation&quot;
+          RenderImage {IMG} at (73,124) size 77x103
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x278 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 252x248
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderText {#text} at (24,15) size 47x28
+            text run at (24,15) width 47: &quot;new &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,125) size 66x28
+            text run at (14,125) width 66: &quot;nation &quot;
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (79,44) size 77x103
+          RenderText {#text} at (155,125) size 111x28
+            text run at (155,125) width 111: &quot; conceived &quot;
+          RenderBR {BR} at (265,147) size 1x0
+          RenderText {#text} at (14,235) size 60x28
+            text run at (14,235) width 60: &quot;nation&quot;
+          RenderImage {IMG} at (73,154) size 77x103
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 84x28
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderText {#text} at (24,15) size 74x28
+            text run at (24,15) width 74: &quot; lincoln&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimage004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteimagefollowedbytwobrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-followed-by-two-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-followed-by-two-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-image-followed-by-two-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+We should be able to delete the br and then the image.
+| &quot;
+    &quot;
+| &lt;img&gt;
+|   height=&quot;140&quot;
+|   width=&quot;140&quot;
+| &lt;br&gt;
+| &quot;This is a line of text.
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteinlinebrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-inline-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-inline-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-inline-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+Testcase for bug 120006: &lt;br&gt; does not get deleted when inlined after some non-textual content. To manually verify this issue, place the caret at the start of the second line and then do a back-delete (backspace). The two lines should then be merged and the caret should get placed after the text control.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+FAIL caretRect.left should be 176. Was 0.
+FAIL caretRect.top should be 10. Was 0.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteleadingws001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-leading-ws-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-leading-ws-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-leading-ws-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 14x28
+          RenderText {#text} at (14,15) size 14x28
+            text run at (14,15) width 8: &quot;f&quot;
+            text run at (21,15) width 7: &quot; &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteligature001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test tests whether the BackSpace key deletes only the last character of a ligature &quot;วั&quot;.
+
+If this test succeeds, you can see &quot;ว&quot; (U+0E27) and a string &quot;succeeded&quot; below.
+
+
+Failed. Actual: &quot;&quot;, Expected: &quot;ว&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteligature002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This test tests whether the BackSpace key deletes only the last character of a ligature &quot;วั&quot;.
+
+If this test succeeds, you can see &quot;ว&quot; (U+0E27) and a string &quot;succeeded&quot; below.
+
+Failed. Actual: &quot;&quot;, Expected: &quot;ว&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteligature003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ligature-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test tests whether the undo command works when the BackSpace key deletes the last character of a ligature &quot;วั&quot;.
+
+If this test succeeds, you can see &quot;วั&quot; (U+0E27,U+0E31) and a string &quot;succeeded&quot; for each platform below.
+
+วั
+Succeeded for mac
+Succeeded for win
+Succeeded for unix
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 195x28
+          text run at (0,1) width 195: &quot;in the affairs of men&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 195x28
+          text run at (0,1) width 195: &quot;in the affairs of men&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x60
+        RenderText {#text} at (0,1) size 137x28
+          text run at (0,1) width 137: &quot;There is a tide&quot;
+        RenderBR {BR} at (136,23) size 1x0
+        RenderText {#text} at (0,31) size 238x28
+          text run at (0,31) width 238: &quot;Which taken at the flood&quot;
+caret: position 0 of child 2 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 137x28
+          text run at (0,1) width 137: &quot;There is a tide&quot;
+      RenderBlock {DIV} at (0,30) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 24 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
+caret: position 0 of child 0 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderBR {BR} at (0,1) size 0x28
+      RenderBlock {DIV} at (0,30) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderBR {BR} at (0,1) size 0x28
+      RenderBlock {DIV} at (0,30) size 600x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldDeleteDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 332x28
+          text run at (0,1) width 332: &quot;There is aWhich taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-012-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-012-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-012-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 600x30
+        RenderText {#text} at (0,1) size 332x28
+          text run at (0,1) width 332: &quot;There is aWhich taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-013-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-013-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-013-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 137x28
+          text run at (0,1) width 137: &quot;There is a tide&quot;
+      RenderBlock (anonymous) at (0,30) size 784x30
+        RenderText {#text} at (0,1) size 195x28
+          text run at (0,1) width 195: &quot;in the affairs of men&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline014expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-014-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-014-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-014-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 15x28
+          text run at (0,1) width 15: &quot;T&quot;
+      RenderBlock (anonymous) at (0,30) size 784x30
+        RenderText {#text} at (0,1) size 195x28
+          text run at (0,1) width 195: &quot;in the affairs of men&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline015expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-015-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-015-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-015-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 784x59
+          text run at (0,0) width 784: &quot;This tests deletion of an empty line starting inside a &lt;div&gt; element, but ending outside that element (just before a &lt;br&gt;). If&quot;
+          text run at (0,20) width 778: &quot;the deletion is successful, the result should have two lines, and the insertion point should be on the second line, at the end&quot;
+          text run at (0,40) width 127: &quot;of the editable area.&quot;
+      RenderBlock {DIV} at (0,76) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 8x19
+            text run at (0,0) width 8: &quot;a&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock (anonymous) at (0,40) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline016expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-016-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-016-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-016-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 779x79
+          text run at (0,0) width 770: &quot;This tests deletion of an empty line starting inside a &lt;div&gt; element, but ending outside that element (just before a &lt;br&gt;).&quot;
+          text run at (0,20) width 730: &quot;In this case, the &lt;div&gt; has no content inside it, but a min-height style prevents it from collapsing. If the deletion is&quot;
+          text run at (0,40) width 779: &quot;successful, the result should have two lines, and the insertion point should be on the second line, at the end of the editable&quot;
+          text run at (0,60) width 31: &quot;area.&quot;
+      RenderBlock {DIV} at (0,96) size 784x70
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 8x19
+            text run at (0,0) width 8: &quot;a&quot;
+        RenderBlock {DIV} at (0,20) size 784x50
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock (anonymous) at (0,70) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteline017expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-017-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-017-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-017-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 763x39
+          text run at (0,0) width 763: &quot;This tests deletion of an empty line which is a &lt;br&gt; element just after a &lt;div&gt; element. If the deletion is successful, the&quot;
+          text run at (0,20) width 750: &quot;result should have two lines, and the insertion point should be at the start of the second line, just before the letter \&quot;b\&quot;.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 8x19
+            text run at (0,0) width 8: &quot;a&quot;
+        RenderBlock (anonymous) at (0,20) size 784x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 8x19
+            text run at (0,0) width 8: &quot;b&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelinebreakbeforeunderlinedcontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-before-underlined-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-before-underlined-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-before-underlined-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a bug where underlined content would lose its underliningwhen deleting the line break before the paragraph that contained it.
+| &quot;This shouldn't be underlined.&quot;
+| &lt;span&gt;
+|   style=&quot;text-decoration: underline;&quot;
+|   &quot;This should be underlined.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelinebreakbetweenparagraphswithsamestyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-between-paragraphs-with-same-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-between-paragraphs-with-same-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-break-between-paragraphs-with-same-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+This tests deleting a line break between paragraphs with the same inline style. Inline style should be preserved after the merge.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &lt;font&gt;
+|     class=&quot;Apple-style-span&quot;
+|     face=&quot;monospace&quot;
+|     &quot;hello world&quot;
+| &lt;div&gt;
+|   &lt;font&gt;
+|     class=&quot;Apple-style-span&quot;
+|     face=&quot;monospace&quot;
+|     &quot;WebKit&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelineendws001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldDeleteDOMRange:range from 58 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 59 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 58 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 58 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x244 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 544x76
+          RenderText {#text} at (74,84) size 544x76
+            text run at (74,84) width 538: &quot;Fourscore and seven years ago our fathers brought forth&quot;
+            text run at (611,84) width 7: &quot; &quot;
+            text run at (74,132) width 301: &quot;onthis continent a new nation...&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelineendws002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-line-end-ws-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x244 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 568x76
+          RenderText {#text} at (74,84) size 568x76
+            text run at (74,84) width 568: &quot;Fourscore and seven years ago our fathers brought forth on&quot;
+            text run at (74,132) width 277: &quot;this continent a new nation...&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelistitem001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x196 [border: (2px solid #FF0000)]
+        RenderBlock {UL} at (14,38) size 756x120
+          RenderListItem {LI} at (40,0) size 716x30
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;one&quot;
+          RenderListItem {LI} at (40,30) size 716x30
+            RenderText {#text} at (0,1) size 84x28
+              text run at (0,1) width 84: &quot;twothree&quot;
+          RenderListItem {LI} at (40,60) size 716x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;four&quot;
+          RenderListItem {LI} at (40,90) size 716x30
+            RenderText {#text} at (0,1) size 38x28
+              text run at (0,1) width 38: &quot;five&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletelistitem002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-listitem-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x226 [border: (2px solid #FF0000)]
+        RenderBlock {UL} at (14,38) size 756x150
+          RenderListItem {LI} at (40,0) size 716x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 35x28
+              text run at (0,1) width 35: &quot;one&quot;
+          RenderListItem {LI} at (40,30) size 716x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;two&quot;
+          RenderListItem {LI} at (40,60) size 716x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 38x28
+              text run at (0,1) width 38: &quot;thre&quot;
+          RenderListItem {LI} at (40,90) size 716x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;four&quot;
+          RenderListItem {LI} at (40,120) size 716x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 38x28
+              text run at (0,1) width 38: &quot;five&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletemixededitablecontent001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-mixed-editable-content-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-mixed-editable-content-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-mixed-editable-content-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+Confirm no crash when selecting all text with mixed editability.
+| &quot;
+&quot;
+| &lt;span&gt;
+|   &quot;
+   &quot;
+|   &lt;span&gt;
+|     &lt;span&gt;
+|       contenteditable=&quot;true&quot;
+|       &quot;12345&quot;
+|   &quot;
+   &quot;
+|   &lt;span&gt;
+|     contenteditable=&quot;true&quot;
+|     id=&quot;test&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselectall001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+One        Two        Three
+One        Two        Three
+One        Two        Three
+execDeleteCommand: &lt;table border=&quot;1&quot;&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td id=&quot;test&quot;&gt;One&lt;/td&gt;&lt;td&gt;Two&lt;/td&gt;&lt;td&gt;Three&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;One&lt;/td&gt;&lt;td&gt;Two&lt;/td&gt;&lt;td&gt;Three&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;One&lt;/td&gt;&lt;td&gt;Two&lt;/td&gt;&lt;td&gt;Three&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselectall002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+you can't see this. you can see this.
+execDeleteCommand: &lt;span style=&quot;display: hidden&quot;&gt;you can't see this.&lt;/span&gt; &lt;span id=&quot;test&quot;&gt;you can see this.&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselectall003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-select-all-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+
+execDeleteCommand: &lt;ul id=&quot;test&quot;&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeleteselection001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-selection-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-selection-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-selection-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 108x28
+          RenderText {#text} at (14,15) size 108x28
+            text run at (14,15) width 38: &quot;foo &quot;
+            text run at (51,15) width 38: &quot;bar &quot;
+            text run at (88,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletestartblockexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-start-block-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-start-block-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-start-block-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests removing the start block. WebKit should not crash.
+| 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletesurrogatepairexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-surrogatepair-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-surrogatepair-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-surrogatepair-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+This test makes sure that a surrogate-pair character is deleted by one pressing delete key
+
+hogehoge
+𠀾hogehoge
+a𠀾
+a𠀾
+𠀾a
+𠀾a
+a𠀾a
+aa
+a𠀾
+a𠀾𠀾a
+a𠀾𠀾a
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 80x28
+          RenderInline {SPAN} at (0,0) size 48x28
+            RenderText {#text} at (14,15) size 48x28
+              text run at (14,15) width 48: &quot;\x{9}&quot;
+          RenderText {#text} at (62,15) size 32x28
+            text run at (62,15) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 48x28
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderInline {SPAN} at (0,0) size 17x28
+            RenderText {#text} at (45,15) size 17x28
+              text run at (45,15) width 17: &quot;\x{9}&quot;
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 60x28
+          RenderText {#text} at (14,15) size 20x28
+            text run at (14,15) width 20: &quot;fo&quot;
+          RenderInline {SPAN} at (0,0) size 29x28
+            RenderText {#text} at (33,15) size 29x28
+              text run at (33,15) width 29: &quot;\x{9}&quot;
+          RenderText {#text} at (62,15) size 12x28
+            text run at (62,15) width 12: &quot;o&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetab004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-tab-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x58
+          RenderBR {BR} at (14,15) size 0x28
+          RenderText {#text} at (14,45) size 32x28
+            text run at (14,45) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetablecellcontentsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-table-cell-contents-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-table-cell-contents-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-table-cell-contents-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+This tests for a crash when deleting the contents of a table cell. Below, you should only see one link, 'Cached', pointing to 'fakelink.html', inside of a table. &lt;radr://problem/5156801&gt;
+| &lt;table&gt;
+|   border=&quot;0&quot;
+|   cellpadding=&quot;0&quot;
+|   cellspacing=&quot;0&quot;
+|   id=&quot;table&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;br&gt;
+|         &lt;a&gt;
+|           href=&quot;fakelink.html&quot;
+|           &quot;Cached&quot;
+|         &lt;a&gt;
+|           fakelink.html&quot;=&quot;&quot;
+|           href=&quot;&quot;
+|           &quot;Simila&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetoendofparagraphexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-end-of-paragraph-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-end-of-paragraph-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-end-of-paragraph-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetoselecttableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-select-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-select-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-to-select-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x56
+        RenderTable {TABLE} at (0,0) size 87x56 [border: (3px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (3,3) size 81x50
+            RenderTableRow {TR} at (0,2) size 81x22
+              RenderTableCell {TD} at (2,2) size 27x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 25x19
+                  text run at (1,1) width 25: &quot;Foo&quot;
+              RenderTableCell {TD} at (31,2) size 48x22 [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 23x19
+                  text run at (1,1) width 23: &quot;baz&quot;
+            RenderTableRow {TR} at (0,26) size 81x22
+              RenderTableCell {TD} at (2,26) size 27x22 [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 21x19
+                  text run at (1,1) width 21: &quot;bar&quot;
+              RenderTableCell {TD} at (31,26) size 48x22 [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 46x19
+                  text run at (1,1) width 46: &quot;buffalo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetrailingws001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 76x28
+          RenderText {#text} at (14,15) size 76x28
+            text run at (14,15) width 43: &quot; bar &quot;
+            text run at (56,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletetrailingws002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-trailing-ws-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 40x58
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 40x28
+            text run at (14,45) width 40: &quot; baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldDeleteDOMRange:range from 2 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 744x58
+          RenderText {#text} at (14,15) size 96x28
+            text run at (14,15) width 96: &quot;in Liberty&quot;
+          RenderInline {I} at (0,0) size 117x28
+            RenderText {#text} at (109,15) size 117x28
+              text run at (109,15) width 21: &quot;F &quot;
+              text run at (129,15) width 97: &quot;and seven&quot;
+          RenderText {#text} at (225,15) size 63x28
+            text run at (225,15) width 63: &quot; years &quot;
+          RenderInline {B} at (0,0) size 17x28
+            RenderText {#text} at (287,15) size 17x28
+              text run at (287,15) width 17: &quot;s &quot;
+          RenderText {#text} at (303,15) size 744x58
+            text run at (303,15) width 110: &quot;our fathers &quot;
+            text run at (412,15) width 340: &quot;f upon this continent, a new nation,&quot;
+            text run at (751,15) width 7: &quot; &quot;
+            text run at (14,45) width 228: &quot;conceived    in Liberty, &quot;
+            text run at (241,45) width 380: &quot;and dedicated to the proposition that all&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 766x39
+          text run at (0,0) width 265: &quot;This testcase demonstrates a bug (9441). &quot;
+          text run at (264,0) width 455: &quot;When 'as' is deleted, there should be a space before and after the caret. &quot;
+          text run at (718,0) width 48: &quot;Editing&quot;
+          text run at (0,20) width 543: &quot;produces a tree that should result in two spaces, but for some reason it isn't rendered.&quot;
+      RenderBlock {DIV} at (0,56) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 756x58
+          RenderText {#text} at (14,15) size 96x28
+            text run at (14,15) width 96: &quot;in Liberty&quot;
+          RenderInline {I} at (0,0) size 117x28
+            RenderText {#text} at (109,15) size 117x28
+              text run at (109,15) width 21: &quot;F &quot;
+              text run at (129,15) width 97: &quot;and seven&quot;
+          RenderText {#text} at (225,15) size 63x28
+            text run at (225,15) width 63: &quot; years &quot;
+          RenderInline {B} at (0,0) size 29x28
+            RenderText {#text} at (287,15) size 29x28
+              text run at (287,15) width 29: &quot;as &quot;
+          RenderText {#text} at (315,15) size 756x58
+            text run at (315,15) width 110: &quot;our fathers &quot;
+            text run at (424,15) width 340: &quot;f upon this continent, a new nation,&quot;
+            text run at (763,15) width 7: &quot; &quot;
+            text run at (14,45) width 228: &quot;conceived    in Liberty, &quot;
+            text run at (241,45) width 380: &quot;and dedicated to the proposition that all&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 75x28
+          RenderText {#text} at (14,15) size 37x28
+            text run at (14,15) width 37: &quot;bar &quot;
+          RenderInline {SPAN} at (0,0) size 7x28
+            RenderText {#text} at (50,15) size 7x28
+              text run at (50,15) width 7: &quot; &quot;
+          RenderText {#text} at (56,15) size 33x28
+            text run at (56,15) width 33: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletewsfixup004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/delete-ws-fixup-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 87x28
+          RenderText {#text} at (14,15) size 37x28
+            text run at (14,15) width 37: &quot;bar &quot;
+          RenderInline {SPAN} at (0,0) size 19x28
+            RenderText {#text} at (50,15) size 19x28
+              text run at (50,15) width 19: &quot;   &quot;
+          RenderText {#text} at (68,15) size 33x28
+            text run at (68,15) width 33: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingdeletinglinebreakpreservesunderlinecolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/deleting-line-break-preserves-underline-color-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/deleting-line-break-preserves-underline-color-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/deleting-line-break-preserves-underline-color-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+This test for a bug moving a paragraph of underlined text.  The text should look the same before and after the deletion.
+
+Before:
+| &lt;div&gt;
+|   &quot;This should not be underlined.&quot;
+| &lt;span&gt;
+|   style=&quot;text-decoration: underline; color: blue;&quot;
+|   &lt;span&gt;
+|     style=&quot;color:red;&quot;
+|     &quot;This should be underlined.&quot;
+
+After:
+| &lt;div&gt;
+|   &quot;This should not be underlined.&quot;
+|   &lt;span&gt;
+|     style=&quot;color: red; text-decoration: underline;&quot;
+|     &quot;This should be underlined.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingforwarddeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 725x58
+          text run at (14,15) width 719: &quot;Should see \&quot;bar\&quot; in the red box. Insertion point should be at the start of the&quot;
+          text run at (732,15) width 7: &quot; &quot;
+          text run at (14,45) width 101: &quot;document.&quot;
+      RenderBlock {DIV} at (0,112) size 784x58
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 61x28
+            text run at (14,15) width 61: &quot;oo bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingforwarddeletekeyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-key-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-key-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/forward-delete-key-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+Test that forward delete key works.
+
+FAIL: 123456
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletinglistitem1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/list-item-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/list-item-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/list-item-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; LI &gt; UL &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI &gt; UL &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 734x19
+          text run at (0,0) width 272: &quot;This test deletes the contents of a sub-list. &quot;
+          text run at (271,0) width 463: &quot;Then it deletes the empty list item. The list item below it should remain.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderBlock {UL} at (40,0) size 744x20
+            RenderListItem {LI} at (40,0) size 704x20
+              RenderListMarker at (-18,0) size 7x19: white bullet
+              RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmaintainstyleafterdeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/maintain-style-after-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/maintain-style-after-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/maintain-style-after-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+Testcase for bug https://webkit.org/b/120726: When deleting editable content, typing style should be reset when moving into another node.
+
+Deleting 'W' in blue color and then inserting 'O'. The following markup should show 'O' in blue color:
+| &quot;H &quot;
+
+Deleting the blue colored text and the preceding space and then inserting 'W'. 'W' should be not be in blue color in the following markup:
+| &quot;H &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergedifferentstylesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-different-styles-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-different-styles-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-different-styles-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x39
+          text run at (0,0) width 351: &quot;This places the caret before the 'b' in 'bar' and Deletes. &quot;
+          text run at (350,0) width 412: &quot;'foo' and 'bar' should end up on the same line, but neither should&quot;
+          text run at (0,20) width 84: &quot;change style.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+          RenderInline {SPAN} at (0,0) size 25x19
+            RenderText {#text} at (21,0) size 25x19
+              text run at (21,0) width 25: &quot;bar&quot;
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergedivwithinlinestyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-div-with-inline-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-div-with-inline-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-div-with-inline-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+The inline style should be applied when merging div element.
+The test passes if &quot;bar&quot; has the blue color and 20px font-size.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;foo&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;styleToMerge&quot;
+|   id=&quot;divToMerge&quot;
+|   style=&quot;color:blue;font-size:20px&quot;
+|   &quot;bar&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeendOfParagraphexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-endOfParagraph-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-endOfParagraph-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-endOfParagraph-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x39
+          text run at (0,0) width 762: &quot;When the selection to delete ends at the end of a paragraph, that paragraph will be completely deleted, but a &lt;br&gt; or an&quot;
+          text run at (0,20) width 567: &quot;empty block will remain. Merging must happen to remove that &lt;br&gt; or prune that block.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 779x39
+          text run at (0,0) width 779: &quot;This test illustrates a case where merging wasn't allowed to happen just because the end of the selection to delete was in a&quot;
+          text run at (0,20) width 243: &quot;fully selected line, which is nonsense.&quot;
+      RenderBlock {P} at (0,112) size 784x60
+        RenderText {#text} at (0,0) size 783x59
+          text run at (0,0) width 321: &quot;Fixing that bug exposed a problem with merging. &quot;
+          text run at (320,0) width 459: &quot;If deletion empties out the block that contained the start of the selection&quot;
+          text run at (0,20) width 498: &quot;to delete, that block can collapse away and become impossible to merge into. &quot;
+          text run at (497,20) width 286: &quot;So we insert a placeholder to prop it open so&quot;
+          text run at (0,40) width 172: &quot;that the merge can happen.&quot;
+      RenderBlock {DIV} at (5,188) size 774x34 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (6,6) size 762x22 [border: (1px solid #FF0000)]
+          RenderBR {BR} at (1,1) size 0x19
+caret: position 0 of child 0 {BR} of child 0 {DIV} of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeintoemptyblock1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+When a user puts the caret at the very beginning of a blockquote and hits backspace, if the line before the blockquote is empty, the blockquote should just move up.
+| &lt;blockquote&gt;
+|   style=&quot;margin: 0px; padding-left: 25px; border-left: 3px solid blue; color: blue;&quot;
+|   type=&quot;cite&quot;
+|   &lt;span&gt;
+|     id=&quot;test&quot;
+|     &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeintoemptyblock2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-into-empty-block-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+When a user puts the caret at the very beginning a list and hits delete into an empty line, the list should just move up.
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &lt;span&gt;
+|       id=&quot;test&quot;
+|       &quot;&lt;#selection-caret&gt;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergenobrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-no-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-no-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-no-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 741x39
+          text run at (0,0) width 741: &quot;This places the caret before the 'T' in 'Two' and Deletes. 'One' and 'Two' should be merged but the blocks containing&quot;
+          text run at (0,20) width 280: &quot;'Three' and 'Four' should remain untouched.&quot;
+      RenderBlock {DIV} at (8,56) size 768x182
+        RenderBlock {DIV} at (16,16) size 736x42 [border: (3px solid #FF0000)]
+          RenderText {#text} at (11,11) size 55x19
+            text run at (11,11) width 55: &quot;OneTwo&quot;
+        RenderBlock {DIV} at (16,66) size 736x100 [border: (3px solid #008000)]
+          RenderBlock (anonymous) at (11,11) size 714x0
+          RenderBlock {DIV} at (19,19) size 698x42 [border: (3px solid #000000)]
+            RenderText {#text} at (11,11) size 38x19
+              text run at (11,11) width 38: &quot;Three&quot;
+          RenderBlock (anonymous) at (11,69) size 714x20
+            RenderText {#text} at (0,0) size 31x19
+              text run at (0,0) width 31: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphcontatiningnoneditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-contatining-noneditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-contatining-noneditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-contatining-noneditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+This test verifies merging of second paragraph containing non-editable element with first paragraph does not cause loss of element in second paragraph.
+Expected behavior is on hitting backspace all three word (First, Second and Third) should be visible and merged at the end of first line.
+
+Before:
+| &quot;
+        &quot;
+| &lt;p&gt;
+|   &quot;First Paragraph.&quot;
+| &quot;
+        &quot;
+| &lt;p&gt;
+|   id=&quot;paragraph&quot;
+|   &quot;&lt;#selection-caret&gt;First&quot;
+|   &lt;span&gt;
+|     class=&quot;noteditable&quot;
+|     contenteditable=&quot;false&quot;
+|     &quot;Second&quot;
+|   &quot;Third&quot;
+| &quot;
+    &quot;
+
+After:
+| &quot;
+        &quot;
+| &lt;p&gt;
+|   &quot;First Paragraph.First&quot;
+|   &lt;span&gt;
+|     class=&quot;noteditable&quot;
+|     &quot;Second&quot;
+|   &quot;Third&quot;
+| &quot;
+    &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromaddressexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-address-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-address-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-address-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of ADDRESS &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before address.
+WebKit should not cancel styles added by address by those of document's default style.
+| &quot;
+helloworld
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromh6expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of H6 &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before h6.
+WebKit should not cancel styles added by h6 by those of document's default style.
+| &quot;
+helloworld
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromh6withstyle2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of H6 &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; EM &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; EM &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before h6.
+WebKit should not cancel styles added by h6 by those of document's default style but still keep &quot;hello&quot; italicized and &quot;world&quot; in red.
+| &quot;
+&quot;
+| &lt;em&gt;
+|   &quot;hello&quot;
+| &lt;span&gt;
+|   style=&quot;color: red;&quot;
+|   &quot;world&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromh6withstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-h6-with-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of H6 &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; EM &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; EM &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before h6.
+WebKit should not cancel styles added by h6 by those of document's default style but still keep &quot;hello&quot; italicized and &quot;world&quot; in red.
+| &quot;
+&quot;
+| &lt;em&gt;
+|   &quot;hello&quot;
+| &lt;span&gt;
+|   style=&quot;color: red;&quot;
+|   &quot;world&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromlistingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-listing-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-listing-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-listing-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LISTING &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before listing.
+WebKit should not cancel styles added by listing by those of document's default style.
+| &quot;
+helloworld
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfrompwithstyle2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before p.
+WebKit should not keep the style of p added by a style rule, and &quot;world&quot; should be italic and not be in red.
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;hello&quot;
+|   &lt;i&gt;
+|     &quot;world&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfrompwithstyle3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before p.
+WebKit preserves the inline style of the merged paragraph, and &quot;world&quot; should be in green.
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;hello&quot;
+|   &lt;span&gt;
+|     style=&quot;color: green;&quot;
+|     &quot;world&quot;
+| &lt;font&gt;
+|   color=&quot;red&quot;
+|   &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfrompwithstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-p-with-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break before p.
+&quot;world&quot; in &quot;helloworld&quot; should be italicized in red.
+| &quot;
+hello&quot;
+| &lt;span&gt;
+|   style=&quot;color: red; font-style: italic;&quot;
+|   &quot;world&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromspanwithmultipletextdecorationexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-multiple-text-decoration-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-multiple-text-decoration-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-multiple-text-decoration-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+The span style should be preserved when merging a pragraph.
+The test passes if the &quot;bar&quot; has underline, overline and line through.
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;foo&quot;
+|   &lt;span&gt;
+|     style=&quot;text-decoration: underline overline line-through;&quot;
+|     &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphfromspanwithstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-from-span-with-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+The span style should be preserved when merging a pragraph.
+The test passes if &quot;bar&quot; contatins the yellow background and it's underlined.
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;foo&quot;
+|   &lt;span&gt;
+|     style=&quot;background-color: yellow; text-decoration: underline;&quot;
+|     &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-blockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-blockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-blockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break after blockquote.
+WebKit should not cancel styles added by blockquote by those of document's default style.
+| &quot;
+&quot;
+| &lt;blockquote&gt;
+|   &quot;helloworld&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break after h1.
+WebKit should not cancel styles added by h1 by those of document's default style
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;helloworld&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1withdir2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break after h1 inside a block with dir attribute.
+WebKit should not add direction or unicode-bidi properties while merging paragraphs.
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;hello&quot;
+|   &lt;b&gt;
+|     &quot;worl&quot;
+|   &quot;d&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1withdirexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-dir-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break after h1 inside a block with dir attribute.
+WebKit should not add direction or unicode-bidi properties while merging paragraphs.
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;helloworld&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintoh1withstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-h1-with-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of EM &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; H1 &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break after h1.
+WebKit should not cancel styles added by h1 by those of document's default style but keep &quot;world&quot; italicized.
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;hello&quot;
+|   &lt;em&gt;
+|     &quot;world&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphintopreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-into-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests deleting line break after pre.
+WebKit should not cancel styles added by pre by those of document's default style.
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;helloworld&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphwithstylefromruleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-with-style-from-rule-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-with-style-from-rule-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraph-with-style-from-rule-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+You should see &quot;hello webKit&quot; all in blue:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &lt;span&gt;
+|     class=&quot;someClass&quot;
+|     style=&quot;font-size: 12pt;&quot;
+|     &quot;hello&quot;
+|   &quot; &quot;
+|   &lt;span&gt;
+|     class=&quot;someClass&quot;
+|     style=&quot;font-size: 12pt;&quot;
+|     &quot;world&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &lt;span&gt;
+|     class=&quot;someClass&quot;
+|     style=&quot;font-size: 12pt;&quot;
+|     &quot;WebKit&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeparagraphswithtransparentbackgroundexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraphs-with-transparent-background-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraphs-with-transparent-background-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-paragraphs-with-transparent-background-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests merging paragraphs inside a document with background: transparent in html element's inline style declaration.
+WebKit should not generate a span with background-color property in such cases.
+| &quot;
+&quot;
+| &lt;p&gt;
+|   id=&quot;destination&quot;
+|   &quot;helloworld&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergeunrenderedspaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-unrendered-space-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-unrendered-space-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-unrendered-space-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 545x19
+          text run at (0,0) width 545: &quot;This tests deleting the line break before a paragraph that ends with unrendered space.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+          RenderText {#text} at (21,0) size 21x19
+            text run at (21,0) width 21: &quot;bar&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmergewhitespacepreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-whitespace-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-whitespace-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/merge-whitespace-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 756x39
+          text run at (0,0) width 371: &quot;This test places the caret before the 'b' in 'bar' and Delete. &quot;
+          text run at (370,0) width 386: &quot;Afterword, 'foobar' should be in the first paragraph and 'baz'&quot;
+          text run at (0,20) width 155: &quot;should be in the second.&quot;
+      RenderBlock {DIV} at (0,56) size 784x47
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 42x19
+            text run at (0,0) width 42: &quot;foobar&quot;
+        RenderBlock {PRE} at (0,33) size 784x14
+          RenderText {#text} at (0,0) size 24x14
+            text run at (0,0) width 24: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingmovenodes001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/move-nodes-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/move-nodes-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/move-nodes-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x156
+  RenderBlock {HTML} at (0,0) size 800x156
+    RenderBody {BODY} at (8,8) size 784x140
+      RenderBlock {DIV} at (0,0) size 784x114 [border: (3px solid #FF0000)]
+        RenderBlock (anonymous) at (3,3) size 778x20
+          RenderText {#text} at (0,0) size 138x19
+            text run at (0,0) width 138: &quot;Destination container&quot;
+        RenderBlock {P} at (3,39) size 778x20
+          RenderText {#text} at (0,0) size 24x19
+            text run at (0,0) width 24: &quot;one&quot;
+        RenderBlock {P} at (3,75) size 778x20
+          RenderText {#text} at (0,0) size 24x19
+            text run at (0,0) width 24: &quot;two&quot;
+      RenderBlock {DIV} at (0,114) size 784x26 [border: (3px solid #0000FF)]
+        RenderText {#text} at (3,3) size 108x19
+          text run at (3,3) width 108: &quot;Source container&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingnonsmartdeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/non-smart-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/non-smart-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/non-smart-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 635x28
+            text run at (0,31) width 635: &quot;Non-smart delete when deleting a word selected via the keyboard.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 708x58
+            text run at (0,31) width 708: &quot;The first word should be deleted. The space following it should remain. It&quot;
+            text run at (0,61) width 209: &quot;should look like this: &quot;
+          RenderBR {BR} at (208,83) size 1x0
+          RenderText {#text} at (0,91) size 96x28
+            text run at (0,91) width 96: &quot;\&quot; bar baz\&quot;&quot;
+      RenderBlock {DIV} at (0,248) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 70x28
+            text run at (2,3) width 70: &quot;bar baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingparagraphinpreserveNewlineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/paragraph-in-preserveNewline-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/paragraph-in-preserveNewline-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/paragraph-in-preserveNewline-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,84 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests for a bug where deleting a paragraph in preserveNewline text would introduce an extra line.  You should see '\nbar' below.
+
+initial state:
+| &lt;pre&gt;
+|   &quot;foo
+bar&quot;
+
+on mac:
+| &lt;pre&gt;
+|   &quot;
+bar&quot;
+
+after undo on mac:
+| &lt;pre&gt;
+|   &quot;
+bar&quot;
+
+on win:
+| &lt;pre&gt;
+|   &quot;r&quot;
+
+after undo on win:
+| &lt;pre&gt;
+|   &quot;r&quot;
+
+on unix:
+| &lt;pre&gt;
+|   &lt;br&gt;
+
+after undo on unix:
+| &lt;pre&gt;
+|   &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingpassworddeletecontentsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/password-delete-contents-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/password-delete-contents-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/password-delete-contents-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This makes sure we are able to delete the contents of a password field: deleting a selection and evaluating the field contents.
+
+FAIL passwordField.value='helllo'; passwordField.setSelectionRange(3, 4); testRunner.execCommand('Delete', false, null); passwordField.value should be hello. Was helllo.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingpastewithtransparentbackgroundcolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/paste-with-transparent-background-color-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/paste-with-transparent-background-color-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/paste-with-transparent-background-color-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+This tests cutting and pasting a content with inline &quot;background: transparent;&quot; into a document with a style rule that overrides this style.
+WebKit should preserve the inline style declaration. To manually test, cut and paste &quot;hello world WebKit&quot; below. &quot;world&quot; should not be highlighted in blue.
+
+Before cut and paste:
+| &quot;hello &quot;
+| &lt;span&gt;
+|   class=&quot;test&quot;
+|   style=&quot;background: transparent;&quot;
+|   &quot;world&quot;
+| &quot; WebKit&quot;
+
+After cut and paste:
+| &quot;hello &quot;
+| &lt;span&gt;
+|   class=&quot;test&quot;
+|   style=&quot;background: transparent;&quot;
+|   &quot;world&quot;
+| &quot; WebKit&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingpruningaftermerge1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests the pruning that delete does when the it merges two paragraphs when the selection to delete spans multiple blocks.
+
+You should see:
+bar
+baz
+
+bar
+baz
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingpruningaftermerge2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/pruning-after-merge-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 774x39
+          text run at (0,0) width 677: &quot;This tests to see if deletion correctly prunes the containers of the paragraph being moved during a merge. &quot;
+          text run at (676,0) width 98: &quot;You should see&quot;
+          text run at (0,20) width 25: &quot;'foo&quot;
+        RenderInline {B} at (0,0) size 25x19
+          RenderText {#text} at (24,20) size 25x19
+            text run at (24,20) width 25: &quot;bar&quot;
+        RenderText {#text} at (48,20) size 50x19
+          text run at (48,20) width 50: &quot;' below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (0,20) size 784x44 [border: (1px solid #0000FF)]
+          RenderBlock {DIV} at (6,6) size 772x32 [border: (1px solid #FF0000)]
+            RenderText {#text} at (6,6) size 24x19
+              text run at (6,6) width 24: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingregionalindicatorsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/regional-indicators-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/regional-indicators-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/regional-indicators-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test checks how backspacing works with regional indicator characters.
+
+a🇯
+1. Delete a flag: PASS
+2. Delete a lone regional indicator character: FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingremoveNodeCommandassertexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/removeNodeCommand-assert-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/removeNodeCommand-assert-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/removeNodeCommand-assert-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Test for a bug where an assertion in the RemoveNodeCommand constructor failed when deleting a &lt;br&gt; between a block and a blockquote.
+
+The test has passed if the assertion failure did not occur.
+
+
+blockquote
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingskipvirama001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/skip-virama-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/skip-virama-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/skip-virama-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This test tests whether or not we can prevent a cursor from moving after a virama sign.
+
+If this test succeeds, you can see a string &quot;succeeded&quot; below.
+
+कष
+Succeeded.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 492x28
+            text run at (0,31) width 492: &quot;Smart delete when deleting the first word on a line.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 708x58
+            text run at (0,31) width 708: &quot;The first word and the space following the first word should be deleted. It&quot;
+            text run at (0,61) width 201: &quot;should like this this: &quot;
+          RenderBR {BR} at (200,83) size 1x0
+          RenderText {#text} at (0,91) size 70x28
+            text run at (0,91) width 70: &quot;bar baz&quot;
+      RenderBlock {DIV} at (0,248) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 108x28
+            text run at (2,3) width 108: &quot;foo bar baz&quot;
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 516x28
+            text run at (0,31) width 516: &quot;Smart delete when deleting the second word of a line.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 732x58
+            text run at (0,31) width 732: &quot;The second word and the space before the second word should be deleted. It&quot;
+            text run at (0,61) width 201: &quot;should like this this: &quot;
+          RenderBR {BR} at (200,83) size 1x0
+          RenderText {#text} at (0,91) size 72x28
+            text run at (0,91) width 72: &quot;foo baz&quot;
+      RenderBlock {DIV} at (0,248) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 96x28
+            text run at (2,3) width 96: &quot;foo ar baz&quot;
+caret: position 5 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 779x39
+          text run at (0,0) width 401: &quot;This tests deleting a selection created with a word granularity. &quot;
+          text run at (400,0) width 353: &quot;To run it manually, double click on 'bar' and hit delete. &quot;
+          text run at (752,0) width 27: &quot;You&quot;
+          text run at (0,20) width 129: &quot;should see 'foo baz'.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 26x19
+          text run at (0,0) width 26: &quot;foo &quot;
+        RenderInline {SPAN} at (0,0) size 8x19
+          RenderText {#text} at (25,0) size 8x19
+            text run at (25,0) width 8: &quot;a&quot;
+        RenderText {#text} at (32,0) size 32x19
+          text run at (32,0) width 32: &quot;r baz&quot;
+caret: position 4 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdelete004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x39
+          text run at (0,0) width 401: &quot;This tests deleting a selection created with a word granularity. &quot;
+          text run at (400,0) width 358: &quot;To run it manually, double click on 'bar' and hit forward&quot;
+          text run at (0,20) width 47: &quot;delete. &quot;
+          text run at (46,20) width 159: &quot;You should see 'foo baz'.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 34x19
+          text run at (0,0) width 34: &quot;foo b&quot;
+        RenderText {#text} at (33,0) size 32x19
+          text run at (33,0) width 32: &quot;r baz&quot;
+caret: position 5 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdeleteacrosseditableboundaries2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This tests for a bug where expansion for smart delete would not consider editable boundaries. Only 'foo' should be deleted. You should see ' bar'. &lt;radr://problem/5390681&gt;
+| &quot;&lt;#selection-caret&gt;foo
+&quot;
+| &lt;span&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot; bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmartdeleteacrosseditableboundariesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-delete-across-editable-boundaries-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a bug where expansion for smart delete would not consider editable boundaries. Only 'foo' should be deleted. You should see ' bar'. &lt;radr://problem/5390681&gt;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingsmarteditingdisabledmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-editing-disabled-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-editing-disabled-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/smart-editing-disabled-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test verifies that smart insert and delete can be disabled at test time.
+If viewing in a browser, you should see the words &quot;foo bar baz&quot;.
+If using a version of testRunner with this functionality, you should see &quot;foo baz&quot;. (two spaces between the words)
+If using a version of testRunner without this functionality, you should see &quot;foo baz&quot;. (one space between the words)
+foo baz
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingtablecellsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/table-cells-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/table-cells-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/table-cells-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 24 of #text &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 24 of #text &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 737x19
+          text run at (0,0) width 372: &quot;This tests deletion of a selection that spans multiple cells. &quot;
+          text run at (371,0) width 366: &quot;Just table content should be removed, not table structure.&quot;
+      RenderBlock {DIV} at (0,36) size 784x30
+        RenderTable {TABLE} at (0,0) size 351x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 349x28
+            RenderTableRow {TR} at (0,2) size 349x24
+              RenderTableCell {TD} at (2,2) size 160x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBlock {DIV} at (2,2) size 156x20
+                  RenderText {#text} at (0,0) size 156x19
+                    text run at (0,0) width 156: &quot;These two pieces of text&quot;
+              RenderTableCell {TD} at (164,2) size 183x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderBlock {DIV} at (2,2) size 179x20
+                  RenderText {#text} at (0,0) size 179x19
+                    text run at (0,0) width 179: &quot; should be in different cells.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingtypedeleteafterquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/type-delete-after-quote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/type-delete-after-quote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/type-delete-after-quote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 743x39
+          text run at (0,0) width 743: &quot;When your cursor is after an empty blockquote, hitting delete should bring the cursor (and the content following the&quot;
+          text run at (0,20) width 480: &quot;cursor) back into the blockquote, instead of deleting the empty blockquote.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {BLOCKQUOTE} at (0,0) size 744x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (12,0) size 142x19
+            text run at (12,0) width 142: &quot;This should be quoted&quot;
+        RenderBlock (anonymous) at (0,36) size 784x0
+caret: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingdeletingwhitespacepre1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/deleting/whitespace-pre-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/deleting/whitespace-pre-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/deleting/whitespace-pre-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 69 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests for a bug in endOfLine.
+
+initial state:
+| &quot;You should not see this paragraph unless the command has been undone.
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
+
+on mac:
+| &quot;&lt;#selection-caret&gt;
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
+
+after undo on mac:
+| &quot;&lt;#selection-caret&gt;
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
+
+on win:
+| &quot;&lt;#selection-caret&gt;
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
+
+after undo on win:
+| &quot;&lt;#selection-caret&gt;
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
+
+on unix:
+| &quot;&lt;#selection-caret&gt;
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
+
+after undo on unix:
+| &quot;&lt;#selection-caret&gt;
+There should be three paragraphs in this editable region.
+The first one should be empty.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingeditabilityignoredcontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/editability/ignored-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/editability/ignored-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/editability/ignored-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+This test ensures WebKit does not ignore the content of hr, datagrid, and object with child nodes.
+
+&quot;world&quot; and only &quot;world&quot; should be bolded in each element below:
+| &lt;hr&gt;
+|   &quot;hello &quot;
+|   &lt;b&gt;
+|     &quot;world&quot;
+|   &quot; WebKit&quot;
+| &lt;datagrid&gt;
+|   &quot;hello &quot;
+|   &lt;b&gt;
+|     &quot;world&quot;
+|   &quot; WebKit&quot;
+| &lt;object&gt;
+|   &quot;hello world WebKit&quot;
+
+The result below should be identical to the result above:
+| &lt;hr&gt;
+|   &quot;hello &quot;
+|   &lt;b&gt;
+|     &quot;world&quot;
+|   &quot; WebKit&quot;
+| &lt;datagrid&gt;
+|   &quot;hello &quot;
+|   &lt;b&gt;
+|     &quot;world&quot;
+|   &quot; WebKit&quot;
+| &lt;object&gt;
+|   &quot;hello world WebKit&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand15381expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/15381-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/15381-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/15381-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests to make sure that centering content whose enclosing block is the root editable element doesn't modify the root editable element.
+
+Failure. Expected: &lt;div id=&quot;edit&quot; contenteditable=&quot;true&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;centered text&lt;/div&gt;&lt;/div&gt;, found: &lt;div id=&quot;edit&quot; contenteditable=&quot;true&quot;&gt;centered text&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand16049expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/16049-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/16049-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/16049-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests to see if BackColor can be performed on a caret selection. The text typed afterword should have the new background color.
+
+
+This tests to see if ForeColor can be performed in a plaintext-only region. The text typed afterword should not have the requested color.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand19087expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19087-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19087-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19087-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a crash when indenting a particular selection that contains a block nested in an inline element that contains an hr. It should not crash.
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand19089expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19089-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19089-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19089-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to make sure an ASSERT doesn't fire when performing a FormatBlock operation on a selection that ends just after a horizontal rule that is the last element in the document. The test should not assert.
+&lt;hr&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand196531expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+This tests creating a list from an empty paragraph with bold already applied to it. The word below should be bold.
+&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;
+
+This tests creating a list from an empty paragraph when the typing style was Bold. The word below should be bold.
+
+
+This tests indenting an empty paragraph with bold already applied to it. The word below should be bold.
+&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;
+
+This tests indenting an empty paragraph when the typing style was Bold. The word below should be bold.
+
+
+This tests outdenting an empty paragraph with bold already applied to it. The word below should be bold.
+&lt;blockquote class=&quot;webkit-indent-blockquote&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/blockquote&gt;
+
+This tests indenting an empty paragraph when the typing style was Bold. The word below should be bold.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand196532expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/19653-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests splitting two paragraphs with InsertParagraph while the typing style is bold. New text entered after the split should be bold.
+xx
+
+This tests splitting two paragraphs with InsertLineBreak while the typing style is bold. New text entered after the split should be bold. The inserted &lt;br&gt; doesn't need to be surrounded by a bold tag here.
+x&lt;b&gt;&lt;br&gt;&lt;/b&gt;x
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand25256expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25256-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25256-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25256-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for https://bugs.webkit.org/show_bug.cgi?id=25256 where we would add a newline during an alignment change operation. You should see a single paragraph in the editable region below, and it should be right aligned.
+
+&lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand25320expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25320-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25320-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/25320-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests for a crash when doing a block style change inside an editable root that contains rendered, but invisible content. This test shouldn't crash and the text-align:center should go onto a new paragraph element, not the body.
+
+&lt;div style=&quot;padding-left: 5px;&quot;&gt;&lt;/div&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand35791expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/35791-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/35791-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/35791-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand41280801expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4128080-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4128080-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4128080-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+Test 1: Verify that a header at the beginning of inserted content is preserved.
+Success. &lt;h1&gt;bar&lt;/h1&gt;&lt;div&gt;baz&lt;/div&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foo&lt;h1&gt;bar&lt;/h1&gt;bazfoo
+Success. &lt;h2&gt;bar&lt;/h2&gt;&lt;div&gt;baz&lt;/div&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foo&lt;h2&gt;bar&lt;/h2&gt;bazfoo
+Success. &lt;h3&gt;bar&lt;/h3&gt;&lt;div&gt;baz&lt;/div&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foo&lt;h3&gt;bar&lt;/h3&gt;bazfoo
+Success. &lt;h4&gt;bar&lt;/h4&gt;&lt;div&gt;baz&lt;/div&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foo&lt;h4&gt;bar&lt;/h4&gt;bazfoo
+Success. &lt;h5&gt;bar&lt;/h5&gt;&lt;div&gt;baz&lt;/div&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foo&lt;h5&gt;bar&lt;/h5&gt;bazfoo
+Failure. Result was: foofoo, should have been: foo&lt;h6&gt;bar&lt;/h6&gt;bazfoo
+Test 2: Verify that a header at the end of inserted content is preserved.
+Success. &lt;div&gt;bar&lt;/div&gt;&lt;h1&gt;baz&lt;/h1&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foobar&lt;h1&gt;baz&lt;/h1&gt;foo
+Success. &lt;div&gt;bar&lt;/div&gt;&lt;h2&gt;baz&lt;/h2&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foobar&lt;h2&gt;baz&lt;/h2&gt;foo
+Success. &lt;div&gt;bar&lt;/div&gt;&lt;h3&gt;baz&lt;/h3&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foobar&lt;h3&gt;baz&lt;/h3&gt;foo
+Failure. Result was: foofoo, should have been: foobar&lt;h4&gt;baz&lt;/h4&gt;foo
+Success. &lt;div&gt;bar&lt;/div&gt;&lt;h5&gt;baz&lt;/h5&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foobar&lt;h5&gt;baz&lt;/h5&gt;foo
+Success. &lt;div&gt;bar&lt;/div&gt;&lt;h6&gt;baz&lt;/h6&gt; was inserted into &lt;div&gt;foo^foo&lt;div&gt; and the result was:foobar&lt;h6&gt;baz&lt;/h6&gt;foo
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand45805831expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 486: &quot;This tests to make sure that breaking a quoted list doesn't renumber the list. &quot;
+          text run at (485,0) width 296: &quot;You should see a list broken in two below, the&quot;
+          text run at (0,20) width 191: &quot;list items numbered 1, 2, 3, 4.&quot;
+      RenderBlock {DIV} at (0,56) size 784x80
+        RenderBlock {BLOCKQUOTE} at (2,0) size 742x80 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {OL} at (2,0) size 740x80
+            RenderListItem {LI} at (40,0) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;1&quot;
+              RenderText {#text} at (0,0) size 27x19
+                text run at (0,0) width 27: &quot;One&quot;
+            RenderListItem {LI} at (40,20) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;2&quot;
+              RenderText {#text} at (0,0) size 29x19
+                text run at (0,0) width 29: &quot;Two&quot;
+            RenderListItem {LI} at (40,40) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;3&quot;
+              RenderText {#text} at (0,0) size 38x19
+                text run at (0,0) width 38: &quot;Three&quot;
+            RenderListItem {LI} at (40,60) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;4&quot;
+              RenderText {#text} at (0,0) size 31x19
+                text run at (0,0) width 31: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand45805832expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4580583-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 486: &quot;This tests to make sure that breaking a quoted list doesn't renumber the list. &quot;
+          text run at (485,0) width 296: &quot;You should see a list broken in two below, the&quot;
+          text run at (0,20) width 681: &quot;list items numbered 1, 2, 2, 3, 4. Two list items will be numbered '2' because the original item '2' was split.&quot;
+      RenderBlock {DIV} at (0,56) size 784x80
+        RenderBlock {BLOCKQUOTE} at (2,0) size 742x80 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {OL} at (2,0) size 740x80
+            RenderListItem {LI} at (40,0) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;1&quot;
+              RenderText {#text} at (0,0) size 27x19
+                text run at (0,0) width 27: &quot;One&quot;
+            RenderListItem {LI} at (40,20) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;2&quot;
+              RenderText {#text} at (0,0) size 57x19
+                text run at (0,0) width 57: &quot;TwoTwo&quot;
+            RenderListItem {LI} at (40,40) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;3&quot;
+              RenderText {#text} at (0,0) size 38x19
+                text run at (0,0) width 38: &quot;Three&quot;
+            RenderListItem {LI} at (40,60) size 700x20
+              RenderListMarker at (-21,0) size 16x19: &quot;4&quot;
+              RenderText {#text} at (0,0) size 31x19
+                text run at (0,0) width 31: &quot;Four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand46418801expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 773x39
+          text run at (0,0) width 523: &quot;This tests InsertUnorderedList on a selection that ends at the start of a paragraph. &quot;
+          text run at (522,0) width 250: &quot;Since we don't paint the gap before the&quot;
+          text run at (0,20) width 773: &quot;paragraph for most selections like this, we don't perform InsertUnorderedList on the paragraph that the selection ends in.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 218x19
+          text run at (0,0) width 218: &quot;This paragraph should be in a list.&quot;
+        RenderBR {BR} at (217,15) size 1x0
+        RenderText {#text} at (0,20) size 242x19
+          text run at (0,20) width 242: &quot;This paragraph should not be in a list.&quot;
+        RenderBR {BR} at (241,35) size 1x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand46418802expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4641880-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 35 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 774x39
+          text run at (0,0) width 435: &quot;This tests Indent on a selection that ends at the start of a paragraph. &quot;
+          text run at (434,0) width 340: &quot;Since we don't paint the gap before the paragraph for&quot;
+          text run at (0,20) width 594: &quot;most selections like this, we don't perform Indent on the paragraph that the selection ends in.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x20
+          RenderText {#text} at (0,0) size 226x19
+            text run at (0,0) width 226: &quot;This paragraph should be indented.&quot;
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 250x19
+            text run at (0,0) width 250: &quot;This paragraph should not be indented.&quot;
+          RenderBR {BR} at (249,15) size 1x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4747450expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4747450-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4747450-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4747450-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 751x39
+          text run at (0,0) width 294: &quot;This test for a bug in Insert{Un}OrderedList. &quot;
+          text run at (293,0) width 458: &quot;Inside an empty editable region, a new paragraph is added, then a list is&quot;
+          text run at (0,20) width 55: &quot;created. &quot;
+          text run at (54,20) width 130: &quot;The caret should be &quot;
+        RenderInline {B} at (0,0) size 41x19
+          RenderText {#text} at (183,20) size 41x19
+            text run at (183,20) width 41: &quot;inside&quot;
+        RenderText {#text} at (223,20) size 129x19
+          text run at (223,20) width 129: &quot; the empty list item.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand47864041expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests for a bug where performing the Remove Format operation on content would apply the document's style to it, not the editable regions default style.  &quot;foo bar baz&quot; should not be bold, and should be black.
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;div&quot;
+|   style=&quot;font-weight: normal; color: black;&quot;
+|   &quot;foo &quot;
+|   &lt;i&gt;
+|     &quot;bar&quot;
+|   &quot; baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand47864042expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4786404-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests for a bug where performing the Remove Format operation on a selection that started in underlined content would underline everything operated on. &quot;foo bar baz&quot; should not have underline.
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;div&quot;
+|   &lt;u&gt;
+|     &quot;foo&quot;
+|   &quot; bar baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4916235expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916235-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916235-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916235-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a crash when performing InsertOrderedList on an unordered list item. You should see 'foo' and 'bar' each in their own ordered list items.
+
+foo
+bar
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4916402expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916402-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916402-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916402-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 775: &quot;This tests to see that creating an ordered list item from the last list item in an unordered list creates a new list that is not a&quot;
+          text run at (0,20) width 168: &quot;sublist of the original one.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {UL} at (0,0) size 784x40
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+          RenderListItem {LI} at (40,20) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4916541expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916541-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916541-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916541-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x39
+          text run at (0,0) width 387: &quot;This tests selection preservation during an indent operation. &quot;
+          text run at (386,0) width 372: &quot;The selection should start and end in the same parts of the&quot;
+          text run at (0,20) width 369: &quot;words 'foo' and 'bar' before and after the indent operation.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderInline {SPAN} at (0,0) size 22x19
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBR {BR} at (21,15) size 1x0
+        RenderInline {SPAN} at (0,0) size 21x19
+          RenderText {#text} at (0,20) size 21x19
+            text run at (0,20) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4916583expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916583-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916583-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4916583-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a bug when outdenting an indented list item. You should see 'foo' and 'bar' each in their own list item below.
+
+foo
+bar
+&lt;ul&gt;&lt;li&gt;foo&lt;/li&gt;&lt;ul&gt;&lt;li id=&quot;li&quot;&gt;bar&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4920488expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920488-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920488-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920488-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+This tests for a bug in GMail's Editor, they try to extract the contents of a range that has had it's contents removed from the document by an editing command.  Since the bug 43017 requires WebKit does not remove anchor elements, div should be empty after the extraction. We currently leave anchor element in the div due to the Bug 47916.
+
+After removeFormat:
+| &quot;dog&quot;
+| &lt;a&gt;
+|   href=&quot;http://www.google.com/&quot;
+|   &quot;food&quot;
+
+After extractContents():
+| &quot;&quot;
+| &lt;a&gt;
+|   href=&quot;http://www.google.com/&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand49207421expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920742-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920742-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4920742-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests for a bug where RemoveFormat would reverse the order of paragraphs. Bug: the caret is not on the last line but it should be.
+| &lt;b&gt;
+|   &quot;foo&quot;
+| &lt;div&gt;
+|   &lt;br&gt;
+| &lt;div&gt;
+|   &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4924441expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4924441-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4924441-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4924441-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 745x39
+          text run at (0,0) width 637: &quot;This tests for a bug where changing the list type of an indented list would create unwanted nesting. &quot;
+          text run at (636,0) width 109: &quot;You should see a&quot;
+          text run at (0,20) width 270: &quot;single ordered list item in an indented list.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand4928635expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4928635-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4928635-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/4928635-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests for a crash when outdenting an indented paragraph. You should see 'foo' in a single level list item.
+
+foo
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5049671expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5049671-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5049671-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5049671-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+This tests was added for a bug where Remove Format would fail to remove links that were fully selected. However, because the bug 43017 requires WebKit does not remove anchor elements, RemoveFormat should NOT remove anchor elements.
+
+Before RemoveFormat:
+| &lt;a&gt;
+|   href=&quot;http://www.google.com/&quot;
+|   &quot;This shouldn't be a link or underlined.&quot;
+
+After RemoveFormat:
+| &lt;a&gt;
+|   href=&quot;http://www.google.com/&quot;
+|   &quot;This shouldn't be a link or underlined.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5062376expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5062376-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5062376-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5062376-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a bug where centering text would prevent it from being right or left aligned again. The paragraph should be right aligned.
+
+Failure. Expected: &lt;div style=&quot;text-align: right;&quot;&gt;foo&lt;/div&gt;, found: foo
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand50803331expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 773x59
+          text run at (0,0) width 752: &quot;This tests for a bug where changing the alignment of an image would result in a selection that wasn't the one that was&quot;
+          text run at (0,20) width 240: &quot;present before the alignment change. &quot;
+          text run at (239,20) width 534: &quot;The image should be centered and the caret should be the same before and after the&quot;
+          text run at (0,40) width 65: &quot;operation.&quot;
+      RenderBlock {DIV} at (0,76) size 784x143
+        RenderText {#text} at (0,0) size 22x19
+          text run at (0,0) width 22: &quot;foo&quot;
+        RenderBR {BR} at (21,15) size 1x0
+        RenderImage {IMG} at (0,20) size 76x103
+        RenderBR {BR} at (76,123) size 0x0
+        RenderText {#text} at (0,123) size 23x19
+          text run at (0,123) width 23: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand50803332expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5080333-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 775x59
+          text run at (0,0) width 752: &quot;This tests for a bug where changing the alignment of an image would result in a selection that wasn't the one that was&quot;
+          text run at (0,20) width 240: &quot;present before the alignment change. &quot;
+          text run at (239,20) width 536: &quot;The image should be centered and the selection should be the same before and after&quot;
+          text run at (0,40) width 88: &quot;the operation.&quot;
+      RenderBlock {DIV} at (0,76) size 784x143
+        RenderText {#text} at (0,0) size 22x19
+          text run at (0,0) width 22: &quot;foo&quot;
+        RenderBR {BR} at (21,15) size 1x0
+        RenderImage {IMG} at (0,20) size 76x103
+        RenderBR {BR} at (76,123) size 0x0
+        RenderText {#text} at (0,123) size 23x19
+          text run at (0,123) width 23: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5136770expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5136770-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5136770-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5136770-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 383x19
+          text run at (0,0) width 383: &quot;This tests for a hang when performing InsertUnorderedList.&quot;
+      RenderBlock {DIV} at (0,36) size 784x96
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 353x19
+            text run at (0,0) width 353: &quot;There should be two empty unordered list items below.&quot;
+        RenderBlock {DIV} at (0,36) size 784x60
+          RenderBlock {UL} at (0,0) size 784x60
+            RenderListItem {LI} at (40,0) size 744x20
+              RenderListMarker at (-18,0) size 7x19: bullet
+              RenderBR {BR} at (0,0) size 0x19
+            RenderListItem {LI} at (40,20) size 744x20
+              RenderListMarker at (-18,0) size 7x19: bullet
+              RenderBR {BR} at (0,0) size 0x19
+            RenderListItem {LI} at (40,40) size 744x20
+              RenderListMarker at (-18,0) size 7x19: bullet
+              RenderText {#text} at (0,0) size 243x19
+                text run at (0,0) width 243: &quot;This should be an unordered list item.&quot;
+          RenderBlock (anonymous) at (0,76) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5138441expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5138441-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5138441-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5138441-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 763x59
+          text run at (0,0) width 500: &quot;This tests for a bug where indented text would appear quoted in GoogleDocs. &quot;
+          text run at (499,0) width 221: &quot;Google docs uses blockquotes and&quot;
+          text run at (0,20) width 763: &quot;FormatBlock to implement a \&quot;Quote Text\&quot; feature, and style rules for blockquotes appeared on the blockquotes that we&quot;
+          text run at (0,40) width 179: &quot;use to implement indenting.&quot;
+      RenderBlock {DIV} at (0,76) size 784x66
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x20
+          RenderBlock {DIV} at (0,0) size 744x20
+            RenderText {#text} at (0,0) size 234x19
+              text run at (0,0) width 234: &quot;This should be indented, not quoted.&quot;
+        RenderBlock {BLOCKQUOTE} at (8,28) size 768x38 [border: (1px dashed #AAAAAA)]
+          RenderText {#text} at (9,9) size 178x19
+            text run at (9,9) width 178: &quot;This text should be Quoted.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand51420121expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 458: &quot;This tests for a bug when removing links from a selection with Unlink. &quot;
+          text run at (457,0) width 324: &quot;There shouldn't be any links *inside the selection*&quot;
+          text run at (0,20) width 43: &quot;below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x0
+          RenderInline {A} at (0,0) size 0x0 [color=#0000EE]
+        RenderBlock (anonymous) at (0,0) size 784x20 [color=#0000EE]
+          RenderBlock {DIV} at (0,0) size 784x20
+            RenderText {#text} at (0,0) size 24x19
+              text run at (0,0) width 24: &quot;Hel&quot;
+            RenderInline {SPAN} at (0,0) size 13x19
+              RenderText {#text} at (23,0) size 13x19
+                text run at (23,0) width 13: &quot;lo&quot;
+        RenderBlock (anonymous) at (0,20) size 784x0
+          RenderInline {A} at (0,0) size 0x0 [color=#0000EE]
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 16x19
+            RenderText {#text} at (0,0) size 16x19
+              text run at (0,0) width 16: &quot;W&quot;
+          RenderText {#text} at (15,0) size 32x19
+            text run at (15,0) width 32: &quot;orld!&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand51420122expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {UL} at (0,0) size 784x40
+        RenderListItem {LI} at (40,0) size 744x40
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderInline {A} at (0,0) size 721x39 [color=#0000EE]
+            RenderText {#text} at (0,0) size 721x39
+              text run at (0,0) width 345: &quot;This tests for a crash when creating a list from a link. &quot;
+              text run at (344,0) width 373: &quot;This paragraph should be a link and should be inside a list&quot;
+              text run at (716,0) width 5: &quot; &quot;
+              text run at (0,20) width 33: &quot;item.&quot;
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock (anonymous) at (0,56) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand51420123expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5142012-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a bug when inserting after a link at the end of the document. Like TextEdit, we insert content outside of the link, but inserting outside of the link shouldn't cause the content to be inserted in the wrong paragraph.
+
+This paragraph should not contains links.
+This sentence should be a link. 
+&lt;a href=&quot;#&quot;&gt;This sentence should be a link.&lt;/a&gt;&amp;nbsp;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand51441391expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5144139-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5144139-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5144139-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests for a bug when creating a list from a table. The table should be inside a list item.
+
+foo
+&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;foo&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5164796expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5164796-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5164796-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5164796-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests CreateLink for caret selections. A link containing the url text should be inserted.
+
+There should be a link between these two braces: {}
+There should be a link between these two braces: {}
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5190926expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5190926-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5190926-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5190926-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5207369expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5207369-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5207369-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5207369-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests for a crash when trying to switch the list type of an inner list at the end. You shouldn't get a crash. This test used to flatten the list but this behavior was correct to match Firefox and MSIE in the bug 43166.
+
+One
+Two
+Three
+Four
+&lt;ol&gt;&lt;li&gt;One&lt;/li&gt;&lt;li&gt;Two&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Three&lt;/li&gt;&lt;li&gt;Four&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;
+
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand54322541expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5432254-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5432254-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5432254-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a deletion bug. Only the second paragraph inside the table should be deleted. You should see a table with 'foo' in it below.
+
+foo
+bar
+&lt;table id=&quot;table&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td id=&quot;td&quot;&gt;&lt;div&gt;foo&lt;/div&gt;bar&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5481523expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5481523-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5481523-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5481523-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 761x39
+          text run at (0,0) width 416: &quot;This tests for a hang when indenting a fully selected table twice. &quot;
+          text run at (415,0) width 346: &quot;You should see a twice indented table, with four cells,&quot;
+          text run at (0,20) width 43: &quot;below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x56
+        RenderTable {TABLE} at (0,0) size 85x56 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 83x54
+            RenderTableRow {TR} at (0,2) size 83x24
+              RenderTableCell {TD} at (2,2) size 42x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 27x19
+                  text run at (2,2) width 27: &quot;One&quot;
+              RenderTableCell {TD} at (46,2) size 35x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 29x19
+                  text run at (2,2) width 29: &quot;Two&quot;
+            RenderTableRow {TR} at (0,28) size 83x24
+              RenderTableCell {TD} at (2,28) size 42x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 38x19
+                  text run at (2,2) width 38: &quot;Three&quot;
+              RenderTableCell {TD} at (46,28) size 35x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 31x19
+                  text run at (2,2) width 31: &quot;Four&quot;
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5482023expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5482023-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5482023-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5482023-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand55434721expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5543472-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5543472-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5543472-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This tests for a hang when creating a list from a particular selection, of table content that is already in a list item. The table should be in a list, and each table cell should contain a list item.
+
+DOM:
+&lt;ul&gt;&lt;li id=&quot;li&quot;&gt;&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td id=&quot;td&quot;&gt;foo&lt;/td&gt;&lt;td&gt;bar&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt;&lt;/ul&gt;
+
+&lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5569741expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5569741-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5569741-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5569741-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 697x19
+          text run at (0,0) width 697: &quot;This tests for a bug where hitting return inside an empty paragraph in a non-empty list item would remove it.&quot;
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock {UL} at (0,0) size 784x60
+          RenderListItem {LI} at (40,0) size 744x40
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+            RenderBR {BR} at (21,15) size 1x0
+            RenderBR {BR} at (0,20) size 0x19
+          RenderListItem {LI} at (40,40) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5573879expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5573879-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5573879-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5573879-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This tests to make sure that RemoveFormat destroys lists if they are fully selected. However, because the bug 43017 requires WebKit does not destroy lists, &quot;foo&quot; and &quot;bar&quot; should be in a separate list item.
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &quot;foo&quot;
+|   &lt;li&gt;
+|     &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand56856041expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5685604-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5685604-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5685604-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+Success. execCommand(&quot;styleWithCSS&quot;, ...) is supported.
+Failure. Expected: The &lt;b&gt;second&lt;/b&gt; and last words in this sentence should be &lt;span style=&quot;font-weight: bold;&quot;&gt;bold&lt;/span&gt;.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand57004141expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+There should be a single H1 block with a single BR below.
+
+There should be a single H1 block with a single BR above.
+&lt;div&gt;There should be a single H1 block with a single BR below.&lt;/div&gt; &lt;div id=&quot;div&quot;&gt;&lt;br&gt;&lt;/div&gt; &lt;div id=&quot;div&quot;&gt;There should be a single H1 block with a single BR above.&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand57004142expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5700414-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+There should be a H1 with BR block below, followed by a normal empty paragraph.
+
+
+There should be a single empty paragraph above.
+&lt;div&gt;There should be a H1 with BR block below, followed by a normal empty paragraph.&lt;/div&gt; &lt;div id=&quot;div&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt; &lt;div id=&quot;div&quot;&gt;There should be a single empty paragraph above.&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand5763082expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5763082-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5763082-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5763082-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a hang when outdenting an indented list whose last item contains another list. It should not hang.The selection is incorrect here.
+orange
+lemon
+orange
+lemon
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommand57708341expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5770834-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5770834-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/5770834-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests for a crash when removing format from two paragraphs that are inside blocks with different block properties than the blocks surrounding them. You should see two left aligned paragraphs below. It demonstrates a bug: RemoveFormat doesn't always reset text alignment
+
+
+&lt;div style=&quot;text-align: right;&quot;&gt;
+&lt;div style=&quot;text-align: left;&quot;&gt;foo&lt;br&gt;bar&lt;/div&gt;
+&lt;/div&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandaligninspanexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/align-in-span-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/align-in-span-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/align-in-span-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+Line 1. 
+Select all text in this line and use justify command. 
+Line 3.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandargumentscombinationsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/arguments-combinations-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/arguments-combinations-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/arguments-combinations-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+These are tests for testing the how execCommand() works with different combinations of arguments. The &quot;InsertHorizontalRule&quot; command was chosen arbitrarily because it was what I was working on at the time, but the results should be paralleled in the other commands as well.
+
+CONSOLE
+
+FAIL expected output was  should have been &lt;hr&gt;
+FAIL expected output was  should have been &lt;hr&gt;
+FAIL expected output was  should have been &lt;hr id=&quot;foo&quot;&gt;
+FAIL expected output was  should have been &lt;hr id=&quot;foo&quot;&gt;
+FAIL expected output was  should have been &lt;hr&gt;
+FAIL expected output was  should have been &lt;hr&gt;
+FAIL expected output was  should have been &lt;hr&gt;
+FAIL expected output was  should have been &lt;hr id=&quot;0&quot;&gt;
+FAIL expected output was  should have been &lt;hr&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandbackcolorcrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/backcolor-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/backcolor-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/backcolor-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This is a crash test when executing backColor on a node where all of its ancestors have transparent background color. You should see PASS at the end.
+backColor: 
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandboldSelectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/boldSelection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/boldSelection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/boldSelection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests bolding the first 21 letters in the following sentence. Every character (including spaces) before &quot;jumps&quot; must be bolded.
+
+&quot;The quick brown fox jumps over the lazy dog&quot; uses every letter in the english language.
+&quot;The quick brown fox jumps over the lazy dog&quot; uses every letter in the english language.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandbreaknoneditableblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-non-editable-blockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-non-editable-blockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-non-editable-blockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This test ensures WebKit properly inserts newline in quoted contents, which is enclosed by a non-editable blockquote.
+| &lt;blockquote&gt;
+|   type=&quot;cite&quot;
+|   &quot;hello world&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandbreakoutofemptylistitemexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-out-of-empty-list-item-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-out-of-empty-list-item-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/break-out-of-empty-list-item-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+This tests CompositeEditCommand::breakOutOfEmptyListItem by inserting new paragraph
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;a &lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;a &lt;/li&gt;&lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt; &lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;a &lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;a &lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;li&gt;b&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;a &lt;/li&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;/ul&gt; &lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;a &lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;li&gt;b&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;a &lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;li&gt;c&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;a &lt;/li&gt;&lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;c&lt;/li&gt;&lt;/ul&gt; &lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;a &lt;ul&gt;&lt;li&gt;b&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;li&gt;c&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;hello&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;world&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;hello&lt;div&gt;&lt;br&gt;&lt;/div&gt;world&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;hello&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;world&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;hello&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;hello&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;world&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;world&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;world&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;&lt;ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;br id=&quot;target&quot;&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;. Was &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;br id=&quot;target&quot;&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;br id=&quot;target&quot;&gt;&lt;/ul&gt;') should be &lt;div&gt;&lt;br&gt;&lt;/div&gt;. Was &lt;ul&gt;&lt;br id=&quot;target&quot;&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;abc&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;abc&lt;/ul&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;. Was &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;abc&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;/ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;. Was &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;/ul&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;abc&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;abc&lt;/ul&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;ul&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;abc&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;.
+FAIL enterAtTarget('&lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;') should be &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;. Was &lt;ul&gt;&lt;li&gt;1&lt;/li&gt;&lt;li id=&quot;target&quot;&gt;&lt;/li&gt;&lt;li&gt;3&lt;/li&gt;&lt;/ul&gt;.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandbuttonexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/button-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/button-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests ensures contents inside a button element is properly editable.
+You should see &quot;hello, world WebKit&quot; inside the button and &quot;world&quot; should be bolded.
+| &lt;button&gt;
+|   &quot;hello&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandcontenteditablejustifynextparagraphexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/contenteditable-justify-next-paragraph-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/contenteditable-justify-next-paragraph-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/contenteditable-justify-next-paragraph-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+This test is for a bug when selection extends complete line on first paragraph and applying justifyCenter command will be applied to next paragraph also. Only first Paragraph with id &quot;paragraph1&quot; should have attribute style=&quot;text-align: center&quot;
+| &quot;
+    &quot;
+| &lt;p&gt;
+|   id=&quot;paragraph1&quot;
+|   &quot;Paragraph one.&quot;
+| &quot;
+    &quot;
+| &lt;p&gt;
+|   id=&quot;paragraph2&quot;
+|   &quot;Paragraph two.&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandconvertstyleelementstospansexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/convert-style-elements-to-spans-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/convert-style-elements-to-spans-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/convert-style-elements-to-spans-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Test to make sure we do not remove extra styling hidden on html styling elements (b, i, s, etc.) when removing those elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS one bold command converted &lt;b style=&quot;text-decoration: underline&quot;&gt;test&lt;/b&gt; to &lt;span style=&quot;text-decoration: underline&quot;&gt;test&lt;/span&gt;
+PASS one italic command converted &lt;i style=&quot;font-weight: bold&quot;&gt;test&lt;/i&gt; to &lt;span style=&quot;font-weight: bold&quot;&gt;test&lt;/span&gt;
+PASS one bold command converted &lt;b style=&quot;font-weight: bold&quot;&gt;test&lt;/b&gt; to test
+PASS one bold command converted &lt;b foo=&quot;bar&quot;&gt;test&lt;/b&gt; to &lt;span foo=&quot;bar&quot;&gt;test&lt;/span&gt;
+PASS one bold command converted &lt;b style='invalid'&gt;test&lt;/b&gt; to test
+FAIL bold followed by undo converted &lt;b style=&quot;text-decoration: underline&quot;&gt;test&lt;/b&gt; to &lt;span style=&quot;text-decoration: underline&quot;&gt;test&lt;/span&gt;
+FAIL italic followed by undo converted &lt;i style=&quot;font-weight: bold&quot;&gt;test&lt;/i&gt; to &lt;span style=&quot;font-weight: bold&quot;&gt;test&lt;/span&gt;
+PASS bold followed by undo converted &lt;b style=&quot;text-decoration: underline&quot;&gt;test&lt;/b&gt; to &lt;b style=&quot;text-decoration: underline&quot; foo=&quot;bar&quot;&gt;test&lt;/b&gt;
+PASS bold followed by undo converted &lt;b style=&quot;text-decoration: underline&quot;&gt;test&lt;/b&gt; to 
+PASS bold followed by undo converted &lt;b style=&quot;text-decoration: underline&quot;&gt;test&lt;/b&gt; to &lt;span&gt;foobar&lt;/span&gt;
+FAIL bold followed by undo converted &lt;b style=&quot;text-decoration: underline&quot;&gt;test&lt;/b&gt; to &lt;span style=&quot;text-decoration: underline&quot;&gt;foobar&lt;/span&gt;, expected &lt;b style=&quot;text-decoration: underline&quot;&gt;foobar&lt;/b&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandcrashindentinglistitemexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/crash-indenting-list-item-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/crash-indenting-list-item-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/crash-indenting-list-item-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+| &lt;html&gt;
+|   &lt;head&gt;
+|   &lt;body&gt;
+|     &lt;div&gt;
+|       contenteditable=&quot;&quot;
+|       &lt;ul&gt;
+|         &lt;ul&gt;
+|           &lt;li&gt;
+|             id=&quot;foo&quot;
+|             &quot;PASSED&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       &quot;
+window.getSelection().setBaseAndExtent(foo, 0, foo, 0);
+// This test passes if it does not crash.
+document.execCommand('indent', false, null);
+document.getElementById(&quot;foo&quot;).innerText = &quot;PASSED&quot;;
+&quot;
+|     &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandcreatelistwithhrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/create-list-with-hr-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/create-list-with-hr-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/create-list-with-hr-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 526x19
+          text run at (0,0) width 526: &quot;This test pushes a horizontal rule into an unordered list with InsertUnorderedList. &quot;
+        RenderInline {B} at (0,0) size 766x39
+          RenderText {#text} at (525,0) size 766x39
+            text run at (525,0) width 241: &quot;This demonstrates what might be a&quot;
+            text run at (0,20) width 32: &quot;bug:&quot;
+        RenderText {#text} at (31,20) size 433x19
+          text run at (31,20) width 433: &quot; the horizontal rule appears before the list marker in the render tree.&quot;
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderBlock {UL} at (0,0) size 784x30
+          RenderListItem {LI} at (40,0) size 744x30
+            RenderBlock {HR} at (0,0) size 744x2 [border: (1px inset #000000)]
+            RenderBlock (anonymous) at (0,10) size 744x20
+              RenderListMarker at (-18,0) size 7x19: bullet
+        RenderBlock (anonymous) at (0,46) size 784x0
+caret: position 0 of child 0 {HR} of child 0 {LI} of child 0 {UL} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandcreateLinkexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/createLink-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/createLink-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/createLink-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,77 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 95 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 95 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 95 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:range from 10 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 121 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 121 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 121 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 13 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 13 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 234 of #text &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This is a test of execCommand(CreateLink, ...). It tests:
+
+Creating a link from a selection that is completely unlinked.
+Creating a link from a selection that is inside an existing link.
+Creating a link from a selection that is partially linked.
+Creating a link from a selection that contains lists, tables, styled text, and images.
+This paragraph starts unlinked. The entire paragraph should end up being a link to google.com.
+This paragraph starts out as a link to apple.com. The second word in the paragraph should end up being a link to google.com.
+This line starts out with a link in the middle. The second half of this paragraph, starting after the bold 'a' should end up being a link to google.com.
+This editable region contains lists, tables, styled text, and images. The entire region should end up being a link to google.com.
+
+Item 1
+Item 2
+1        2        3
+
+This line contains  an image.
+innerHTML of editable regions after the test:
+
+&lt;a href=&quot;http://www.google.com/&quot;&gt;This paragraph starts unlinked. The entire paragraph should end up being a link to google.com.&lt;/a&gt;
+&lt;a href=&quot;http://www.apple.com/&quot;&gt;This &lt;/a&gt;&lt;a href=&quot;http://www.google.com/&quot;&gt;paragraph &lt;/a&gt;&lt;a href=&quot;http://www.apple.com/&quot;&gt;starts out as a link to apple.com. The second word in the paragraph should end up being a link to google.com.&lt;/a&gt;
+&lt;a href=&quot;http://www.apple.com/&quot;&gt;This &lt;/a&gt;&lt;a href=&quot;http://www.google.com/&quot;&gt;paragraph &lt;/a&gt;&lt;a href=&quot;http://www.apple.com/&quot;&gt;starts out as a link to apple.com. The second word in the paragraph should end up being a link to google.com.&lt;/a&gt;
+&lt;p&gt;This &lt;i&gt;editable region&lt;/i&gt; contains lists, tables, styled text, and images. The entire region should end up being a link to google.com.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Item 1&lt;/li&gt; &lt;li&gt;Item 2&lt;/li&gt; &lt;/ul&gt; &lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;br&gt; This &lt;b&gt;line&lt;/b&gt; contains &lt;img src=&quot;../resources/abe.png&quot;&gt; an image.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddefaultparagraphseparatorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/default-paragraph-separator-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/default-paragraph-separator-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/default-paragraph-separator-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+PASS document.queryCommandEnabled('DefaultParagraphSeparator') is true
+PASS document.queryCommandValue('DefaultParagraphSeparator') is &quot;div&quot;
+document.execCommand('DefaultParagraphSeparator', false, 'p')
+PASS document.queryCommandValue('DefaultParagraphSeparator') is &quot;p&quot;
+document.execCommand('DefaultParagraphSeparator', false, 'br')
+PASS document.queryCommandValue('DefaultParagraphSeparator') is &quot;p&quot;
+document.execCommand('DefaultParagraphSeparator', false, 'invalid')
+PASS document.queryCommandValue('DefaultParagraphSeparator') is &quot;p&quot;
+
+Creating paragraphs in the normal way.
+document.execCommand('InsertText', false, 'a')
+FAIL div.innerHTML should be a. Was .
+document.execCommand('InsertText', false, '\n')
+FAIL div.innerHTML should be a&lt;p&gt;&lt;br&gt;&lt;/p&gt;. Was .
+document.execCommand('InsertText', false, 'b')
+FAIL div.innerHTML should be a&lt;p&gt;b&lt;/p&gt;. Was .
+document.execCommand('InsertText', false, '\n')
+FAIL div.innerHTML should be a&lt;p&gt;b&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;. Was .
+document.execCommand('Delete')
+FAIL div.innerHTML should be a&lt;p&gt;b&lt;/p&gt;. Was .
+document.execCommand('Delete')
+FAIL div.innerHTML should be a&lt;p&gt;&lt;br&gt;&lt;/p&gt;. Was .
+document.execCommand('Delete')
+FAIL div.innerHTML should be a. Was .
+document.execCommand('DefaultParagraphSeparator', false, 'div')
+document.execCommand('InsertParagraph')
+FAIL div.innerHTML should be a&lt;div&gt;&lt;br&gt;&lt;/div&gt;. Was .
+div.innerHTML = ''
+
+Using the previous block as template for the new one.
+document.execCommand('DefaultParagraphSeparator', false, 'p')
+document.execCommand(&quot;InsertHTML&quot;, false, &quot;&lt;pre&gt;a&lt;/pre&gt;&quot;);
+FAIL div.innerHTML should be &lt;pre&gt;a&lt;/pre&gt;. Was .
+document.execCommand('InsertText', false, 'b')
+FAIL div.innerHTML should be &lt;pre&gt;ab&lt;/pre&gt;. Was .
+document.execCommand('InsertText', false, '\n')
+FAIL div.innerHTML should be &lt;pre&gt;ab&lt;/pre&gt;&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;. Was .
+document.execCommand('InsertText', false, 'c')
+FAIL div.innerHTML should be &lt;pre&gt;ab&lt;/pre&gt;&lt;pre&gt;c&lt;/pre&gt;. Was .
+document.execCommand('DefaultParagraphSeparator', false, 'div')
+document.execCommand('InsertText', false, '\n')
+FAIL div.innerHTML should be &lt;pre&gt;ab&lt;/pre&gt;&lt;pre&gt;c&lt;/pre&gt;&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;. Was .
+document.execCommand('Delete')
+document.execCommand('InsertParagraph')
+FAIL div.innerHTML should be &lt;pre&gt;ab&lt;/pre&gt;&lt;pre&gt;c&lt;/pre&gt;&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;. Was .
+
+Breaking out of lists.
+div.innerHTML = ''
+document.execCommand('DefaultParagraphSeparator', false, 'p')
+document.execCommand(&quot;InsertHTML&quot;, false, &quot;&lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;&quot;)
+FAIL div.innerHTML should be &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;. Was .
+document.execCommand('InsertParagraph')
+document.execCommand('InsertParagraph')
+FAIL div.innerHTML should be &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;. Was .
+
+Breaking up nested elements.
+div.innerHTML = ''
+document.execCommand(&quot;InsertHTML&quot;, false, &quot;&lt;cite&gt;a&lt;cite&gt;bc&lt;/cite&gt;&lt;/cite&gt;&quot;)
+window.getSelection().modify(&quot;move&quot;, &quot;backward&quot;, &quot;character&quot;)
+document.execCommand('InsertParagraph')
+FAIL div.innerHTML should be &lt;cite&gt;a&lt;cite&gt;b&lt;/cite&gt;&lt;/cite&gt;&lt;p&gt;&lt;cite&gt;&lt;cite&gt;c&lt;/cite&gt;&lt;/cite&gt;&lt;/p&gt;. Was .
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddeleteimageinanchorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-image-in-anchor-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-image-in-anchor-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-image-in-anchor-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+BEFORE: &lt;a href=&quot;../resources/abe.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;width: 60px; height: 60px;&quot; src=&quot;../resources/abe.png&quot; border=&quot;0&quot;&gt;&lt;/a&gt; &lt;br&gt;
+AFTER: &lt;a href=&quot;../resources/abe.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;width: 60px; height: 60px;&quot; src=&quot;../resources/abe.png&quot; border=&quot;0&quot;&gt;&lt;/a&gt; &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletelineandinserttextinfontinsideblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-line-and-insert-text-in-font-inside-blockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-line-and-insert-text-in-font-inside-blockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-line-and-insert-text-in-font-inside-blockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+This tests deleting a line inside a font element inside a blockquote.
+
+There should be exactly one blockquote and you should see &quot;hello world&quot; below:
+| &quot;
+&quot;
+| &lt;blockquote&gt;
+|   style=&quot;background-color:yellow&quot;
+|   &lt;br&gt;
+|   &lt;font&gt;
+|     style=&quot;color:blue&quot;
+|     &quot; world
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletenoscrollexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-no-scroll-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-no-scroll-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-no-scroll-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+FAILURE
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddeleteselectionhasstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-selection-has-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-selection-has-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-selection-has-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+This tests deleting a selection that has a styling element in it. Should move styling elements to head to prevent style loss.
+
+styling elements have been moved:
+| &quot;
+        &quot;
+| &lt;div&gt;
+|   &quot; hide styling elements in --&gt; &quot;
+| &quot;
+        &quot;
+| &lt;style&gt;
+|   &quot; .text { color:red; } &quot;
+| &quot;
+        &quot;
+| &lt;link&gt;
+|   href=&quot;../editingStyle.css&quot;
+|   rel=&quot;stylesheet&quot;
+|   type=&quot;text/css&quot;
+| &quot;
+        &quot;
+| &lt;div&gt;
+|   class=&quot;text&quot;
+|   &quot; between &quot;
+| &quot;
+    &quot;
+
+styling elements are back to their original place:
+| &quot;
+        &quot;
+| &lt;div&gt;
+|   &quot; hide styling elements in --&gt; &quot;
+| &quot;
+        &quot;
+| &lt;style&gt;
+|   &quot; .text { color:red; } &quot;
+| &quot;
+        &quot;
+| &lt;link&gt;
+|   href=&quot;../editingStyle.css&quot;
+|   rel=&quot;stylesheet&quot;
+|   type=&quot;text/css&quot;
+| &quot;
+        &quot;
+| &lt;div&gt;
+|   class=&quot;text&quot;
+|   &quot; between &quot;
+| &quot;
+    &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletetablewithemptycontentsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-table-with-empty-contents-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-table-with-empty-contents-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/delete-table-with-empty-contents-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+Tests that tables that have empty-rendered cells during deletion are deleted
+correctly.  Empty-rendered cells can be caused by empty cells, cells with
+content that has no height, or cells with editable content such that the
+content is deleted prior to the table's deletion.
+
+FAIL (empty), should contain exactly one LF but was 
+PASS (with empty span)
+FAIL (with editable empty span), should contain exactly one LF but was 
+FAIL (with editable non-empty span), should contain exactly one LF but was Test 4.
+
+FAIL (with nested editable non-empty spans), should contain exactly one LF but was Test 5.
+
+FAIL (with multiple editable non-empty spans), should contain exactly one LF but was Test 6.More test 6.
+
+FAIL (with nested table), should contain exactly one LF but was Test 7.
+
+FAIL (with nested table containing editable non-empty span), should contain exactly one LF but was Test 8.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommanddeletingtextreststypingstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/deleting-text-rests-typing-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/deleting-text-rests-typing-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/deleting-text-rests-typing-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+This tests deleting a bold paragraph, then changing the selection and moving it back to the spot
+where that paragraph was deleted and typing more. The new test should not be bolded.
+| &lt;div&gt;
+|   id=&quot;one&quot;
+|   &lt;br&gt;
+| &lt;div&gt;
+|   id=&quot;two&quot;
+|   &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandemptyspanremovalexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/empty-span-removal-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/empty-span-removal-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/empty-span-removal-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+Test to make sure we remove span tags with no attributes if we removed the last attribute.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS one bold command converted &lt;span&gt;&lt;span style='font-weight: bold'&gt;test&lt;/span&gt;&lt;/span&gt; to &lt;span&gt;test&lt;/span&gt;
+FAIL one bold command converted &lt;span style='font-weight: bold'&gt;&lt;span&gt;test&lt;/span&gt;&lt;/span&gt; to &lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span&gt;test&lt;/span&gt;&lt;/span&gt;, expected test
+FAIL one bold command converted &lt;span style='font-weight: bold'&gt;&lt;span style='font-weight: bold'&gt;test&lt;/span&gt;&lt;/span&gt; to &lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;test&lt;/span&gt;&lt;/span&gt;, expected test
+FAIL one bold command converted &lt;span foo=&quot;bar&quot; style='font-weight: bold'&gt;test&lt;/span&gt; to &lt;span foo=&quot;bar&quot; style=&quot;font-weight: bold&quot;&gt;test&lt;/span&gt;, expected &lt;span foo=&quot;bar&quot;&gt;test&lt;/span&gt;
+PASS two bold commands converted &lt;span&gt;test&lt;/span&gt; to &lt;span&gt;test&lt;/span&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandenablingandselection2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/enabling-and-selection-2-expected.txt ( => )</h4>
<pre class="diff"><span>
<span class="info">Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/enabling-and-selection-expected.txt
===================================================================
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandfindafterreplaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/find-after-replace-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/find-after-replace-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/find-after-replace-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 4 of #text &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 146 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document to 146 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 338: &quot;This tests find and replace inside an editable iframe. &quot;
+          text run at (337,0) width 438: &quot;You should see 'A B A B' below. With bug 4462420, you would see&quot;
+          text run at (0,20) width 67: &quot;'A B B A'.&quot;
+      RenderBlock (anonymous) at (0,56) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 31x19
+                  text run at (0,0) width 31: &quot;A B &quot;
+                RenderInline {SPAN} at (0,0) size 267x99
+                  RenderText {#text} at (30,0) size 267x99
+                    text run at (30,0) width 51: &quot;Test for&quot;
+                    text run at (80,0) width 5: &quot; &quot;
+                    text run at (0,20) width 252: &quot;&lt;http://bugs.webkit.org/show_bug.cgi?&quot;
+                    text run at (0,40) width 199: &quot;id=12801&gt; Assertion failure in&quot;
+                    text run at (198,40) width 5: &quot; &quot;
+                    text run at (0,60) width 263: &quot;createMarkup() (root) when doing Select&quot;
+                    text run at (262,60) width 5: &quot; &quot;
+                    text run at (0,80) width 206: &quot;All, Copy in an SVG document.&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandfindString2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 781: &quot;This tests to see if Find will get stuck when searching for a word that is currently selected, and was selected with a double&quot;
+          text run at (0,20) width 36: &quot;click.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 26x19
+          text run at (0,0) width 26: &quot;foo &quot;
+        RenderInline {SPAN} at (0,0) size 21x19
+          RenderText {#text} at (25,0) size 21x19
+            text run at (25,0) width 21: &quot;bar&quot;
+        RenderText {#text} at (45,0) size 103x19
+          text run at (45,0) width 103: &quot; baz foo bar baz&quot;
+selection start: position 9 of child 2 {#text} of child 2 {DIV} of body
+selection end:   position 12 of child 2 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandfindStringexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/findString-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: &quot;In the block below, the second 'bar ' should be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 52x42 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 46x19
+          text run at (1,1) width 46: &quot;foo bar&quot;
+        RenderInline {SPAN} at (0,0) size 21x19
+          RenderText {#text} at (1,21) size 21x19
+            text run at (1,21) width 21: &quot;bar&quot;
+        RenderText {#text} at (21,21) size 27x19
+          text run at (21,21) width 27: &quot; baz&quot;
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 2 {DIV} of body
+selection end:   position 1 of child 2 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockcontenteditablefalseexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-contenteditable-false-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-contenteditable-false-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-contenteditable-false-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+formatblock on selection with a contenteditable=&quot;false&quot; child.
+| &quot;
+        Will select from here
+        &quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;
+            over this contenteditable=false div
+        &quot;
+| &quot;
+        until here.
+    &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,76 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 11 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 11 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 11 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 11 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 11 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 11 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test uses FormatBlock to modify three of the paragraphs below
+
+Before FormatBlock:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   id=&quot;item1&quot;
+|   &quot;Make Pre&quot;
+| &quot;
+&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;Foo&quot;
+|   &lt;br&gt;
+|   &lt;span&gt;
+|     id=&quot;item2&quot;
+|     &quot;Make h1&quot;
+|   &lt;br&gt;
+|   &quot;baz&quot;
+| &quot;
+&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;address&gt;
+|   id=&quot;item3&quot;
+|   &quot;Attempt to apply the current formatting here&quot;
+| &quot;
+&quot;
+
+After FormatBlock:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   id=&quot;item1&quot;
+|   &quot;Make Pre&quot;
+| &quot;
+&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;Foo&quot;
+|   &lt;br&gt;
+|   &lt;span&gt;
+|     id=&quot;item2&quot;
+|     &quot;Make h1&quot;
+|   &lt;br&gt;
+|   &quot;baz&quot;
+| &quot;
+&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;address&gt;
+|   id=&quot;item3&quot;
+|   &quot;Attempt to apply the current formatting here&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockfromrangeselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-from-range-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-from-range-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-from-range-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+This test uses FormatBlock to apply the dl tag to a range of paragraphs with different block tags.
+
+before FormatBlock:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   id=&quot;start&quot;
+|   &quot;Foo&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;bar&quot;
+|   &lt;br&gt;
+|   &lt;span&gt;
+|     &quot;baz&quot;
+|   &lt;br&gt;
+|   &quot;raz&quot;
+| &quot;
+dar
+&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;address&gt;
+|   id=&quot;end&quot;
+|   &quot;yar&quot;
+| &quot;
+&quot;
+
+after FormatBlock:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   id=&quot;start&quot;
+|   &quot;Foo&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;bar&quot;
+|   &lt;br&gt;
+|   &lt;span&gt;
+|     &quot;baz&quot;
+|   &lt;br&gt;
+|   &quot;raz&quot;
+| &quot;
+dar
+&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;address&gt;
+|   id=&quot;end&quot;
+|   &quot;yar&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockmultipleparagraphsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,226 @@
</span><ins>+This tests ensures formatBlock do not make multiple elements when formatting multiple paragraphs.
+
+Formatting:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+| &lt;div&gt;
+|   &quot;world&quot;
+| &lt;div&gt;
+|   &quot;WebKit&quot;
+| &quot;
+&quot;
+
+by p yields:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+| &lt;div&gt;
+|   &quot;world&quot;
+| &lt;div&gt;
+|   &quot;WebKit&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;hello&quot;
+| &lt;p&gt;
+|   &quot;world&quot;
+| &quot;
+&quot;
+
+by blockquote yields:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;hello&quot;
+| &lt;p&gt;
+|   &quot;world&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+|   &lt;pre&gt;
+|     &quot;world&quot;
+| &quot;
+&quot;
+
+by p yields:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+|   &lt;pre&gt;
+|     &quot;world&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;hello&quot;
+| &lt;div&gt;
+|   &lt;h2&gt;
+|     &quot;world&quot;
+|   &lt;h3&gt;
+|     &quot;WebKit&quot;
+| &quot;
+&quot;
+
+by pre yields:
+| &quot;
+&quot;
+| &lt;h1&gt;
+|   &quot;hello&quot;
+| &lt;div&gt;
+|   &lt;h2&gt;
+|     &quot;world&quot;
+|   &lt;h3&gt;
+|     &quot;WebKit&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+|   &lt;p&gt;
+|     &quot;world&quot;
+|   &quot;webkit&quot;
+| &quot;
+&quot;
+
+by h1 yields:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+|   &lt;p&gt;
+|     &quot;world&quot;
+|   &quot;webkit&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;hello
+world
+webkit
+&quot;
+| &quot;
+&quot;
+
+by blockquote yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;hello
+world
+webkit
+&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;hello
+world
+webkit
+&quot;
+| &quot;
+&quot;
+
+by blockquote yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;hello
+world
+webkit
+&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&lt;#selection-anchor&gt;hello&quot;
+| &lt;p&gt;
+|   &quot;world&lt;#selection-focus&gt;&quot;
+| &lt;p&gt;
+|   &quot;webkit&quot;
+| &quot;
+
+&quot;
+
+by pre yields:
+| &lt;pre&gt;
+|   &quot;
+hello&quot;
+|   &lt;br&gt;
+|   &quot;world&quot;
+| &lt;p&gt;
+|   &quot;webkit&quot;
+| &quot;
+
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+| &lt;div&gt;
+|   &quot;world&quot;
+| &lt;div&gt;
+|   &quot;webkit&quot;
+| &quot;
+&quot;
+
+by pre yields:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;hello&quot;
+| &lt;div&gt;
+|   &quot;world&quot;
+| &lt;div&gt;
+|   &quot;webkit&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &quot;hello&quot;
+|   &lt;li&gt;
+|     &quot;world&quot;
+| &quot;
+&quot;
+
+by blockquote yields:
+| &quot;
+&quot;
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &quot;hello&quot;
+|   &lt;li&gt;
+|     &quot;world&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockmultipleparagraphsinpreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-in-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-in-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-multiple-paragraphs-in-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+This tests ensures formatBlock removes a pre when formatting multiple paragraphs inside the pre.
+
+Formatting all paragraphs by h3 yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;hello
+
+world
+
+webkit
+&quot;
+| &quot;
+&quot;
+
+Undo yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &quot;hello
+
+world
+
+webkit
+&quot;
+| &quot;
+&quot;
+
+Formatting all but the last paragraph by h3 yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &lt;h3&gt;
+|     &quot;hello&quot;
+|     &quot;
+&quot;
+|     &quot;world&quot;
+|     &quot;
+&quot;
+|   &quot;webkit
+&quot;
+| &quot;
+&quot;
+
+Undo yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &lt;h3&gt;
+|     &quot;hello&quot;
+|     &quot;
+&quot;
+|     &quot;world&quot;
+|     &quot;
+&quot;
+|   &quot;webkit
+&quot;
+| &quot;
+&quot;
+
+Formatting all but the first paragraph by h3 yields:
+| &quot;
+&quot;
+| &lt;pre&gt;
+|   &lt;h3&gt;
+|     &quot;hello&quot;
+|     &quot;
+&quot;
+|     &quot;world&quot;
+|     &quot;
+&quot;
+|   &quot;webkit
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblocktableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,119 @@
</span><ins>+
+Formatting:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;hello&quot;
+|       &lt;td&gt;
+|         &quot;world&quot;
+| &quot;
+&quot;
+
+by p yields:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;hello&quot;
+|       &lt;td&gt;
+|         &quot;world&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;&lt;#selection-anchor&gt;hello&lt;#selection-focus&gt;&quot;
+|       &lt;td&gt;
+|         &quot;world&quot;
+| &quot;
+&quot;
+
+by blockquote yields:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;blockquote&gt;
+|           &quot;hello&quot;
+|       &lt;td&gt;
+|         &quot;world&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;p&gt;
+|           &quot;hello&quot;
+|         &lt;div&gt;
+|           &quot;world&quot;
+|       &lt;td&gt;
+|         &quot;WebKit&quot;
+| &quot;
+&quot;
+
+by h3 yields:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;p&gt;
+|           &quot;hello&quot;
+|         &lt;div&gt;
+|           &quot;world&quot;
+|       &lt;td&gt;
+|         &quot;WebKit&quot;
+| &quot;
+&quot;
+
+Formatting:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;ul&gt;
+|           &lt;li&gt;
+|             &quot;hello&quot;
+|           &lt;li&gt;
+|             &quot;world&quot;
+|       &lt;td&gt;
+|         &quot;WebKit&quot;
+| &quot;
+&quot;
+
+by address yields:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;ul&gt;
+|           &lt;li&gt;
+|             &quot;hello&quot;
+|           &lt;li&gt;
+|             &quot;world&quot;
+|       &lt;td&gt;
+|         &quot;WebKit&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblocktypingstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-typing-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-typing-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-typing-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests ensures FormatBlock preserves the typing style.
+
+&quot;world&quot; should be bolded:
+| &quot;hello&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockwithbracesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-braces-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-braces-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-braces-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test uses FormatBlock with html brackets in the tag string passed to execCommand.
+
+Before FormatBlock with &lt;h1&gt;:
+| &quot;
+Format Me
+&quot;
+
+After FormatBlock with &lt;h1&gt;:
+| &quot;
+Format Me
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandformatblockwithtrailingbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-trailing-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-trailing-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/format-block-with-trailing-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x22 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (1,1) size 782x20
+          RenderText {#text} at (0,0) size 25x19
+            text run at (0,0) width 25: &quot;Foo&quot;
+          RenderBR {BR} at (24,15) size 1x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandforwarddeletenoscrollexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/forward-delete-no-scroll-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/forward-delete-no-scroll-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/forward-delete-no-scroll-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Matching other execCommand identifiers, execCommand(&quot;ForwardDelete&quot;) should not scroll the page to make selection visible.
+
+This test only works in WebKit, as other engines do not implement this command.
+
+a
+FAILURE
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandhilitecolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/hilitecolor-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/hilitecolor-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/hilitecolor-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+| &quot;The second word, and only the second word of this sentence should have a red background color.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentblockinlistexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-block-in-list-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-block-in-list-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-block-in-list-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentdivinsidelistexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-div-inside-list-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-div-inside-list-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-div-inside-list-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests indenting a div inside a list item. By indenting &quot;world&quot;, we should be inserting a blockquote around world inside the list item.
+
+a
+hello
+world
+b
+a &lt;ul&gt; &lt;li&gt;hello&lt;div id=&quot;test&quot;&gt; world &lt;/div&gt;&lt;/li&gt; &lt;/ul&gt; b
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentemptyrootexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-root-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-root-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-root-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 299x19
+          text run at (0,0) width 299: &quot;This tests Indent in an empty editable element.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentemptytablecellexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-table-cell-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-table-cell-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-empty-table-cell-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a crash when indenting an empty TD.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentimages2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+This test indents insides a document with exactly two image elements.
+| &lt;div&gt;
+|   contenteditable=&quot;&quot;
+|   &lt;blockquote&gt;
+|     style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|     &lt;img&gt;
+|     &lt;img&gt;
+| &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentimagesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-images-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test indents insides a document with exactly two image elements.
+| &lt;blockquote&gt;
+|   style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|   &lt;img&gt;
+|   &lt;img&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentimgtwiceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-img-twice-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-img-twice-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-img-twice-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Test indenting an image element twice.
+
+Initial state:
+| &lt;img&gt;
+|   src=&quot;../resources/abe.png&quot;
+
+After indenting once:
+| &lt;img&gt;
+|   src=&quot;../resources/abe.png&quot;
+
+After indenting again:
+| &lt;img&gt;
+|   src=&quot;../resources/abe.png&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentlistitemexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-list-item-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-list-item-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-list-item-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 381x19
+          text run at (0,0) width 381: &quot;This test uses the execCommand to Outdent the text below.&quot;
+      RenderBlock (anonymous) at (0,20) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {UL} at (0,0) size 784x60
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 25x19
+              text run at (0,0) width 25: &quot;Foo&quot;
+          RenderListItem {LI} at (40,20) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 24x19
+              text run at (0,0) width 24: &quot;Bar&quot;
+          RenderListItem {LI} at (40,40) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 25x19
+              text run at (0,0) width 25: &quot;Baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedblockquotesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-blockquotes-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-blockquotes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-blockquotes-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests indenting nested blockquotes. By indenting &quot;webkit&quot;&quot;&quot;&quot;, we should be inserting a blockquote between br tag and the end of the inner blockquote.
+
+hello
+world
+webkit
+is great
+&lt;blockquote id=&quot;outer&quot;&gt; hello &lt;blockquote id=&quot;inner&quot;&gt; world&lt;br&gt; webkit &lt;/blockquote&gt; is great &lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedinlines1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-inlines-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-inlines-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-inlines-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests indenting paragraphs that begin with inlines.
+| &lt;blockquote&gt;
+|   style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|   &lt;a&gt;
+|     href=&quot;#&quot;
+|     &quot;Link&quot;
+|   &quot;This should be under same the blockquote as Link&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedlists4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; LI &gt; OL &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; LI &gt; OL &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests indenting &quot;three&quot; and &quot;four&quot;. You should see 1 through 4 in order before numbers &quot;two&quot; through &quot;five&quot;.
+one
+two
+three
+four
+five
+Before: &lt;li&gt;one&lt;/li&gt; &lt;ol&gt;&lt;li&gt;two&lt;/li&gt;&lt;/ol&gt; &lt;li id=&quot;test1&quot;&gt;three&lt;/li&gt; &lt;li id=&quot;test2&quot;&gt;four&lt;/li&gt; &lt;ol&gt;&lt;li&gt;five&lt;/li&gt;&lt;/ol&gt;
+After: &lt;li&gt;one&lt;/li&gt; &lt;ol&gt;&lt;li&gt;two&lt;/li&gt;&lt;li id=&quot;test1&quot;&gt;three&lt;/li&gt;&lt;li id=&quot;test2&quot;&gt;four&lt;/li&gt;&lt;li&gt;five&lt;/li&gt;&lt;/ol&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentnestedlists7expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-7-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-7-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-nested-lists-7-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; LI &gt; OL &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; LI &gt; OL &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests indenting &quot;three&quot; and &quot;four&quot;. You should see 1 before &quot;two&quot;, &quot;three&quot;, and &quot;five&quot; but 2 before &quot;four&quot;. Neither &quot;two&quot; nor &quot;five&quot; should be the part of new nested list since there is text between &quot;two&quot; and &quot;three&quot;, and &quot;five&quot; is unordered.
+one
+two
+aaa
+three
+four
+five
+Before: &lt;li&gt;one&lt;/li&gt; &lt;ol&gt;&lt;li&gt;two&lt;/li&gt;&lt;/ol&gt; aaa &lt;li id=&quot;test3&quot;&gt;three&lt;/li&gt; &lt;li id=&quot;test4&quot;&gt;four&lt;/li&gt; &lt;ul&gt;&lt;li&gt;five&lt;/li&gt;&lt;/ul&gt;
+After: &lt;li&gt;one&lt;/li&gt; &lt;ol&gt;&lt;li&gt;two&lt;/li&gt;&lt;/ol&gt; aaa &lt;ol&gt;&lt;li id=&quot;test3&quot;&gt;three&lt;/li&gt;&lt;li id=&quot;test4&quot;&gt;four&lt;/li&gt;&lt;/ol&gt; &lt;ul&gt;&lt;li&gt;five&lt;/li&gt;&lt;/ul&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentparagraphsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-paragraphs-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-paragraphs-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-paragraphs-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests indenting three paragraphs with different hierarchies.
+Hello  world
+Hello  world
+Hello  world
+
+Before indent: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;Hello &lt;img src=&quot;http://&quot;&gt; world&lt;/span&gt;&lt;/div&gt; &lt;div&gt;Hello &lt;img src=&quot;http://&quot;&gt; world&lt;/div&gt; Hello &lt;img src=&quot;http://&quot;&gt; world &lt;/div&gt;
+After indent: &lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;div id=&quot;test&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;Hello &lt;img src=&quot;http://&quot;&gt; world&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;test&quot;&gt;&lt;div&gt;Hello &lt;img src=&quot;http://&quot;&gt; world&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;test&quot;&gt; Hello &lt;img src=&quot;http://&quot;&gt; world &lt;/div&gt;&lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentpreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,170 @@
</span><ins>+CONSOLE MESSAGE: line 48: Wrong focus offset: 5 instead of 4
+CONSOLE MESSAGE: line 44: Wrong node selected.
+CONSOLE MESSAGE: line 46: Wrong anchor offset: 8 instead of 0
+CONSOLE MESSAGE: line 48: Wrong focus offset: 5 instead of 4
+CONSOLE MESSAGE: line 41: Wrong end node type: [object HTMLBRElement]
+CONSOLE MESSAGE: line 44: Wrong node selected.
+| &lt;html&gt;
+|   &lt;head&gt;
+|   &lt;body&gt;
+|     &lt;p&gt;
+|       &quot;This test tries to indent lines within pre tags.  This test passes if it
+does not crash.&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       contenteditable=&quot;&quot;
+|       &quot;
+&quot;
+|       &lt;blockquote&gt;
+|         style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|         &lt;pre&gt;
+|           id=&quot;pre-basic&quot;
+|           &quot;line one&quot;
+|       &lt;pre&gt;
+|         id=&quot;pre-basic&quot;
+|         &quot;line two
+&quot;
+|       &lt;blockquote&gt;
+|         style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|         &lt;pre&gt;
+|           &quot;line three&quot;
+|         &lt;pre&gt;
+|           &quot;line four&quot;
+|       &quot;
+
+&quot;
+|       &lt;ul&gt;
+|         &lt;li&gt;
+|           &lt;pre&gt;
+|             id=&quot;pre-list&quot;
+|             &quot;list one
+&quot;
+|             &lt;blockquote&gt;
+|               style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|               &quot;list two&quot;
+|               &lt;br&gt;
+|               &quot;list three&quot;
+|             &quot;list four
+&quot;
+|       &quot;
+
+&quot;
+|       &lt;table&gt;
+|         &quot;
+&quot;
+|         &lt;tbody&gt;
+|           &lt;tr&gt;
+|             &lt;td&gt;
+|               &lt;pre&gt;
+|                 id=&quot;pre-table&quot;
+|                 &quot;table one&lt;#selection-anchor&gt;
+&quot;
+|               &lt;blockquote&gt;
+|                 style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;
+|                 &lt;pre&gt;
+|                   &quot;table two&quot;
+|                 &lt;pre&gt;
+|                   &quot;table three&lt;#selection-focus&gt;&quot;
+|             &lt;td&gt;
+|               &quot;right cell&quot;
+|       &quot;
+
+&quot;
+|       &lt;div&gt;
+|         id=&quot;results&quot;
+|         &quot;PASSED (did not crash)&quot;
+|       &quot;
+&quot;
+|     &quot;
+
+&quot;
+|     &lt;a&gt;
+|       href=&quot;javascript:document.execCommand('indent')&quot;
+|       &quot;indent&quot;
+|     &quot;
+&quot;
+|     &lt;a&gt;
+|       href=&quot;javascript:document.execCommand('outdent')&quot;
+|       &quot;outdent&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../editing.js&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       &quot;
+function setSelection(node)
+{
+    var textNode = node.firstChild;
+    if (textNode.nodeType != Node.TEXT_NODE)
+        throw &quot;Wrong node type: &quot; + textNode;
+    execSetSelectionCommand(textNode, 0, 0);
+}
+
+function verifyTextSelection(startNode, startOffset, endNode, endOffset)
+{
+    if (startNode.nodeType != Node.TEXT_NODE)
+        console.log(&quot;Wrong start node type: &quot; + startNode);
+    if (endNode.nodeType != Node.TEXT_NODE)
+        console.log(&quot;Wrong end node type: &quot; + endNode);
+    var sel = window.getSelection();
+    if (sel.anchorNode != startNode || sel.focusNode != endNode)
+        console.log(&quot;Wrong node selected.&quot;);
+    if (sel.anchorOffset != startOffset)
+        console.log(&quot;Wrong anchor offset: &quot; + sel.anchorOffset + &quot; instead of &quot; + startOffset);
+    if (sel.focusOffset != endOffset)
+        console.log(&quot;Wrong focus offset: &quot; + sel.focusOffset + &quot; instead of &quot; + endOffset);
+}
+
+// Indent a single line in a pre and make sure the selection is correctly preserved.
+var pre = document.getElementById(&quot;pre-basic&quot;);
+setSelection(pre);
+execMoveSelectionForwardByCharacterCommand();
+execExtendSelectionForwardByWordCommand();
+document.execCommand(&quot;indent&quot;);
+verifyTextSelection(document.getElementsByTagName(&quot;pre&quot;)[0].firstChild, 1,
+                    document.getElementsByTagName(&quot;pre&quot;)[0].firstChild, 4);
+
+// Indent 2 lines.
+setSelection(pre);
+execMoveSelectionForwardByLineCommand();
+execExtendSelectionForwardByLineCommand();
+execExtendSelectionForwardByWordCommand();
+document.execCommand(&quot;indent&quot;);
+if (document.getElementsByTagName(&quot;pre&quot;).length &gt; 3) {
+    // FIXME: The selection for the anchorNode is wrong.  It should stay at
+    // the beginning of &quot;line three&quot;, but it moves to the end of &quot;line 2&quot;.
+    verifyTextSelection(document.getElementsByTagName(&quot;pre&quot;)[2].firstChild, 0,
+                        document.getElementsByTagName(&quot;pre&quot;)[3].firstChild, 4);
+} else {
+    console.log(&quot;Wrong number of pre nodes.&quot;);
+}
+
+// Indent &lt;pre&gt; lines in a list.
+pre = document.getElementById(&quot;pre-list&quot;);
+setSelection(pre);
+execMoveSelectionForwardByLineCommand();
+execExtendSelectionForwardByLineCommand();
+execExtendSelectionForwardByLineCommand();
+document.execCommand(&quot;indent&quot;);
+verifyTextSelection(document.getElementsByTagName(&quot;blockquote&quot;)[2].firstChild, 0,
+                    document.getElementsByTagName(&quot;blockquote&quot;)[2].firstChild.nextSibling, 10);
+// Indenting &lt;pre&gt; lines in a table.
+pre = document.getElementById(&quot;pre-table&quot;);
+setSelection(pre);
+execMoveSelectionForwardByLineCommand();
+execExtendSelectionForwardByLineCommand();
+execExtendSelectionForwardByLineCommand();
+// FIXME: This is wrong.  The pre tags get copied when they shouldn't be. 
+// See https://bugs.webkit.org/show_bug.cgi?id=42009
+document.execCommand(&quot;indent&quot;);
+document.getElementById(&quot;results&quot;).innerText = &quot;PASSED (did not crash)&quot;;
+&quot;
+|     &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandindentselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/indent-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 10 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 369x19
+          text run at (0,0) width 369: &quot;This test uses the execCommand to indent the text below.&quot;
+      RenderBlock (anonymous) at (0,20) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+      RenderBlock {DIV} at (0,40) size 784x212
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x60
+          RenderBlock (anonymous) at (0,0) size 744x40
+            RenderInline {SPAN} at (0,0) size 43x19
+              RenderText {#text} at (0,0) size 43x19
+                text run at (0,0) width 43: &quot;Lorem&quot;
+              RenderBR {BR} at (42,15) size 1x0
+            RenderText {#text} at (0,20) size 85x19
+              text run at (0,20) width 85: &quot;more Lorem!&quot;
+          RenderBlock {BLOCKQUOTE} at (40,40) size 704x20
+            RenderText {#text} at (0,0) size 40x19
+              text run at (0,0) width 40: &quot;ipsum&quot;
+        RenderBlock (anonymous) at (0,60) size 784x0
+        RenderBlock {BLOCKQUOTE} at (40,76) size 744x60
+          RenderBlock {UL} at (0,0) size 744x60
+            RenderBlock {UL} at (40,0) size 704x60
+              RenderListItem {LI} at (40,0) size 664x20
+                RenderListMarker at (-18,0) size 7x19: white bullet
+                RenderText {#text} at (0,0) size 25x19
+                  text run at (0,0) width 25: &quot;Foo&quot;
+              RenderListItem {LI} at (40,20) size 664x20
+                RenderListMarker at (-18,0) size 7x19: white bullet
+                RenderText {#text} at (0,0) size 24x19
+                  text run at (0,0) width 24: &quot;Bar&quot;
+              RenderListItem {LI} at (40,40) size 664x20
+                RenderListMarker at (-18,0) size 7x19: white bullet
+                RenderText {#text} at (0,0) size 25x19
+                  text run at (0,0) width 25: &quot;Baz&quot;
+        RenderBlock {BLOCKQUOTE} at (40,152) size 744x60
+          RenderBlock {BLOCKQUOTE} at (40,0) size 704x20
+            RenderText {#text} at (0,0) size 38x19
+              text run at (0,0) width 38: &quot;Dolor&quot;
+          RenderBlock (anonymous) at (0,20) size 744x40
+            RenderText {#text} at (0,0) size 35x19
+              text run at (0,0) width 35: &quot;Sum!&quot;
+            RenderBR {BR} at (34,15) size 1x0
+            RenderInline {SPAN} at (0,0) size 39x19
+              RenderText {#text} at (0,20) size 39x19
+                text run at (0,20) width 39: &quot;Thing&quot;
+        RenderBlock (anonymous) at (0,212) size 784x0
+selection start: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {BLOCKQUOTE} of child 4 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 3 {SPAN} of child 3 {BLOCKQUOTE} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertlinebreaknoscrollexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-line-break-no-scroll-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-line-break-no-scroll-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-line-break-no-scroll-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+Matching other execCommand identifiers, execCommand(&quot;InsertLineBreak&quot;) should not scroll the page to make selection visible.
+
+This test only works in WebKit, as other engines do not implement this command.
+
+
+a
+FAILURE
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertlistandstitchexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-and-stitch-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-and-stitch-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-and-stitch-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of LI &gt; OL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; OL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of LI &gt; OL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; OL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of LI &gt; OL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; OL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 626x19
+          text run at (0,0) width 626: &quot;The three items below should be stitched together into one ordered list when you click the button.&quot;
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x60
+          RenderBlock {OL} at (0,0) size 784x60
+            RenderListItem {LI} at (40,0) size 744x20
+              RenderListMarker at (-21,0) size 16x19: &quot;1&quot;
+              RenderText {#text} at (0,0) size 22x19
+                text run at (0,0) width 22: &quot;foo&quot;
+            RenderListItem {LI} at (40,20) size 744x20
+              RenderListMarker at (-21,0) size 16x19: &quot;2&quot;
+              RenderText {#text} at (0,0) size 21x19
+                text run at (0,0) width 21: &quot;bar&quot;
+            RenderListItem {LI} at (40,40) size 744x20
+              RenderListMarker at (-21,0) size 16x19: &quot;3&quot;
+              RenderText {#text} at (0,0) size 23x19
+                text run at (0,0) width 23: &quot;baz&quot;
+          RenderBlock (anonymous) at (0,76) size 784x0
+caret: position 0 of child 0 {#text} of child 2 {LI} of child 0 {OL} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertlistwithnoneditablecontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-with-noneditable-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-with-noneditable-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insert-list-with-noneditable-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+This tests list creation in an editable context but across non-editable content. Editable content should be pulled into the list and not crash.
+| &quot;
+  Editable paragraph containing a &quot;
+| &lt;span&gt;
+|   contenteditable=&quot;false&quot;
+|   style=&quot;background-color: LightGray;&quot;
+|   &quot;non-editable&quot;
+| &quot; in the middle&quot;
+| &lt;br&gt;
+| &quot;
+  Another editable paragraph.
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertHTMLexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHTML-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHTML-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHTML-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This is a test of execCommand(insertHTML, ...). The contents of the editable div below should be the same before and after the test.
+
+hello 1        2 world!
+hello&lt;table style=&quot;display:inline&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;world&lt;/b&gt;!
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertHorizontalRuleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHorizontalRule-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHorizontalRule-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertHorizontalRule-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 367x19
+          text run at (0,0) width 367: &quot;These are tests for execCommand(InsertHorizontalRule).&quot;
+      RenderBlock {P} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 287x19
+          text run at (0,0) width 287: &quot;This test inserts an hr between 'foo' and 'bar'.&quot;
+      RenderBlock {DIV} at (0,72) size 784x58
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {HR} at (0,28) size 784x2 [border: (1px inset #000000)]
+        RenderBlock (anonymous) at (0,38) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
+      RenderBlock {P} at (0,146) size 784x20
+        RenderText {#text} at (0,0) size 646x19
+          text run at (0,0) width 646: &quot;This test inserts an hr with id=\&quot;hr\&quot; between 'foo' and 'bar', fetches the hr using its id, then removes it.&quot;
+      RenderBlock {DIV} at (0,182) size 784x20
+        RenderText {#text} at (0,0) size 22x19
+          text run at (0,0) width 22: &quot;foo&quot;
+        RenderText {#text} at (21,0) size 21x19
+          text run at (21,0) width 21: &quot;bar&quot;
+caret: position 2 of child 8 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandinsertImageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertImage-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertImage-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/insertImage-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 764x39
+          text run at (0,0) width 313: &quot;This is a test of execCommand(InsertImage, ...). &quot;
+          text run at (312,0) width 452: &quot;The first test passes execCommand a path to a valid image, the second&quot;
+          text run at (0,20) width 375: &quot;passes execCommand a path where no image should exist.&quot;
+      RenderBlock {DIV} at (0,56) size 784x103
+        RenderImage {IMG} at (0,0) size 76x103
+        RenderImage {IMG} at (76,83) size 20x20
+      RenderBlock {UL} at (0,175) size 784x0
+caret: position 1 of child 1 {IMG} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandnsresponderindentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-indent-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-indent-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-indent-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 541x19
+          text run at (0,0) width 286: &quot;This tests the NSResponder method indent:. &quot;
+          text run at (285,0) width 256: &quot;You should see an indented 'foo' below.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {BLOCKQUOTE} at (40,0) size 744x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock (anonymous) at (0,20) size 784x0
+caret: position 0 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandnsresponderoutdentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-outdent-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-outdent-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/nsresponder-outdent-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 460x19
+          text run at (0,0) width 201: &quot;This tests the outdent: method. &quot;
+          text run at (200,0) width 260: &quot;You should see an undented 'foo' below.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 22x19
+          text run at (0,0) width 22: &quot;foo&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandoutdentnestedlists4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/outdent-nested-lists-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/outdent-nested-lists-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/outdent-nested-lists-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of OL &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests outdenting ordered lists that contains an unordered-list. You should see 1 through 3 before numbers &quot;two&quot; through &quot;four&quot;.
+one
+two
+three
+four
+Before: &lt;ol&gt;&lt;li&gt;one&lt;/li&gt; &lt;li id=&quot;start&quot;&gt;two&lt;/li&gt;&lt;/ol&gt; &lt;ul&gt;&lt;li&gt;three&lt;/li&gt;&lt;/ul&gt; &lt;ol&gt;&lt;li id=&quot;end&quot;&gt;four&lt;/li&gt;&lt;/ol&gt;
+After: &lt;ol&gt;&lt;li&gt;one&lt;/li&gt; &lt;/ol&gt;&lt;li&gt;two&lt;/li&gt; &lt;li&gt;three&lt;/li&gt; &lt;li&gt;four&lt;/li&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandpaste1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/paste-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/paste-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/paste-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 519x19
+          text run at (0,0) width 292: &quot;This tests cut/paste inside an editable iframe. &quot;
+          text run at (291,0) width 228: &quot;You should see 'foo bar baz' below.&quot;
+      RenderBlock (anonymous) at (0,36) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 72x19
+                  text run at (0,0) width 72: &quot;foo bar baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandprintexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/print-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/print-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/print-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x376 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x60
+          RenderInline {SPAN} at (0,0) size 756x58
+            RenderText {#text} at (0,1) size 756x58
+              text run at (0,1) width 756: &quot;\&quot;The quick brown fox jumps over the lazy dog\&quot; uses every letter in the english&quot;
+              text run at (755,1) width 1: &quot; &quot;
+              text run at (0,31) width 93: &quot;language.&quot;
+        RenderBlock (anonymous) at (14,98) size 756x240
+          RenderBlock {P} at (0,0) size 756x240
+            RenderText {#text} at (0,1) size 753x238
+              text run at (0,1) width 458: &quot;Here's to the crazy ones, the misfits, the rebels, &quot;
+              text run at (457,1) width 192: &quot;the trouble makers, &quot;
+              text run at (648,1) width 92: &quot;the round&quot;
+              text run at (739,1) width 7: &quot; &quot;
+              text run at (0,31) width 242: &quot;pegs in the square holes, &quot;
+              text run at (241,31) width 348: &quot;the ones who see things differently. &quot;
+              text run at (588,31) width 144: &quot;There not fond&quot;
+              text run at (731,31) width 7: &quot; &quot;
+              text run at (0,61) width 506: &quot;of rules, and they have no respect for the status quo, &quot;
+              text run at (505,61) width 189: &quot;you can quote then,&quot;
+              text run at (0,91) width 195: &quot;disagree with them, &quot;
+              text run at (194,91) width 216: &quot;glorify or vilify them, &quot;
+              text run at (409,91) width 338: &quot;about the only thing you can't do is&quot;
+              text run at (746,91) width 7: &quot; &quot;
+              text run at (0,121) width 128: &quot;ignore them. &quot;
+              text run at (127,121) width 279: &quot;Because they change things. &quot;
+              text run at (405,121) width 342: &quot;They push the human race forward.&quot;
+              text run at (0,151) width 477: &quot;And while some may see them as the crazy ones, &quot;
+              text run at (476,151) width 146: &quot;we see genius. &quot;
+              text run at (621,151) width 117: &quot;Because the&quot;
+              text run at (737,151) width 7: &quot; &quot;
+              text run at (0,181) width 626: &quot;people who are crazy enough to think they can change the world &quot;
+              text run at (625,181) width 115: &quot;are the ones&quot;
+              text run at (739,181) width 7: &quot; &quot;
+              text run at (0,211) width 78: &quot;who do.&quot;
+        RenderBlock (anonymous) at (14,362) size 756x0
+          RenderInline {SPAN} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandquerycommandstateexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/query-command-state-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/query-command-state-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/query-command-state-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,122 @@
</span><ins>+Test to make sure queryCommandState returns correct values.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Tests for win
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;&lt;i&gt;hello&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;hello &lt;b&gt;world&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt; world&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting second word of &quot;hello &lt;b&gt;world&lt;/b&gt; WebKit&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting second word of &quot;&lt;b&gt;hello&lt;/b&gt; world &lt;b&gt;WebKit&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting second word of &quot;&lt;i&gt;hello &lt;b&gt;hello&lt;/b&gt; WebKit&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting second word of &quot;&lt;b&gt;hello &lt;i&gt;hello&lt;/i&gt; WebKit&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting second word of &quot;&lt;b&gt;&lt;div&gt;hello &lt;i&gt;hello&lt;/i&gt; WebKit&lt;/div&gt;&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;&lt;b style=&quot;font-weight: normal;&quot;&gt;hello&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;i style=&quot;font-weight: bold;&quot;&gt;hello&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt; world &lt;b&gt;WebKit&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt;&lt;b&gt; world&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;div&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt; WebKit&lt;/b&gt;&lt;/p&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns true when selecting all of &quot;&lt;i&gt;hello&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;&lt;i&gt;hello&lt;/i&gt; world&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;hello &lt;i&gt;world&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns true when selecting all of &quot;&lt;i&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;&lt;div style=&quot;font-style: italic&quot;&gt;hello &lt;span style=&quot;font-style: normal;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;&lt;sup&gt;hello&lt;/sup&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns true when selecting all of &quot;&lt;sub&gt;hello&lt;/sub&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;&lt;sub&gt;hello&lt;/sub&gt; world&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;hello &lt;sub&gt;world&lt;/sub&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting second word of &quot;hello &lt;span style=&quot;vertical-align: sub;&quot;&gt;world&lt;/span&gt; WebKit&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;&lt;sub&gt;hello&lt;/sub&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns true when selecting all of &quot;&lt;sup&gt;hello&lt;/sup&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;&lt;sup&gt;hello&lt;/sup&gt; world&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;hello &lt;sup&gt;world&lt;/sup&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;&lt;span style=&quot;vertical-align: super;&quot;&gt;hello&lt;/span&gt;&lt;span style=&quot;vertical-align: sub;&quot;&gt;world&lt;/span&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;hello&lt;span style=&quot;vertical-align: super;&quot;&gt;world&lt;/span&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;&lt;s&gt;hello&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting all of &quot;&lt;u&gt;hello&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;&lt;u&gt;hello&lt;/u&gt; world&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;hello &lt;u&gt;world&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting all of &quot;&lt;u&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting second word of &quot;&lt;u&gt;&lt;s&gt;&lt;div&gt;hello world WebKit&lt;/div&gt;&lt;/s&gt;&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting second word of &quot;&lt;s&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/s&gt; WebKit&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting second word of &quot;&lt;u&gt;&lt;s&gt;hello&lt;/s&gt; world&lt;/u&gt; WebKit&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting second word of &quot;&lt;s&gt;hello &lt;u&gt;world&lt;/s&gt; WebKit&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;&lt;u&gt;hello&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting all of &quot;&lt;s&gt;hello&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;&lt;s&gt;hello&lt;/s&gt; world&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;hello &lt;s&gt;world&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting all of &quot;&lt;s&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting second word of &quot;&lt;s&gt;&lt;u&gt;&lt;div&gt;hello world WebKit&lt;/div&gt;&lt;/u&gt;&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting second word of &quot;&lt;u&gt;&lt;s&gt;hello&lt;/s&gt; world&lt;/u&gt; WebKit&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting second word of &quot;hello &lt;s&gt;world WebKit&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting first two words of &quot;hello &lt;s&gt;world WebKit&lt;/s&gt;&quot;
+
+Tests for mac
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;&lt;i&gt;hello&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;hello &lt;b&gt;world&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt; world&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting second word of &quot;hello &lt;b&gt;world&lt;/b&gt; WebKit&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting second word of &quot;&lt;b&gt;hello&lt;/b&gt; world &lt;b&gt;WebKit&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting second word of &quot;&lt;i&gt;hello &lt;b&gt;hello&lt;/b&gt; WebKit&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting second word of &quot;&lt;b&gt;hello &lt;i&gt;hello&lt;/i&gt; WebKit&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting second word of &quot;&lt;b&gt;&lt;div&gt;hello &lt;i&gt;hello&lt;/i&gt; WebKit&lt;/div&gt;&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns false when selecting all of &quot;&lt;b style=&quot;font-weight: normal;&quot;&gt;hello&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;i style=&quot;font-weight: bold;&quot;&gt;hello&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt; world &lt;b&gt;WebKit&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt;&lt;b&gt; world&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;bold&quot;) returns true when selecting all of &quot;&lt;div&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt; WebKit&lt;/b&gt;&lt;/p&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;&lt;b&gt;hello&lt;/b&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns true when selecting all of &quot;&lt;i&gt;hello&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns true when selecting all of &quot;&lt;i&gt;hello&lt;/i&gt; world&quot;
+PASS queryCommandState(&quot;italic&quot;) returns false when selecting all of &quot;hello &lt;i&gt;world&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns true when selecting all of &quot;&lt;i&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/i&gt;&quot;
+PASS queryCommandState(&quot;italic&quot;) returns true when selecting all of &quot;&lt;div style=&quot;font-style: italic&quot;&gt;hello &lt;span style=&quot;font-style: normal;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;&lt;sup&gt;hello&lt;/sup&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns true when selecting all of &quot;&lt;sub&gt;hello&lt;/sub&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns true when selecting all of &quot;&lt;sub&gt;hello&lt;/sub&gt; world&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns false when selecting all of &quot;hello &lt;sub&gt;world&lt;/sub&gt;&quot;
+PASS queryCommandState(&quot;subscript&quot;) returns true when selecting second word of &quot;hello &lt;span style=&quot;vertical-align: sub;&quot;&gt;world&lt;/span&gt; WebKit&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;&lt;sub&gt;hello&lt;/sub&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns true when selecting all of &quot;&lt;sup&gt;hello&lt;/sup&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns true when selecting all of &quot;&lt;sup&gt;hello&lt;/sup&gt; world&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;hello &lt;sup&gt;world&lt;/sup&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns true when selecting all of &quot;&lt;span style=&quot;vertical-align: super;&quot;&gt;hello&lt;/span&gt;&lt;span style=&quot;vertical-align: sub;&quot;&gt;world&lt;/span&gt;&quot;
+PASS queryCommandState(&quot;superscript&quot;) returns false when selecting all of &quot;hello&lt;span style=&quot;vertical-align: super;&quot;&gt;world&lt;/span&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;&lt;s&gt;hello&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting all of &quot;&lt;u&gt;hello&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting all of &quot;&lt;u&gt;hello&lt;/u&gt; world&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting all of &quot;hello &lt;u&gt;world&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting all of &quot;&lt;u&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting second word of &quot;&lt;u&gt;&lt;s&gt;&lt;div&gt;hello world WebKit&lt;/div&gt;&lt;/s&gt;&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;underline&quot;) returns false when selecting second word of &quot;&lt;s&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/s&gt; WebKit&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting second word of &quot;&lt;u&gt;&lt;s&gt;hello&lt;/s&gt; world&lt;/u&gt; WebKit&quot;
+PASS queryCommandState(&quot;underline&quot;) returns true when selecting second word of &quot;&lt;s&gt;hello &lt;u&gt;world&lt;/s&gt; WebKit&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;hello&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;&lt;u&gt;hello&lt;/u&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting all of &quot;&lt;s&gt;hello&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting all of &quot;&lt;s&gt;hello&lt;/s&gt; world&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting all of &quot;hello &lt;s&gt;world&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting all of &quot;&lt;s&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting second word of &quot;&lt;s&gt;&lt;u&gt;&lt;div&gt;hello world WebKit&lt;/div&gt;&lt;/u&gt;&lt;/s&gt;&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns false when selecting second word of &quot;&lt;u&gt;&lt;s&gt;hello&lt;/s&gt; world&lt;/u&gt; WebKit&quot;
+PASS queryCommandState(&quot;strikeThrough&quot;) returns true when selecting second word of &quot;hello &lt;s&gt;world WebKit&lt;/s&gt;&quot;
+FAIL queryCommandState(&quot;strikeThrough&quot;) returns true when selecting first two words of &quot;hello &lt;s&gt;world WebKit&lt;/s&gt;&quot;, expected false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+hello world WebKit
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformatmultipleelementsmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+This tests removing multiple elements by RemoveFormat command.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS RemoveFormat on all of &quot;hello&quot; yields &quot;hello&quot;
+PASS RemoveFormat on all of &quot;&lt;i&gt;hello&lt;/i&gt; &lt;u&gt;world&lt;/u&gt;&quot; yields &quot;hello world&quot;
+PASS RemoveFormat on all of &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;em&gt;WebKit&lt;/em&gt;&lt;/a&gt;&quot; yields &quot;hello world &lt;a href=&quot;http://webkit.org/&quot;&gt;WebKit&lt;/a&gt;&quot;
+PASS RemoveFormat on second word of &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;em&gt;WebKit&lt;/em&gt;&lt;/a&gt;&quot; yields &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; &lt;/b&gt;world &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;em&gt;WebKit&lt;/em&gt;&lt;/a&gt;&quot;
+FAIL RemoveFormat on second word of &quot;&lt;sub&gt;&lt;tt&gt;hello world WebKit&lt;/tt&gt;&lt;/sub&gt;&quot; yields &quot;&lt;sub&gt;&lt;tt&gt;hello &lt;/tt&gt;&lt;/sub&gt;world &lt;sub&gt;&lt;tt&gt;WebKit&lt;/tt&gt;&lt;/sub&gt;&quot;, expected &quot;&lt;sub&gt;&lt;tt&gt;hello &lt;/tt&gt;&lt;/sub&gt;world&lt;sub&gt;&lt;tt&gt; WebKit&lt;/tt&gt;&lt;/sub&gt;&quot;
+FAIL RemoveFormat on second word of &quot;&lt;q&gt;&lt;ins&gt;&lt;var&gt;hello wor&lt;/var&gt;ld&lt;/ins&gt; WebKit&lt;/q&gt;&quot; yields &quot;&lt;q&gt;&lt;ins&gt;&lt;var&gt;hello &lt;/var&gt;&lt;/ins&gt;&lt;/q&gt;world &lt;q&gt;WebKit&lt;/q&gt;&quot;, expected &quot;&lt;q&gt;&lt;ins&gt;&lt;var&gt;hello &lt;/var&gt;&lt;/ins&gt;&lt;/q&gt;world&lt;q&gt; WebKit&lt;/q&gt;&quot;
+PASS RemoveFormat on last word of &quot;&lt;b&gt;hello &lt;dfn&gt;world &lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot; yields &quot;&lt;b&gt;hello &lt;dfn&gt;world &lt;/dfn&gt;&lt;/b&gt;WebKit&quot;
+FAIL RemoveFormat on second word of &quot;&lt;b&gt;hello &lt;dfn&gt;world &lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot; yields &quot;&lt;b&gt;hello &lt;/b&gt;world &lt;b&gt;&lt;dfn&gt;&lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot;, expected &quot;&lt;b&gt;hello &lt;/b&gt;world&lt;b&gt;&lt;dfn&gt; &lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot;
+FAIL RemoveFormat on first two words of &quot;&lt;code&gt;hello &lt;strong&gt;world WebKit&lt;/storng&gt;&lt;/code&gt;&quot; yields &quot;hello world &lt;code&gt;&lt;strong&gt;WebKit&lt;/strong&gt;&lt;/code&gt;&quot;, expected &quot;hello world&lt;code&gt;&lt;strong&gt; WebKit&lt;/strong&gt;&lt;/code&gt;&quot;
+FAIL RemoveFormat on first two words of &quot;&lt;acronym&gt;&lt;tt&gt;&lt;mark&gt;&lt;samp&gt;hello&lt;/samp&gt;&lt;/mark&gt; world &lt;sub&gt;WebKit&lt;/sub&gt;&lt;/tt&gt;&lt;/acronym&gt;&quot; yields &quot;&lt;mark&gt;hello&lt;/mark&gt; world &lt;acronym&gt;&lt;tt&gt;&lt;sub&gt;WebKit&lt;/sub&gt;&lt;/tt&gt;&lt;/acronym&gt;&quot;, expected &quot;&lt;mark&gt;hello&lt;/mark&gt; world&lt;acronym&gt;&lt;tt&gt; &lt;sub&gt;WebKit&lt;/sub&gt;&lt;/tt&gt;&lt;/acronym&gt;&quot;
+FAIL RemoveFormat on last two words of &quot;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;&lt;div&gt;WebKit&lt;/div&gt;&quot; yields &quot;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;&lt;div&gt;WebKit&lt;/div&gt;&quot;, expected &quot;&lt;div&gt;&lt;b&gt;hello &lt;/b&gt;world&lt;/div&gt;&lt;div&gt;WebKit&lt;/div&gt;&quot;
+PASS RemoveFormat on last two words of &quot;&lt;q&gt;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;WebKit&lt;/q&gt;&quot; yields &quot;&lt;div&gt;&lt;q&gt;&lt;b&gt;hello &lt;/b&gt;&lt;/q&gt;world&lt;/div&gt;WebKit&quot;
+PASS RemoveFormat on second word of &quot;&lt;q&gt;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;WebKit&lt;/q&gt;&quot; yields &quot;&lt;div&gt;&lt;q&gt;&lt;b&gt;hello &lt;/b&gt;&lt;/q&gt;world&lt;/div&gt;&lt;q&gt;WebKit&lt;/q&gt;&quot;
+PASS RemoveFormat on first line of &quot;&lt;b&gt;&lt;div&gt;hello&lt;/div&gt;webkit&lt;/b&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;&lt;b&gt;webkit&lt;/b&gt;&quot;
+PASS RemoveFormat on all of &quot;&lt;i style=&quot;font-weight:bold;&quot;&gt;hello&lt;/i&gt; &lt;u&gt;world&lt;/u&gt;&quot; yields &quot;hello world&quot;
+FAIL RemoveFormat on second word of &quot;&lt;font color=&quot;red&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt; WebKit&lt;/font&gt;&quot; yields &quot;&lt;font color=&quot;red&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;u&gt;hello&lt;/u&gt; &lt;/b&gt;&lt;/font&gt;world &lt;font color=&quot;red&quot;&gt;WebKit&lt;/font&gt;&quot;, expected &quot;&lt;font color=&quot;red&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;u&gt;hello&lt;/u&gt; &lt;/b&gt;&lt;/font&gt;world&lt;font color=&quot;red&quot;&gt; WebKit&lt;/font&gt;&quot;
+FAIL RemoveFormat on second word of &quot;&lt;font size=&quot;5&quot;&gt;&lt;i&gt;&lt;u style=&quot;font-size: small;&quot;&gt;hello&lt;/u&gt; world&lt;/i&gt;&lt;font size=&quot;3&quot;&gt; WebKit&lt;/font&gt;&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;5&quot;&gt;&lt;i&gt;&lt;u style=&quot;font-size: small;&quot;&gt;hello&lt;/u&gt; &lt;/i&gt;&lt;/font&gt;world &lt;font size=&quot;5&quot;&gt;&lt;font size=&quot;3&quot;&gt;WebKit&lt;/font&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font size=&quot;5&quot;&gt;&lt;i&gt;&lt;u style=&quot;font-size: small;&quot;&gt;hello&lt;/u&gt; &lt;/i&gt;&lt;/font&gt;world&lt;font size=&quot;5&quot;&gt;&lt;font size=&quot;3&quot;&gt; WebKit&lt;/font&gt;&lt;/font&gt;&quot;
+FAIL RemoveFormat on second word of &quot;&lt;sup&gt;&lt;div style=&quot;text-decoration: underline; font-size: large;&quot;&gt;hello &lt;dfn style=&quot;font-size: normal;&quot;&gt;world&lt;/dfn&gt;&lt;/div&gt; WebKit&lt;/sup&gt;&quot; yields &quot;&lt;sup&gt;&lt;div style=&quot;text-decoration: underline; font-size: large;&quot;&gt;hello &lt;dfn style=&quot;font-size: normal;&quot;&gt;world&lt;/dfn&gt;&lt;/div&gt; WebKit&lt;/sup&gt;&quot;, expected &quot;&lt;div&gt;&lt;sup&gt;&lt;font size=&quot;4&quot;&gt;&lt;u&gt;hello &lt;/u&gt;&lt;/font&gt;&lt;/sup&gt;world&lt;/div&gt;&lt;sup&gt; WebKit&lt;/sup&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformatmultipleelementswinexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-win-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-win-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-format-multiple-elements-win-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+This tests removing multiple elements by RemoveFormat command.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS RemoveFormat on all of &quot;hello&quot; yields &quot;hello&quot;
+PASS RemoveFormat on all of &quot;&lt;i&gt;hello&lt;/i&gt; &lt;u&gt;world&lt;/u&gt;&quot; yields &quot;hello world&quot;
+PASS RemoveFormat on all of &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;em&gt;WebKit&lt;/em&gt;&lt;/a&gt;&quot; yields &quot;hello world &lt;a href=&quot;http://webkit.org/&quot;&gt;WebKit&lt;/a&gt;&quot;
+PASS RemoveFormat on second word of &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;em&gt;WebKit&lt;/em&gt;&lt;/a&gt;&quot; yields &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; &lt;/b&gt;world &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;em&gt;WebKit&lt;/em&gt;&lt;/a&gt;&quot;
+PASS RemoveFormat on second word of &quot;&lt;sub&gt;&lt;tt&gt;hello world WebKit&lt;/tt&gt;&lt;/sub&gt;&quot; yields &quot;&lt;sub&gt;&lt;tt&gt;hello &lt;/tt&gt;&lt;/sub&gt;world &lt;sub&gt;&lt;tt&gt;WebKit&lt;/tt&gt;&lt;/sub&gt;&quot;
+PASS RemoveFormat on second word of &quot;&lt;q&gt;&lt;ins&gt;&lt;var&gt;hello wor&lt;/var&gt;ld&lt;/ins&gt; WebKit&lt;/q&gt;&quot; yields &quot;&lt;q&gt;&lt;ins&gt;&lt;var&gt;hello &lt;/var&gt;&lt;/ins&gt;&lt;/q&gt;world &lt;q&gt;WebKit&lt;/q&gt;&quot;
+PASS RemoveFormat on last word of &quot;&lt;b&gt;hello &lt;dfn&gt;world &lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot; yields &quot;&lt;b&gt;hello &lt;dfn&gt;world &lt;/dfn&gt;&lt;/b&gt;WebKit&quot;
+PASS RemoveFormat on second word of &quot;&lt;b&gt;hello &lt;dfn&gt;world &lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot; yields &quot;&lt;b&gt;hello &lt;/b&gt;world &lt;b&gt;&lt;dfn&gt;&lt;kbd&gt;WebKit&lt;/kbd&gt;&lt;/dfn&gt;&lt;/b&gt;&quot;
+PASS RemoveFormat on first two words of &quot;&lt;code&gt;hello &lt;strong&gt;world WebKit&lt;/storng&gt;&lt;/code&gt;&quot; yields &quot;hello world &lt;code&gt;&lt;strong&gt;WebKit&lt;/strong&gt;&lt;/code&gt;&quot;
+PASS RemoveFormat on first two words of &quot;&lt;acronym&gt;&lt;tt&gt;&lt;mark&gt;&lt;samp&gt;hello&lt;/samp&gt;&lt;/mark&gt; world &lt;sub&gt;WebKit&lt;/sub&gt;&lt;/tt&gt;&lt;/acronym&gt;&quot; yields &quot;&lt;mark&gt;hello&lt;/mark&gt; world &lt;acronym&gt;&lt;tt&gt;&lt;sub&gt;WebKit&lt;/sub&gt;&lt;/tt&gt;&lt;/acronym&gt;&quot;
+FAIL RemoveFormat on last two words of &quot;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;&lt;div&gt;WebKit&lt;/div&gt;&quot; yields &quot;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;&lt;div&gt;WebKit&lt;/div&gt;&quot;, expected &quot;&lt;div&gt;&lt;b&gt;hello &lt;/b&gt;world&lt;/div&gt;&lt;div&gt;WebKit&lt;/div&gt;&quot;
+PASS RemoveFormat on last two words of &quot;&lt;q&gt;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;WebKit&lt;/q&gt;&quot; yields &quot;&lt;div&gt;&lt;q&gt;&lt;b&gt;hello &lt;/b&gt;&lt;/q&gt;world&lt;/div&gt;WebKit&quot;
+PASS RemoveFormat on second word of &quot;&lt;q&gt;&lt;b&gt;&lt;div&gt;hello world&lt;/div&gt;&lt;/b&gt;WebKit&lt;/q&gt;&quot; yields &quot;&lt;div&gt;&lt;q&gt;&lt;b&gt;hello &lt;/b&gt;&lt;/q&gt;world&lt;/div&gt;&lt;q&gt;WebKit&lt;/q&gt;&quot;
+PASS RemoveFormat on first line of &quot;&lt;b&gt;&lt;div&gt;hello&lt;/div&gt;webkit&lt;/b&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;&lt;b&gt;webkit&lt;/b&gt;&quot;
+PASS RemoveFormat on all of &quot;&lt;i style=&quot;font-weight:bold;&quot;&gt;hello&lt;/i&gt; &lt;u&gt;world&lt;/u&gt;&quot; yields &quot;hello world&quot;
+PASS RemoveFormat on second word of &quot;&lt;font color=&quot;red&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt; WebKit&lt;/font&gt;&quot; yields &quot;&lt;font color=&quot;red&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;u&gt;hello&lt;/u&gt; &lt;/b&gt;&lt;/font&gt;world &lt;font color=&quot;red&quot;&gt;WebKit&lt;/font&gt;&quot;
+PASS RemoveFormat on second word of &quot;&lt;font size=&quot;5&quot;&gt;&lt;i&gt;&lt;u style=&quot;font-size: small;&quot;&gt;hello&lt;/u&gt; world&lt;/i&gt;&lt;font size=&quot;3&quot;&gt; WebKit&lt;/font&gt;&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;5&quot;&gt;&lt;i&gt;&lt;u style=&quot;font-size: small;&quot;&gt;hello&lt;/u&gt; &lt;/i&gt;&lt;/font&gt;world &lt;font size=&quot;5&quot;&gt;&lt;font size=&quot;3&quot;&gt;WebKit&lt;/font&gt;&lt;/font&gt;&quot;
+FAIL RemoveFormat on second word of &quot;&lt;sup&gt;&lt;div style=&quot;text-decoration: underline; font-size: large;&quot;&gt;hello &lt;dfn style=&quot;font-size: normal;&quot;&gt;world&lt;/dfn&gt;&lt;/div&gt; WebKit&lt;/sup&gt;&quot; yields &quot;&lt;sup&gt;&lt;div style=&quot;text-decoration: underline; font-size: large;&quot;&gt;hello &lt;dfn style=&quot;font-size: normal;&quot;&gt;world&lt;/dfn&gt;&lt;/div&gt;&lt;/sup&gt; WebKit&quot;, expected &quot;&lt;div&gt;&lt;sup&gt;&lt;font size=&quot;4&quot;&gt;&lt;u&gt;hello &lt;/u&gt;&lt;/font&gt;&lt;/sup&gt;world&lt;/div&gt;&lt;sup&gt; WebKit&lt;/sup&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformatting2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests that RemoveFormat not only removes style from the selected part of the DOM, but that it also applies the document default style to the selection if that's necessary in order to leave the selected text unstyled.
+| &quot;&lt;#selection-anchor&gt;This&quot;
+| &quot; &lt;#selection-focus&gt;&quot;
+| &quot;text should look the same as the text above.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremoveformattingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-formatting-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 13 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; A &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This is a test for execCommand(&quot;RemoveFormat&quot;). It demonstrates a bug: everything in the editable region below should be selected, as everything was selected before Remove Format was performed.
+
+markup:
+| &quot;
+&quot;
+| &quot;&lt;#selection-anchor&gt;foo&quot;
+| &lt;a&gt;
+|   href=&quot;http://www.google.com/&quot;
+|   &quot;bar&quot;
+| &quot;baz&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;table&gt;
+|   border=&quot;1&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot;foo&quot;
+|       &lt;td&gt;
+|         &quot;bar&quot;
+|       &lt;td&gt;
+|         &quot;baz&quot;
+| &quot;
+&quot;
+| &quot;foo&quot;
+| &quot;bar&quot;
+| &quot;baz&lt;#selection-focus&gt;&quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+
+console:
+| 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremovelist1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 60 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 60 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests de-listing content.
+
+
+There should be a single BR above this line and no OL or LI.
+&lt;br&gt;There should be a single BR above this line and no OL or LI.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremovelistfromrangeselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-from-range-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-from-range-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-from-range-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 541x19
+          text run at (0,0) width 541: &quot;This tests Insert{Un}OrderedList on a range selection that is entirely within one list.&quot;
+      RenderBlock {DIV} at (0,36) size 784x116
+        RenderBlock (anonymous) at (0,0) size 784x80
+          RenderText {#text} at (0,0) size 76x19
+            text run at (0,0) width 76: &quot;None of the&quot;
+          RenderBR {BR} at (75,15) size 1x0
+          RenderText {#text} at (0,20) size 103x19
+            text run at (0,20) width 103: &quot;selected content&quot;
+          RenderBR {BR} at (102,35) size 1x0
+          RenderText {#text} at (0,40) size 62x19
+            text run at (0,40) width 62: &quot;should be&quot;
+          RenderBR {BR} at (61,55) size 1x0
+          RenderText {#text} at (0,60) size 52x19
+            text run at (0,60) width 52: &quot;in a list.&quot;
+          RenderBR {BR} at (51,75) size 1x0
+        RenderBlock {OL} at (0,96) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-21,0) size 16x19: &quot;1&quot;
+            RenderText {#text} at (0,0) size 323x19
+              text run at (0,0) width 323: &quot;This should be in a list and should not be selected.&quot;
+selection start: position 2 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 2 of child 6 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandremovelistitem1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-item-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-item-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/remove-list-item-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of UL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 294x19
+          text run at (0,0) width 294: &quot;Outdenting a sublist should remove one level.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+caret: position 0 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandselectAllexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/selectAll-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/selectAll-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/selectAll-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 562 of #text &gt; P &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x376 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x60
+          RenderInline {SPAN} at (0,0) size 756x58
+            RenderText {#text} at (0,1) size 756x58
+              text run at (0,1) width 756: &quot;\&quot;The quick brown fox jumps over the lazy dog\&quot; uses every letter in the english&quot;
+              text run at (755,1) width 1: &quot; &quot;
+              text run at (0,31) width 93: &quot;language.&quot;
+        RenderBlock (anonymous) at (14,98) size 756x240
+          RenderBlock {P} at (0,0) size 756x240
+            RenderText {#text} at (0,1) size 753x238
+              text run at (0,1) width 458: &quot;Here's to the crazy ones, the misfits, the rebels, &quot;
+              text run at (457,1) width 192: &quot;the trouble makers, &quot;
+              text run at (648,1) width 92: &quot;the round&quot;
+              text run at (739,1) width 7: &quot; &quot;
+              text run at (0,31) width 242: &quot;pegs in the square holes, &quot;
+              text run at (241,31) width 348: &quot;the ones who see things differently. &quot;
+              text run at (588,31) width 144: &quot;There not fond&quot;
+              text run at (731,31) width 7: &quot; &quot;
+              text run at (0,61) width 506: &quot;of rules, and they have no respect for the status quo, &quot;
+              text run at (505,61) width 189: &quot;you can quote then,&quot;
+              text run at (0,91) width 195: &quot;disagree with them, &quot;
+              text run at (194,91) width 216: &quot;glorify or vilify them, &quot;
+              text run at (409,91) width 338: &quot;about the only thing you can't do is&quot;
+              text run at (746,91) width 7: &quot; &quot;
+              text run at (0,121) width 128: &quot;ignore them. &quot;
+              text run at (127,121) width 279: &quot;Because they change things. &quot;
+              text run at (405,121) width 342: &quot;They push the human race forward.&quot;
+              text run at (0,151) width 477: &quot;And while some may see them as the crazy ones, &quot;
+              text run at (476,151) width 146: &quot;we see genius. &quot;
+              text run at (621,151) width 117: &quot;Because the&quot;
+              text run at (737,151) width 7: &quot; &quot;
+              text run at (0,181) width 626: &quot;people who are crazy enough to think they can change the world &quot;
+              text run at (625,181) width 115: &quot;are the ones&quot;
+              text run at (739,181) width 7: &quot; &quot;
+              text run at (0,211) width 78: &quot;who do.&quot;
+        RenderBlock (anonymous) at (14,362) size 756x0
+          RenderInline {SPAN} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 562 of child 0 {#text} of child 1 {P} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandtogglelinkmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-link-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-link-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-link-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+Test to make sure we remove span tags with no attributes if we removed the last attribute.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS select all of &quot;hello &lt;b&gt;world&lt;/b&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/a&gt;&quot;
+PASS select all of &quot;&lt;u&gt;hello world&lt;/u&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;u&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello world&lt;/a&gt;&lt;/u&gt;&quot;
+PASS select all of &quot;hello &lt;a href=&quot;http://bugs.webkit.org/&quot;&gt;world&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello world&lt;/a&gt;&quot;
+PASS select all of &quot;hello &lt;a href=&quot;http://bugs.webkit.org/&quot; style=&quot;font-weight: bold&quot;&gt;world&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/a&gt;&quot;
+FAIL select first two words of &quot;hello &lt;b&gt;world&lt;/b&gt; WebKit&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt; &lt;/a&gt;WebKit&quot;, expected &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/a&gt; WebKit&quot;
+FAIL select first two words of &quot;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/a&gt; WebKit&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt; &lt;/a&gt;WebKit&quot;, expected &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/a&gt; WebKit&quot;
+FAIL select first two words of &quot;&lt;a href=&quot;http://trac.webkit.org/&quot; style=&quot;font-style: italic;&quot;&gt;hello world&lt;/a&gt; WebKit&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;i&gt;hello world&lt;/i&gt; &lt;/a&gt;WebKit&quot;, expected &quot;&lt;i&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello world&lt;/a&gt;&lt;/i&gt; WebKit&quot;
+FAIL select first two words of &quot;hello &lt;a href=&quot;http://trac.webkit.org/&quot;&gt;&lt;b&gt;world&lt;/b&gt; WebKit&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt; &lt;/a&gt;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;WebKit&lt;/a&gt;&quot;, expected &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/a&gt;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt; WebKit&lt;/a&gt;&quot;
+FAIL select first two words of &quot;hello &lt;a href=&quot;http://trac.webkit.org/&quot; style=&quot;font-style: italic;&quot;&gt;&lt;b&gt;world&lt;/b&gt; WebKit&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt; &lt;/a&gt;&lt;a href=&quot;http://trac.webkit.org/&quot; style=&quot;font-style: italic;&quot;&gt;WebKit&lt;/a&gt;&quot;, expected &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;hello &lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;&lt;/a&gt;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;&lt;i&gt; WebKit&lt;/i&gt;&lt;/a&gt;&quot;
+PASS select last word of &quot;hello &lt;b&gt;world&lt;/b&gt; WebKit&quot; and createLink (http://webkit.org/) yields &quot;hello &lt;b&gt;world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot;&gt;WebKit&lt;/a&gt;&quot;
+PASS select last word of &quot;&lt;u&gt;hello &lt;b&gt;world&lt;/b&gt; WebKit&lt;/u&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;u&gt;hello &lt;b&gt;world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot;&gt;WebKit&lt;/a&gt;&lt;/u&gt;&quot;
+PASS select last word of &quot;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;/a&gt;&lt;div&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;world&lt;/a&gt;&lt;/div&gt;&quot;
+PASS select last word of &quot;&lt;a href=&quot;http://trac.webkit.org/&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;hello&lt;/div&gt;&lt;/a&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;world&lt;/a&gt;&lt;/div&gt;&quot;
+PASS select last word of &quot;&lt;a href=&quot;http://trac.webkit.org/&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/a&gt;&quot; and createLink (http://webkit.org/) yields &quot;&lt;a href=&quot;http://trac.webkit.org/&quot;&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;hello&lt;/div&gt;&lt;/a&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;world&lt;/a&gt;&lt;/div&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandtoggleunlinkmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-unlink-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-unlink-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/toggle-unlink-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+Test to make sure we preserve styles when removing links
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS unlink on all of &quot;hello &lt;b&gt;world&lt;/b&gt;&quot; yields &quot;hello &lt;b&gt;world&lt;/b&gt;&quot;
+PASS unlink on all of &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;u&gt;hello world&lt;/u&gt;&lt;/a&gt;&quot; yields &quot;&lt;u&gt;hello world&lt;/u&gt;&quot;
+PASS unlink on all of &quot;hello &lt;i&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;world&lt;/a&gt;&lt;/i&gt;&quot; yields &quot;hello &lt;i&gt;world&lt;/i&gt;&quot;
+PASS unlink on all of &quot;hello &lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-weight: bold;&quot;&gt;world&lt;/a&gt;&quot; yields &quot;hello &lt;b&gt;world&lt;/b&gt;&quot;
+PASS unlink on all of &quot;hello &lt;a href=&quot;http://webkit.org/&quot; style=&quot;color: blue;&quot;&gt;world&lt;/a&gt; WebKit&quot; yields &quot;hello &lt;font color=&quot;#0000ff&quot;&gt;world&lt;/font&gt; WebKit&quot;
+PASS unlink on all of &quot;hello &lt;a href=&quot;http://webkit.org/&quot; style=&quot;color: blue; display: block;&quot;&gt;world&lt;/a&gt; WebKit&quot; yields &quot;hello &lt;font color=&quot;#0000ff&quot;&gt;&lt;span style=&quot;display: block;&quot;&gt;world&lt;/span&gt;&lt;/font&gt; WebKit&quot;
+PASS unlink on last two words of &quot;&lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-size: large;&quot;&gt;hello world&lt;/a&gt; WebKit&quot; yields &quot;&lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-size: large;&quot;&gt;hello &lt;/a&gt;&lt;font size=&quot;4&quot;&gt;world&lt;/font&gt; WebKit&quot;
+PASS unlink on last two words of &quot;hello &lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-size: large;&quot;&gt;world &lt;span style=&quot;font-size: small;&quot;&gt;WebKit&lt;/span&gt; rocks&lt;/a&gt;&quot; yields &quot;hello &lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;font size=&quot;4&quot;&gt;world &lt;/font&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;WebKit&lt;/span&gt;&lt;font size=&quot;4&quot;&gt; rocks&lt;/font&gt;&quot;
+FAIL unlink on first two words of &quot;hello &lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-style: italic;&quot;&gt;&lt;b&gt;world&lt;/b&gt; WebKit&lt;/a&gt;&quot; yields &quot;hello &lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt; &lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-style: italic;&quot;&gt;WebKit&lt;/a&gt;&quot;, expected &quot;hello &lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;i&gt; WebKit&lt;/i&gt;&lt;/a&gt;&quot;
+PASS unlink on all of &quot;&lt;a href=&quot;http://webkit.org/&quot; style=&quot;background-color: yellow;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/a&gt;&quot; yields &quot;&lt;div style=&quot;background-color: yellow;&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;world&lt;/div&gt;&quot;
+PASS unlink on all of &quot;hello&lt;a href=&quot;http://webkit.org/&quot; style=&quot;background-color: yellow;&quot;&gt;&lt;div&gt;world&lt;/div&gt;&lt;/a&gt;WebKit&quot; yields &quot;hello&lt;div style=&quot;background-color: yellow;&quot;&gt;world&lt;/div&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;WebKit&lt;/span&gt;&quot;
+PASS unlink on last two words of &quot;&lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world WebKit&lt;/div&gt;&lt;/a&gt;&quot; yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;hello&lt;/div&gt;&lt;/a&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;world WebKit&lt;/div&gt;&quot;
+PASS unlink on last word of &quot;&lt;a href=&quot;http://webkit.org/&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/a&gt;&quot; yields &quot;&lt;a href=&quot;http://webkit.org/&quot;&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;hello&lt;/div&gt;&lt;/a&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;world&lt;/div&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingexecCommandunlinkexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/execCommand/unlink-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/execCommand/unlink-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/execCommand/unlink-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 45 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 45 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 45 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:range from 7 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 87 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 87 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 13 of DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; A &gt; P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; A &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; P &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document to 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; LI &gt; OL &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This is a test of execCommand(&quot;Unlink&quot;). It tests:
+
+Completely unlinking a link.
+Unlinking a single word inside of a link.
+Unlinking a selection containing linked and unlinked text.
+Unlinking a selection that partially selects a linked table.
+The editable regions below describe what their content should be after the test.
+
+This paragraph should should end up unlinked.
+The second word in this paragraph should end up being unlinked, everything else should be a link.
+This paragraph starts with a link in the middle. Only the 'a' in the previous sentence should be linked after the test.
+This editable region contains lists, tables, styled text, and images. Everything in this region that is not selected should be a link, nothing that is selected should be a link.
+
+Item 1
+Item 2
+1        2        3
+
+This line contains  an image.
+The innerHTML of editable regions after the test:
+
+This paragraph should should end up unlinked.
+&lt;a href=&quot;http://www.apple.com/&quot;&gt;The &lt;/a&gt;second &lt;a href=&quot;http://www.apple.com/&quot;&gt;word in this paragraph should end up being unlinked, everything else should be a link.&lt;/a&gt;
+This paragraph starts with &lt;a href=&quot;http://www.google.com&quot;&gt;&lt;i&gt;a&lt;/i&gt;&lt;/a&gt;&lt;span id=&quot;test3start&quot;&gt; link&lt;/span&gt; in the middle. Only the 'a' in the previous sentence should be linked after the test.
+&lt;p&gt;This &lt;i&gt;editable region&lt;/i&gt; contains lists, tables, styled text, and images. Everything in this region that is not selected should be a link, nothing that is selected should be a link.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Item 1&lt;/li&gt; &lt;li&gt;Item 2&lt;/li&gt; &lt;/ul&gt; &lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;span id=&quot;test4end&quot;&gt;&lt;a href=&quot;http://www.google.com/&quot;&gt;3&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;a href=&quot;http://www.google.com/&quot;&gt;&lt;br&gt; This &lt;b&gt;line&lt;/b&gt; contains &lt;img src=&quot;../resources/abe.png&quot;&gt; an image. &lt;/a&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputcaretattheedgeofcontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x78
+  RenderBlock {HTML} at (0,0) size 800x78
+    RenderBody {BODY} at (8,8) size 784x62
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 761x39
+          text run at (0,0) width 761: &quot;When the caret reaches the edge of the input box or content editable div, on the next input if must jump to the center of&quot;
+          text run at (0,20) width 73: &quot;the control.&quot;
+layer at (8,48) size 82x22 clip at (9,49) size 80x20 scrollWidth 241
+  RenderBlock {DIV} at (0,40) size 82x22 [border: (1px solid #000000)]
+    RenderText {#text} at (1,1) size 240x19
+      text run at (1,1) width 240: &quot;012345678901234567890123456789&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputcaretattheedgeofinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/caret-at-the-edge-of-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x61
+  RenderBlock {HTML} at (0,0) size 800x61
+    RenderBody {BODY} at (8,8) size 784x45
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 692x19
+          text run at (0,0) width 692: &quot;When the caret reaches the edge of the input box, on the next input if must jump to the center of the control.&quot;
+      RenderBlock (anonymous) at (0,20) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 75x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,33) size 61x14 scrollWidth 185
+  RenderBlock {DIV} at (6,3) size 62x15
+    RenderText {#text} at (0,0) size 184x14
+      text run at (0,0) width 184: &quot;012345678901234567890123456789&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputdivfirstchildruleinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This test ensures WebKit can paste content inside an input element even when there is div:last-child {}.
+
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputdivfirstchildruletextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/div-first-child-rule-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This test ensures WebKit can paste content inside an textarea element even when there is div:last-child {}.
+
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputeditablecontainerwithwordwrapnormalexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/editable-container-with-word-wrap-normal-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/editable-container-with-word-wrap-normal-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/editable-container-with-word-wrap-normal-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+Testcase for bug http://www.webkit.org/b/89649. The test case checks if caret is drawn properly(especially scrolls properly) inside a editable container having word-wrap:normal.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+To manually test, move the caret to the end of the line. 
+The content must scroll for the caret to reach the end of the editable text.
+FAIL editableContainer.scrollLeft &gt; 0 should be true. Was false.
+
+Final caret rect is calculated by following constraints
+1) ScrollWidth = text content width + caret width
+2) Caret rect is always within container bounding box (thus substracting the scroll left)
+FAIL startCaretRect.left + editableContainer.scrollWidth - editableContainer.scrollLeft - caretWidth should be 0. Was 1169.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputemacsctrloexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/emacs-ctrl-o-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/emacs-ctrl-o-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/emacs-ctrl-o-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x166
+        RenderBlock {DIV} at (0,0) size 784x60
+          RenderText {#text} at (0,1) size 60x28
+            text run at (0,1) width 60: &quot;Tests:&quot;
+          RenderBR {BR} at (59,23) size 1x0
+          RenderText {#text} at (0,31) size 253x28
+            text run at (0,31) width 253: &quot;Key binding for control-O&quot;
+        RenderBlock {DIV} at (0,76) size 784x90
+          RenderText {#text} at (0,1) size 177x28
+            text run at (0,1) width 177: &quot;Expected results:&quot;
+          RenderBR {BR} at (176,23) size 1x0
+          RenderText {#text} at (0,31) size 89x28
+            text run at (0,31) width 89: &quot;one five |&quot;
+          RenderBR {BR} at (88,53) size 1x0
+          RenderText {#text} at (0,61) size 136x28
+            text run at (0,61) width 136: &quot;two three four&quot;
+      RenderBlock {DIV} at (0,190) size 784x30
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 220x28
+            text run at (0,1) width 220: &quot;one five two three four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputimecompositionclearpreeditexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/ime-composition-clearpreedit-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/ime-composition-clearpreedit-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/ime-composition-clearpreedit-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+CONSOLE MESSAGE: line 25: ReferenceError: Can't find variable: textInputController
+This tests that clearing a text compose doesn't leave the composed text behild in the text field
+
+To test manually, enable an IME, input characters, clear the compose and see if the input field only contains the initial value
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputinsertwrappingspaceintextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/insert-wrapping-space-in-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/insert-wrapping-space-in-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/insert-wrapping-space-in-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This test ensures WebKit allows space be inserted in textarea even when doing so forces the space to wrap to the next line.
+
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputoptionpageupdownexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/option-page-up-down-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/option-page-up-down-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/option-page-up-down-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 50: cursor should be at line 3, not line 0
+Page up/down (option+page up/down on Mac) should move the move cursor and scroll the content in contenteditable elements. This sample covers cursor position move test of a) iframe element containing contenteditable body, and b) content editable div element.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpageupdownscrollsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/page-up-down-scrolls-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/page-up-down-scrolls-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/page-up-down-scrolls-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This test simulates hitting page up and page down once each. Both keypresses should generate exactly one scroll event. If running manually, press the keys now.
+FAIL
+(just here to force scrollbars)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpasswordechopassnodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x25
+        RenderText {#text} at (0,1) size 263x19
+          text run at (0,1) width 263: &quot;Tests if input chars are secured correctly &quot;
+        RenderTextControl {INPUT} at (264,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,41) size 784x0
+layer at (279,13) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpasswordechopassnode2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x25
+        RenderText {#text} at (0,1) size 263x19
+          text run at (0,1) width 263: &quot;Tests if input chars are secured correctly &quot;
+        RenderTextControl {INPUT} at (264,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,41) size 784x0
+layer at (279,13) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpasswordechopassnode3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-passnode3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x25
+        RenderText {#text} at (0,1) size 263x19
+          text run at (0,1) width 263: &quot;Tests if input chars are secured correctly &quot;
+        RenderTextControl {INPUT} at (264,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,41) size 784x0
+layer at (279,13) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpasswordechotextnodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-textnode-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-textnode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/password-echo-textnode-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x25
+        RenderText {#text} at (0,1) size 207x19
+          text run at (0,1) width 207: &quot;Test text input is never secured. &quot;
+        RenderTextControl {INPUT} at (208,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,41) size 784x0
+layer at (223,13) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpastelinebreakintoinitiallyhiddentextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/paste-linebreak-into-initially-hidden-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/paste-linebreak-into-initially-hidden-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/paste-linebreak-into-initially-hidden-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests pasting into a textarea that starts with a line break that didn't initially have a renderer (display: none). WebKit should still be able to paste text with line breaks.
+
+
+FAILED: expected &quot;hello
+world
+webkit&quot; but got &quot;
+webkit&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputpastetextendingwithinterchangenewlineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/paste-text-ending-with-interchange-newline-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/paste-text-ending-with-interchange-newline-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/paste-text-ending-with-interchange-newline-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests pasting a text with an interchange new line at the end. WebKit shouldn't insert a new line.
+|   &lt;shadow:root&gt;
+|     &lt;div&gt;
+|       contenteditable=&quot;plaintext-only&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealcaretofmultilinecontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,103 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x238
+  RenderBlock {HTML} at (0,0) size 800x238
+    RenderBody {BODY} at (8,8) size 784x222
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: &quot;When the caret is scrolled out, on starting typing it must be brought to the center of the control.&quot;
+layer at (8,28) size 784x202 clip at (9,29) size 782x200 scrollHeight 620
+  RenderBlock {DIV} at (0,20) size 784x202 [border: (1px solid #000000)]
+    RenderText {#text} at (1,1) size 16x19
+      text run at (1,1) width 16: &quot;00&quot;
+    RenderBR {BR} at (17,1) size 0x19
+    RenderText {#text} at (1,21) size 16x19
+      text run at (1,21) width 16: &quot;01&quot;
+    RenderBR {BR} at (17,21) size 0x19
+    RenderText {#text} at (1,41) size 16x19
+      text run at (1,41) width 16: &quot;02&quot;
+    RenderBR {BR} at (17,41) size 0x19
+    RenderText {#text} at (1,61) size 16x19
+      text run at (1,61) width 16: &quot;03&quot;
+    RenderBR {BR} at (17,61) size 0x19
+    RenderText {#text} at (1,81) size 16x19
+      text run at (1,81) width 16: &quot;04&quot;
+    RenderBR {BR} at (17,81) size 0x19
+    RenderText {#text} at (1,101) size 16x19
+      text run at (1,101) width 16: &quot;05&quot;
+    RenderBR {BR} at (17,101) size 0x19
+    RenderText {#text} at (1,121) size 16x19
+      text run at (1,121) width 16: &quot;06&quot;
+    RenderBR {BR} at (17,121) size 0x19
+    RenderText {#text} at (1,141) size 16x19
+      text run at (1,141) width 16: &quot;07&quot;
+    RenderBR {BR} at (17,141) size 0x19
+    RenderText {#text} at (1,161) size 16x19
+      text run at (1,161) width 16: &quot;08&quot;
+    RenderBR {BR} at (17,161) size 0x19
+    RenderText {#text} at (1,181) size 16x19
+      text run at (1,181) width 16: &quot;09&quot;
+    RenderBR {BR} at (17,181) size 0x19
+    RenderText {#text} at (1,201) size 16x19
+      text run at (1,201) width 16: &quot;10&quot;
+    RenderBR {BR} at (17,201) size 0x19
+    RenderText {#text} at (1,221) size 16x19
+      text run at (1,221) width 16: &quot;11&quot;
+    RenderBR {BR} at (16,221) size 1x19
+    RenderText {#text} at (1,241) size 16x19
+      text run at (1,241) width 16: &quot;12&quot;
+    RenderBR {BR} at (17,241) size 0x19
+    RenderText {#text} at (1,261) size 16x19
+      text run at (1,261) width 16: &quot;13&quot;
+    RenderBR {BR} at (17,261) size 0x19
+    RenderText {#text} at (1,281) size 16x19
+      text run at (1,281) width 16: &quot;14&quot;
+    RenderBR {BR} at (17,281) size 0x19
+    RenderText {#text} at (1,301) size 16x19
+      text run at (1,301) width 16: &quot;15&quot;
+    RenderBR {BR} at (17,301) size 0x19
+    RenderText {#text} at (1,321) size 16x19
+      text run at (1,321) width 16: &quot;16&quot;
+    RenderBR {BR} at (17,321) size 0x19
+    RenderText {#text} at (1,341) size 16x19
+      text run at (1,341) width 16: &quot;17&quot;
+    RenderBR {BR} at (17,341) size 0x19
+    RenderText {#text} at (1,361) size 16x19
+      text run at (1,361) width 16: &quot;18&quot;
+    RenderBR {BR} at (17,361) size 0x19
+    RenderText {#text} at (1,381) size 16x19
+      text run at (1,381) width 16: &quot;19&quot;
+    RenderBR {BR} at (17,381) size 0x19
+    RenderText {#text} at (1,401) size 16x19
+      text run at (1,401) width 16: &quot;20&quot;
+    RenderBR {BR} at (17,401) size 0x19
+    RenderText {#text} at (1,421) size 16x19
+      text run at (1,421) width 16: &quot;21&quot;
+    RenderBR {BR} at (17,421) size 0x19
+    RenderText {#text} at (1,441) size 16x19
+      text run at (1,441) width 16: &quot;22&quot;
+    RenderBR {BR} at (17,441) size 0x19
+    RenderText {#text} at (1,461) size 16x19
+      text run at (1,461) width 16: &quot;23&quot;
+    RenderBR {BR} at (17,461) size 0x19
+    RenderText {#text} at (1,481) size 16x19
+      text run at (1,481) width 16: &quot;24&quot;
+    RenderBR {BR} at (17,481) size 0x19
+    RenderText {#text} at (1,501) size 16x19
+      text run at (1,501) width 16: &quot;25&quot;
+    RenderBR {BR} at (17,501) size 0x19
+    RenderText {#text} at (1,521) size 16x19
+      text run at (1,521) width 16: &quot;26&quot;
+    RenderBR {BR} at (17,521) size 0x19
+    RenderText {#text} at (1,541) size 16x19
+      text run at (1,541) width 16: &quot;27&quot;
+    RenderBR {BR} at (17,541) size 0x19
+    RenderText {#text} at (1,561) size 16x19
+      text run at (1,561) width 16: &quot;28&quot;
+    RenderBR {BR} at (17,561) size 0x19
+    RenderText {#text} at (1,581) size 16x19
+      text run at (1,581) width 16: &quot;29&quot;
+    RenderBR {BR} at (17,581) size 0x19
+    RenderText {#text} at (1,601) size 16x19
+      text run at (1,601) width 16: &quot;30&quot;
+    RenderBR {BR} at (17,601) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealcaretofmultilineinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-multiline-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,78 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x191
+  RenderBlock {HTML} at (0,0) size 800x191
+    RenderBody {BODY} at (8,8) size 784x175
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: &quot;When the caret is scrolled out, on starting typing it must be brought to the center of the control.&quot;
+      RenderBlock (anonymous) at (0,20) size 784x155
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+layer at (10,30) size 74x146 clip at (11,31) size 72x144 scrollHeight 452
+  RenderTextControl {TEXTAREA} at (2,2) size 74x146 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+    RenderBlock {DIV} at (3,3) size 68x448
+      RenderText {#text} at (3,0) size 13x434
+        text run at (3,0) width 13: &quot;00&quot;
+        text run at (15,0) width 1: &quot; &quot;
+        text run at (3,14) width 13: &quot;01&quot;
+        text run at (15,14) width 1: &quot; &quot;
+        text run at (3,28) width 13: &quot;02&quot;
+        text run at (15,28) width 1: &quot; &quot;
+        text run at (3,42) width 13: &quot;03&quot;
+        text run at (15,42) width 1: &quot; &quot;
+        text run at (3,56) width 13: &quot;04&quot;
+        text run at (15,56) width 1: &quot; &quot;
+        text run at (3,70) width 13: &quot;05&quot;
+        text run at (15,70) width 1: &quot; &quot;
+        text run at (3,84) width 13: &quot;06&quot;
+        text run at (15,84) width 1: &quot; &quot;
+        text run at (3,98) width 13: &quot;07&quot;
+        text run at (15,98) width 1: &quot; &quot;
+        text run at (3,112) width 13: &quot;08&quot;
+        text run at (15,112) width 1: &quot; &quot;
+        text run at (3,126) width 13: &quot;09&quot;
+        text run at (15,126) width 1: &quot; &quot;
+        text run at (3,140) width 13: &quot;10&quot;
+        text run at (15,140) width 1: &quot; &quot;
+        text run at (3,154) width 12: &quot;11&quot;
+        text run at (14,154) width 1: &quot; &quot;
+        text run at (3,168) width 13: &quot;12&quot;
+        text run at (15,168) width 1: &quot; &quot;
+        text run at (3,182) width 13: &quot;13&quot;
+        text run at (15,182) width 1: &quot; &quot;
+        text run at (3,196) width 13: &quot;14&quot;
+        text run at (15,196) width 1: &quot; &quot;
+        text run at (3,210) width 13: &quot;15&quot;
+        text run at (15,210) width 1: &quot; &quot;
+        text run at (3,224) width 13: &quot;16&quot;
+        text run at (15,224) width 1: &quot; &quot;
+        text run at (3,238) width 13: &quot;17&quot;
+        text run at (15,238) width 1: &quot; &quot;
+        text run at (3,252) width 13: &quot;18&quot;
+        text run at (15,252) width 1: &quot; &quot;
+        text run at (3,266) width 13: &quot;19&quot;
+        text run at (15,266) width 1: &quot; &quot;
+        text run at (3,280) width 13: &quot;20&quot;
+        text run at (15,280) width 1: &quot; &quot;
+        text run at (3,294) width 13: &quot;21&quot;
+        text run at (15,294) width 1: &quot; &quot;
+        text run at (3,308) width 13: &quot;22&quot;
+        text run at (15,308) width 1: &quot; &quot;
+        text run at (3,322) width 13: &quot;23&quot;
+        text run at (15,322) width 1: &quot; &quot;
+        text run at (3,336) width 13: &quot;24&quot;
+        text run at (15,336) width 1: &quot; &quot;
+        text run at (3,350) width 13: &quot;25&quot;
+        text run at (15,350) width 1: &quot; &quot;
+        text run at (3,364) width 13: &quot;26&quot;
+        text run at (15,364) width 1: &quot; &quot;
+        text run at (3,378) width 13: &quot;27&quot;
+        text run at (15,378) width 1: &quot; &quot;
+        text run at (3,392) width 13: &quot;28&quot;
+        text run at (15,392) width 1: &quot; &quot;
+        text run at (3,406) width 13: &quot;29&quot;
+        text run at (15,406) width 1: &quot; &quot;
+        text run at (3,420) width 13: &quot;30&quot;
+        text run at (15,420) width 1: &quot; &quot;
+      RenderBR {BR} at (3,434) size 0x14
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealcaretoftransformedmultilineinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-transformed-multiline-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-transformed-multiline-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-caret-of-transformed-multiline-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealcontenteditableoninputverticallyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-input-vertically-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-input-vertically-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-input-vertically-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view
+To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.
+ScrollVertically: FAIL
+viewportMiddle: 230, offsetOfInput: 1251
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealcontenteditableonpasteverticallyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-paste-vertically-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-paste-vertically-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-contenteditable-on-paste-vertically-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+After pasting text in a scrolled out of view editor control, the control is to be brought in the center of the view
+To test manually, have some text in the clipboard, scroll the page up to the top, then paste. The control should be scrolled into the middle of the view.
+WebKit
+ScrollVertically: FAIL
+viewportMiddle: 230, offsetOfInput: 1271
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealeditoninputverticallyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-input-vertically-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-input-vertically-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-input-vertically-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view
+To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.
+
+ScrollVertically: FAIL
+viewportMiddle: 230, offsetOfInput: 1253
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputrevealeditonpasteverticallyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-paste-vertically-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-paste-vertically-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/reveal-edit-on-paste-vertically-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+After pasting text in a scrolled out of view editor control, the control is to be brought in the center of the view
+To test manually, have some text in the clipboard, then scroll the page up to the top, then paste. Input box should be scrolled into the middle of the view.
+
+WebKit
+ScrollVertically: FAIL
+viewportMiddle: 230, offsetOfInput: 1273
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputscrolltoedgeiflinebreakatendofdocumentcontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+When the caret is scrolled out and resides at the end of the contenteditable, on pressing &quot;Ctrl+Return&quot; it must be scrolled to the bottom of the view, not to the center to avoid undesirable content view jumping.
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputscrolltoedgeifparagraphseparatoratendofdocumentcontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-paragraph-separator-at-end-of-document-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-paragraph-separator-at-end-of-document-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-to-edge-if-paragraph-separator-at-end-of-document-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+When the caret is scrolled out and resides at the end of the contenteditable, on pressing &quot;Return&quot; it must be scrolled to the bottom of the view, not to the center to avoid undesirable content view jumping.
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputscrollviewportpageupdownexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-viewport-page-up-down-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-viewport-page-up-down-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/scroll-viewport-page-up-down-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 60: Frame viewport should be around 55px , not at 0
+Page up/down (option+page up/down on Mac) should move the move cursor and scroll the content in contenteditable elements. This sample covers scroll position test of a) iframe element containing contenteditable body and b) content editable div element. Even though the cursor will move exactly to the same location on all platforms (covered by test option-page-up-down.html), please note that Mac will scroll the visible area by placing the cursor position in the middle. All other platforms will scroll by keeping the cursor aligned with the top edge of the visible area.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputselectallclearinputmethodexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/select-all-clear-input-method-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/select-all-clear-input-method-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/select-all-clear-input-method-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+FAIL - This test requires textInputController
+| &lt;!DOCTYPE html&gt;
+| &lt;html&gt;
+|   &lt;head&gt;
+|   &lt;body&gt;
+|     &quot;
+&quot;
+|     &lt;p&gt;
+|       &quot;This tests selecting all with an open input method composition.
+To manually test, type some letter in the editable region below and then select all.
+WebKit should not delete contents.&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       id=&quot;container&quot;
+|       &lt;div&gt;
+|         contenteditable=&quot;&quot;
+|         &quot;PAS&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+if (window.testRunner) {
+    var container = document.getElementById('container');
+    container.firstChild.focus();
+    getSelection().setPosition(container.firstChild.firstChild, 5);
+    if (window.textInputController) {
+        Markup.description(document.getElementsByTagName('p')[0].textContent);
+
+        textInputController.setMarkedText(&quot;S&quot;, 0, 1);
+        document.execCommand('selectAll', false, null);
+
+        Markup.dump(container);
+    } else
+        Markup.description('FAIL - This test requires textInputController');
+}
+
+&quot;
+|     &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputsetvalueoninputanddeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests deleting a character after input event handler modified values of textarea. WebKit should not crash and you should see PASS below:
+
+
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputsetvalueoninputandtypeinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests typing a character after input event handler modified values of input element. WebKit should not crash and you should see PASS below:
+
+
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputsetvalueoninputandtypetextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/set-value-on-input-and-type-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests typing a character after input event handler modified values of textarea. WebKit should not crash and you should see PASS below:
+
+
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputsettinginputvaluecancelimecompositionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/setting-input-value-cancel-ime-composition-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/setting-input-value-cancel-ime-composition-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/setting-input-value-cancel-ime-composition-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 23: ReferenceError: Can't find variable: textInputController
+This test ensures WebKit clears IME composition inside an input element when the value is programmatically set. To manually test, type in &quot;nihao&quot; using Chinese IME and then press the down arrow key. The text must be replaced by &quot;henhao&quot; without composition marker.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginputstylechangeduringinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/input/style-change-during-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/input/style-change-during-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/input/style-change-during-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+
+The text field should accept typed characters.
+FAIL window.target.value should be hello. Was .
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting12882expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/12882-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/12882-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/12882-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 768x39
+          text run at (0,0) width 568: &quot;This tests for a bug where images with align right/left would fail to be inserted on paste. &quot;
+          text run at (567,0) width 201: &quot;You should see a picture of abe&quot;
+          text run at (0,20) width 315: &quot;in the editable region below, aligned to the right. &quot;
+        RenderInline {B} at (0,0) size 741x39
+          RenderText {#text} at (314,20) size 741x39
+            text run at (314,20) width 427: &quot;This demonstrates a bug: the focus halo for the editable region&quot;
+            text run at (0,40) width 333: &quot;doesn't expand to fit an image with align='right'.&quot;
+      RenderBlock {DIV} at (0,76) size 784x40
+        RenderText {#text} at (0,0) size 725x39
+          text run at (0,0) width 721: &quot;Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and&quot;
+          text run at (720,0) width 5: &quot; &quot;
+          text run at (0,20) width 375: &quot;dedicated to the proposition that all men are created equal.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting4278698expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4278698-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4278698-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4278698-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 741x39
+          text run at (0,0) width 741: &quot;This tests to see if inserting a space inside normal whitespace inside of a whitespace:pre element will collapse other&quot;
+          text run at (0,20) width 140: &quot;spaces surrounding it.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 450x19
+          text run at (0,0) width 450: &quot;If successful, you should see 'a' followed by 10 spaces followed by 'b'.&quot;
+      RenderBlock {HR} at (0,92) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,102) size 784x22 [border: (2px solid #FFAAAA)]
+        RenderBlock {PRE} at (2,2) size 780x18 [border: (2px solid #AAAAFF)]
+          RenderText {#text} at (2,2) size 94x14
+            text run at (2,2) width 94: &quot;a          b&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting4840662expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4840662-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4840662-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4840662-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 784x39
+          text run at (0,0) width 415: &quot;This tests insertion before/after links that are also display:block. &quot;
+          text run at (414,0) width 370: &quot;Insertion before/after display:block links should go inside&quot;
+          text run at (0,20) width 371: &quot;the links so that text is inserted in the expected paragraph.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBlock {A} at (0,0) size 784x20 [color=#0000EE]
+          RenderText {#text} at (0,0) size 115x19
+            text run at (0,0) width 115: &quot;all be on one line.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting48751891expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 667x19
+          text run at (0,0) width 366: &quot;This tests for a bug when replacing the contents of a list. &quot;
+          text run at (365,0) width 302: &quot;The list shouldn't be removed, just its contents.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 144x19
+              text run at (0,0) width 144: &quot;You shouldn't see this.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting48751892expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4875189-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 747x39
+          text run at (0,0) width 451: &quot;This tests for a bug when replacing the contents of a floating element. &quot;
+          text run at (450,0) width 297: &quot;Just its contents should be removed during the&quot;
+          text run at (0,20) width 51: &quot;replace.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (297,0) size 239x19
+          text run at (297,0) width 239: &quot;This shouldn't be in the bordered div.&quot;
+        RenderBlock (floating) {DIV} at (0,0) size 298x22 [border: (1px solid #0000FF)]
+          RenderText {#text} at (1,1) size 296x19
+            text run at (1,1) width 296: &quot;This should be in a floating blue bordered div.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting4959067expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4959067-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4959067-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4959067-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 613x19
+          text run at (0,0) width 613: &quot;This tests to make sure that insertion over a fully selected special element doesn't do expansion.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderInline {A} at (0,0) size 22x19 [color=#0000EE]
+              RenderText {#text} at (0,0) size 22x19
+                text run at (0,0) width 22: &quot;foo&quot;
+      RenderBlock {UL} at (0,72) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting49601201expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 518x19
+          text run at (0,0) width 518: &quot;This tests for a bug where the first newline entered into a text area would be lost.&quot;
+      RenderBlock (anonymous) at (0,36) size 784x38
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+layer at (10,46) size 135x34 clip at (11,47) size 133x32
+  RenderTextControl {TEXTAREA} at (2,2) size 135x34 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+    RenderBlock {DIV} at (3,3) size 129x28
+      RenderText {#text} at (3,0) size 0x14
+        text run at (3,0) width 0: &quot; &quot;
+      RenderText {#text} at (3,14) size 0x14
+        text run at (3,14) width 0: &quot; &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting49601202expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/4960120-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 601x19
+          text run at (0,0) width 601: &quot;This tests for a bug where a newline inserted at the end of an anonymous block would be lost.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting5002441expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5002441-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5002441-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5002441-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 532x19
+          text run at (0,0) width 532: &quot;This tests for a bug where spaces couldn't be inserted before signatures and replies.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 4x19
+            text run at (0,0) width 4: &quot; &quot;
+          RenderBR {BR} at (4,15) size 0x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 351x19
+            text run at (0,0) width 351: &quot;There should be a single space in the paragraph above.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting50581631expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 772x19
+          text run at (0,0) width 772: &quot;This tests for a bug where hitting return between two tables would add a new paragraph at the end of the editable region.&quot;
+      RenderBlock {DIV} at (0,36) size 784x96
+        RenderTable {TABLE} at (0,0) size 484x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 482x26
+            RenderTableRow {TR} at (0,2) size 482x22
+              RenderTableCell {TD} at (2,2) size 478x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 476x19
+                  text run at (1,1) width 476: &quot;There should be two empty paragraphs after this table and before the next.&quot;
+        RenderBlock (anonymous) at (0,28) size 784x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderBR {BR} at (0,20) size 0x19
+        RenderTable {TABLE} at (0,68) size 280x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 278x26
+            RenderTableRow {TR} at (0,2) size 278x22
+              RenderTableCell {TD} at (2,2) size 274x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 272x19
+                  text run at (1,1) width 272: &quot;And the caret should be in the second one.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting50581632expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5058163-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 707x19
+          text run at (0,0) width 707: &quot;This tests for a bug where hitting return after a line break in text that preserves newlines wouldn't do anything.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderText {#text} at (0,0) size 676x39
+          text run at (0,0) width 24: &quot;xxx&quot;
+          text run at (24,0) width 0: &quot; &quot;
+          text run at (0,20) width 676: &quot;There should be an empty paragraph before this one, and the caret should be at the start of this paragraph.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting51564012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5156401-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5156401-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5156401-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 639x19
+          text run at (0,0) width 639: &quot;This tests for a bug where inserting at the end of a link would place content in the wrong paragraph.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderInline {A} at (0,0) size 76x19 [color=#0000EE]
+          RenderText {#text} at (0,0) size 76x19
+            text run at (0,0) width 76: &quot;Everything &quot;
+          RenderBR {BR} at (75,15) size 1x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting5378847expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5378847-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5378847-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5378847-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests character insertion on a line with an unrendered text node. You should see 'Hello' and then 'World' below.
+
+Hello
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting5418891expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5418891-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5418891-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5418891-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 761x39
+          text run at (0,0) width 548: &quot;This tests for a crash when attempting to break a blockquote at the end of its content. &quot;
+          text run at (547,0) width 214: &quot;The caret should be in the first of&quot;
+          text run at (0,20) width 392: &quot;two empty paragraphs between two pieces of quoted content.&quot;
+      RenderBlock {DIV} at (0,56) size 784x80
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (7,0) size 777x20
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock (anonymous) at (0,20) size 784x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderBR {BR} at (0,20) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,60) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (7,0) size 777x20
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting5510537expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5510537-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5510537-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5510537-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 653: &quot;This tests that inserting a newline at the beginning of quoted content doesn't add an extra quoted line. &quot;
+          text run at (652,0) width 124: &quot;The test has passed&quot;
+          text run at (0,20) width 421: &quot;if there are no empty lines (quoted or unquoted) in the box below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x100
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,20) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 98x19
+              text run at (0,0) width 98: &quot;quote level one&quot;
+        RenderBlock {BLOCKQUOTE} at (0,40) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 98x19
+              text run at (0,0) width 98: &quot;quote level one&quot;
+        RenderBlock (anonymous) at (0,60) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,80) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderBlock {BLOCKQUOTE} at (0,0) size 772x20 [border: none (2px solid #0000FF)]
+              RenderBlock {DIV} at (12,0) size 760x20
+                RenderText {#text} at (0,0) size 99x19
+                  text run at (0,0) width 99: &quot;quote level two&quot;
+      RenderBlock {PRE} at (0,169) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting55499292expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 750x39
+          text run at (0,0) width 630: &quot;This tests to make sure that a br isn't inserted into a tab span during an InsertLineBreak operation. &quot;
+          text run at (629,0) width 121: &quot;You can test for its&quot;
+          text run at (0,20) width 440: &quot;existence with the DOM inspector or you can look at the render tree.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderInline {SPAN} at (0,0) size 32x19
+            RenderText {#text} at (0,20) size 32x19
+              text run at (0,20) width 32: &quot;\x{9}&quot;
+          RenderText {#text} at (32,20) size 21x19
+            text run at (32,20) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting55499293expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5549929-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 780x39
+          text run at (0,0) width 360: &quot;This tests inserting a line break at the end of a tab span. &quot;
+          text run at (359,0) width 421: &quot;Below you should see 'foo' followed by an empty paragraph, with&quot;
+          text run at (0,20) width 88: &quot;the caret in it.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 22x19
+          text run at (0,0) width 22: &quot;foo&quot;
+        RenderInline {SPAN} at (0,0) size 11x19
+          RenderText {#text} at (21,0) size 11x19
+            text run at (21,0) width 11: &quot;\x{9}&quot;
+        RenderBR {BR} at (32,15) size 0x0
+        RenderBR {BR} at (0,20) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting56070693expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5607069-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5607069-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5607069-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+This tests for a bug in InsertParagraph where it would split and clone a &lt;form&gt; element in the same way it would a &lt;p&gt; or a &lt;div&gt;. There should be exactly one form element and one br element between two input elements.
+| &lt;form&gt;
+|   style=&quot;border: 1px solid blue;&quot;
+|   &lt;input&gt;
+|     type=&quot;text&quot;
+|     this.value=&quot;&quot;
+|     &lt;shadow:root&gt;
+|       &lt;div&gt;
+|         contenteditable=&quot;plaintext-only&quot;
+|   &quot;x&quot;
+|   &lt;br&gt;
+|   &quot;x&quot;
+|   &lt;input&gt;
+|     type=&quot;text&quot;
+|     this.value=&quot;&quot;
+|     &lt;shadow:root&gt;
+|       &lt;div&gt;
+|         contenteditable=&quot;plaintext-only&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting56856011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+&lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting56856012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+&lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting56856013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5685601-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting58037061expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests to make sure that hitting return at the end of a header element breaks out of it. Below, a regular paragraph element should follow the h2.
+
+&lt;h2 id=&quot;h2&quot;&gt;foo&lt;/h2&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting58037062expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5803706-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests to make sure that hitting return inside (but not at the end of) a header element clones it. Below there should be two identical h2 elements.
+
+&lt;h2 id=&quot;h2&quot;&gt;foo&lt;/h2&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting59944802expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests to see if deleting an input element that starts at the start of a block adds an extra placeholder.
+You should see a single placeholder in the block below.
+| &lt;input&gt;
+|   type=&quot;text&quot;
+|   this.value=&quot;&quot;
+|   &lt;shadow:root&gt;
+|     &lt;div&gt;
+|       contenteditable=&quot;plaintext-only&quot;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting5994480expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/5994480-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to see if pasting a single paragraph not in a block at the end of a block just before a paragraph not in a block removes a line break. You should see two separate paragraphs below.
+&lt;div id=&quot;paragraphOne&quot;&gt;Paragraph One&lt;/div&gt;Paragraph two.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting61043692expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a bug where hitting return at the end of a paragraph inside a blockquote would create an extraneous empty quoted paragraph. You should see &quot;line one&quot; (quoted), &quot;&quot; (unquoted), and &quot;line two&quot; (quoted) below.
+&lt;blockquote type=&quot;cite&quot;&gt;&lt;pre id=&quot;pre&quot;&gt;line one
+line two&lt;/pre&gt;&lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting6104369expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/6104369-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a bug where hitting return at the end of a paragraph inside a blockquote would create an extraneous empty quoted paragraph. You should see &quot;line one&quot; (quoted), &quot;&quot; (unquoted), and &quot;line two&quot; (quoted) below.
+&lt;blockquote type=&quot;cite&quot;&gt;&lt;div id=&quot;test&quot;&gt;line one&lt;br&gt;line two&lt;/div&gt;&lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting66094791expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests that inserting html inside a table still works and doesn't break the table apart, even when in quoted content.
+
+foo baz
+Test Passed
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting6609479expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/6609479-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests that inserting a newline inside a table still works and doesn't break the table apart, even when in quoted content.
+
+foobar
+Test Passed
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting67038732expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests that placing the cursor at the beginning of a doubly-quoted paragraph and hitting Return splits the outer blockquote at the right place, namely just above the inner blockquote, and inserts an empty line there, rather than outside the outer blockquote.
+&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Lorem&lt;br&gt;ipsum&lt;blockquote id=&quot;test&quot; type=&quot;cite&quot;&gt;dolor&lt;/blockquote&gt;&lt;/div&gt;&lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginserting6703873expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/6703873-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 759x39
+          text run at (0,0) width 682: &quot;This tests that inserting a newline in place of a full line of quoted content doesn't add an extra quoted line. &quot;
+          text run at (681,0) width 78: &quot;The test has&quot;
+          text run at (0,20) width 468: &quot;passed if there are no empty lines (quoted or unquoted) in the box below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 44x19
+              text run at (0,0) width 44: &quot;quoted&quot;
+          RenderBlock {DIV} at (12,20) size 772x0
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,40) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock {DIV} at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 44x19
+              text run at (0,0) width 44: &quot;quoted&quot;
+      RenderBlock {PRE} at (0,129) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingbeforeafterinputelementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/before-after-input-element-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/before-after-input-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/before-after-input-element-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 343x19
+          text run at (0,0) width 343: &quot;This tests text insertion before/after an input element.&quot;
+      RenderBlock {DIV} at (0,36) size 784x25
+        RenderText {#text} at (0,1) size 36x19
+          text run at (0,1) width 36: &quot;Hello&quot;
+        RenderTextControl {INPUT} at (37,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (174,1) size 41x19
+          text run at (174,1) width 41: &quot;World&quot;
+layer at (52,49) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingbreakblockquoteafterdeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/break-blockquote-after-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/break-blockquote-after-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/break-blockquote-after-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x19
+          text run at (0,0) width 775: &quot;This tests that the blockquote's typing style doesn't remain after breaking the blockquote and typing in the unquoted area.&quot;
+        RenderBR {BR} at (774,15) size 1x0
+        RenderBR {BR} at (0,20) size 0x19
+      RenderBlock {DIV} at (0,40) size 784x40
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x40 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBlock (anonymous) at (12,0) size 772x20
+            RenderText {#text} at (0,0) size 28x19
+              text run at (0,0) width 28: &quot;blue&quot;
+          RenderBlock {DIV} at (12,20) size 772x20
+            RenderBlock {BLOCKQUOTE} at (0,0) size 772x20 [color=#008000] [border: none (2px solid #008000)]
+              RenderText {#text} at (12,0) size 36x19
+                text run at (12,0) width 36: &quot;green&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingcaretpositionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/caret-position-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/caret-position-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/caret-position-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+
+Right aligned div. 
+
+RTL div. 
+a
+
+0px right padding RTL textarea. 

+LTR div and textarea. 
+a
+

+NO WRAPPING 
+No wrapping right aligned div. 
+
+No wrapping RTL div. 
+a
+
+No wrapping 0px right padding RTL textarea. 

+No wrapping LTR div and textarea. 
+a
+

+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingeditablehtmlelementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-html-element-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-html-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-html-element-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 1 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 1 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 1 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 1 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingeditableinlineelementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-inline-element-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-inline-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/editable-inline-element-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 382x19
+          text run at (0,0) width 382: &quot;This tests InsertParagraph inside an editable inline element.&quot;
+      RenderBlock {DIV} at (0,36) size 784x42 [border: (1px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 22x39
+          RenderBR {BR} at (1,1) size 0x19
+          RenderText {#text} at (1,21) size 22x19
+            text run at (1,21) width 22: &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingeditedwhitespace1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/edited-whitespace-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/edited-whitespace-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/edited-whitespace-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 780x39
+          text run at (0,0) width 321: &quot;This tests that edited whitespaces aren't all nbsps. &quot;
+          text run at (320,0) width 460: &quot;When the region becomes non-editable, Hello and World should still be&quot;
+          text run at (0,20) width 118: &quot;on different lines. &quot;
+          text run at (117,20) width 594: &quot;This demonstrates a bug: the div's focus halo doesn't go away when it becomes non-editable.&quot;
+      RenderBlock {DIV} at (0,56) size 62x22 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 4x19
+          text run at (1,1) width 4: &quot; &quot;
+      RenderBlock {OL} at (0,94) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingeditingemptydivsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/editing-empty-divs-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/editing-empty-divs-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/editing-empty-divs-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,103 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 772x39
+          text run at (0,0) width 579: &quot;This tests the ability to start editing in blocks that are visible, but have little or no content. &quot;
+          text run at (578,0) width 194: &quot;Each of the divs below should&quot;
+          text run at (0,20) width 158: &quot;be able to accept a caret.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 180x19
+          text run at (0,0) width 180: &quot;This div contains some text.&quot;
+      RenderBlock {DIV} at (0,92) size 708x22 [border: (1px dotted #0000FF)]
+        RenderText {#text} at (1,1) size 40x19
+          text run at (1,1) width 40: &quot;chello&quot;
+      RenderBlock {P} at (0,130) size 784x20
+        RenderText {#text} at (0,0) size 190x19
+          text run at (0,0) width 190: &quot;This div is completely empty.&quot;
+      RenderBlock {DIV} at (0,166) size 708x22 [border: (1px dotted #0000FF)]
+        RenderText {#text} at (1,1) size 8x19
+          text run at (1,1) width 8: &quot;c&quot;
+      RenderBlock {P} at (0,204) size 784x20
+        RenderText {#text} at (0,0) size 347x19
+          text run at (0,0) width 347: &quot;This div contains some collapsable whitespace (a '\\n').&quot;
+      RenderBlock {DIV} at (0,240) size 708x22 [border: (1px dotted #0000FF)]
+        RenderText {#text} at (1,1) size 8x19
+          text run at (1,1) width 8: &quot;c&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {P} at (0,278) size 784x20
+        RenderText {#text} at (0,0) size 240x19
+          text run at (0,0) width 240: &quot;This div contains a self-closing p tag.&quot;
+      RenderBlock {DIV} at (0,314) size 708x38 [border: (1px dotted #0000FF)]
+        RenderBlock (anonymous) at (1,1) size 706x20
+          RenderText {#text} at (0,0) size 8x19
+            text run at (0,0) width 8: &quot;c&quot;
+        RenderBlock {P} at (1,37) size 706x0
+      RenderBlock {P} at (0,368) size 784x20
+        RenderText {#text} at (0,0) size 736x19
+          text run at (0,0) width 736: &quot;This div contains a self-closing p tag and some collapsable whitespace (two '\\n's before and after the self closing p.&quot;
+      RenderBlock {DIV} at (0,404) size 708x22 [border: (1px dotted #0000FF)]
+        RenderBlock {P} at (1,17) size 706x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingfontsizeclearsfromtypingstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/font-size-clears-from-typing-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/font-size-clears-from-typing-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/font-size-clears-from-typing-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+Tests that we don't serialize redundant font-size in typingStyle. There should be no span or style attribute around A or B below.See https://bugs.webkit.org/show_bug.cgi?id=26279.
+| &quot;A&quot;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3654864fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3654864-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3654864-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3654864-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; I &gt; SPAN &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [border: (2px solid #FF0000)]
+      RenderInline {SPAN} at (0,0) size 77x28
+        RenderText {#text} at (14,15) size 44x28
+          text run at (14,15) width 44: &quot;Foo &quot;
+        RenderInline {I} at (0,0) size 34x28
+          RenderText {#text} at (57,15) size 34x28
+            text run at (57,15) width 34: &quot;bar&quot;
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3659587fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3659587-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3659587-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3659587-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+Test that inserting a line break will preserve bolding. All of the text below should be bold.
+
+test
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execBoldCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execInsertLineBreakCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
+execTypeCharacterCommand: &lt;span id=&quot;test&quot;&gt;test&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3775316fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3775316-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3775316-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3775316-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 12x28
+          RenderText {#text} at (14,15) size 12x28
+            text run at (14,15) width 12: &quot;x&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3778059fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3778059-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3778059-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3778059-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x214 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x138
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;Test&quot;
+          RenderBlock (anonymous) at (0,54) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,108) size 676x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;Test&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3786362fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3786362-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3786362-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3786362-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This demonstrates a bug: copying an empty line that's implemented with a br doesn't put an interchange newline on the pasteboard.  There should be two blank lines after the 'a'.
+
+Before paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;a&quot;
+|   &lt;br&gt;
+|   &lt;br&gt;
+|   &quot;b&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+| &quot;
+&quot;
+
+After paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;a&quot;
+|   &lt;br&gt;
+|   &lt;br&gt;
+|   &quot;b&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3800346fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3800346-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3800346-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3800346-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x166 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x138
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;Test&quot;
+          RenderBlock {BLOCKQUOTE} at (40,54) size 676x30
+            RenderText {#text} at (0,1) size 40x28
+              text run at (0,1) width 40: &quot;Test&quot;
+          RenderBlock (anonymous) at (0,108) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3851164fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3851164-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3851164-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3851164-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 19 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x29
+        RenderText {#text} at (0,0) size 260x29
+          text run at (0,0) width 260: &quot;@@ -571,6 +607,7 @@&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsert3907422fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3907422-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3907422-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-3907422-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+Buggy code before fix would insert blockquote after body element in second paste
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+
+&quot;
+|     &lt;style&gt;
+|       &quot;
+.editing { 
+    word-wrap: break-word; 
+    -khtml-nbsp-mode: space; 
+    -khtml-line-break: after-white-space;
+}
+&quot;
+|     &quot;
+
+&quot;
+|     &lt;title&gt;
+|       &quot;Editing Test&quot;
+|     &quot; 
+&quot;
+|   &quot; 
+&quot;
+|   &lt;body&gt;
+|     class=&quot;editing&quot;
+|     contenteditable=&quot;&quot;
+|     id=&quot;test&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;foo&quot;
+|       &lt;blockquote&gt;
+|         &lt;span&gt;
+|           style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;bar&quot;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;baz&quot;
+|         &quot;foo&quot;
+|     &lt;blockquote&gt;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;bar&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;baz&lt;#selection-caret&gt;
+
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       &quot;
+    document.execCommand(&quot;SelectAll&quot;);
+    document.execCommand(&quot;Cut&quot;);
+    document.execCommand(&quot;Paste&quot;);
+    document.execCommand(&quot;Paste&quot;);
+    Markup.description(&quot;Buggy code before fix would insert blockquote after body element in second paste&quot;);
+    Markup.dump();
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertafterdelete001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-after-delete-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-after-delete-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-after-delete-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 34x28
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;test&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertatend01expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-01-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-01-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-01-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 384x19
+          text run at (0,0) width 384: &quot;This tests the visual position at the end of an editable block.&quot;
+      RenderBlock {P} at (0,36) size 784x40
+        RenderText {#text} at (0,0) size 729x39
+          text run at (0,0) width 601: &quot;When the document ended with a &lt;br&gt;, there were visual positions at both [br, 0] and [br, 1]. &quot;
+          text run at (600,0) width 129: &quot;This would produce&quot;
+          text run at (0,20) width 390: &quot;inconsistent behavior when editing at the end of a document.&quot;
+      RenderBlock {DIV} at (0,92) size 784x72 [border: (2px solid #AAAAFF)]
+        RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #FFAAAA)]
+          RenderText {#text} at (2,2) size 92x19
+            text run at (2,2) width 92: &quot;paragraph one&quot;
+        RenderBlock {DIV} at (2,26) size 780x24 [border: (2px solid #FFAAAA)]
+          RenderText {#text} at (2,2) size 92x19
+            text run at (2,2) width 92: &quot;paragraph two&quot;
+        RenderBlock (anonymous) at (2,50) size 780x20
+          RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertatend02expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-02-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-02-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-at-end-02-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 384x19
+          text run at (0,0) width 384: &quot;This tests the visual position at the end of an editable block.&quot;
+      RenderBlock {P} at (0,36) size 784x40
+        RenderText {#text} at (0,0) size 729x39
+          text run at (0,0) width 601: &quot;When the document ended with a &lt;br&gt;, there were visual positions at both [br, 0] and [br, 1]. &quot;
+          text run at (600,0) width 129: &quot;This would produce&quot;
+          text run at (0,20) width 390: &quot;inconsistent behavior when editing at the end of a document.&quot;
+      RenderBlock {DIV} at (0,92) size 784x72 [border: (2px solid #AAAAFF)]
+        RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #FFAAAA)]
+          RenderText {#text} at (2,2) size 92x19
+            text run at (2,2) width 92: &quot;paragraph one&quot;
+        RenderBlock {DIV} at (2,26) size 780x24 [border: (2px solid #FFAAAA)]
+          RenderText {#text} at (2,2) size 92x19
+            text run at (2,2) width 92: &quot;paragraph two&quot;
+        RenderBlock (anonymous) at (2,50) size 780x20
+          RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbeforelink1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-before-link-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-before-link-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-before-link-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests insertion before/after links. Text should always be inserted at the start or end of a link should be inserted outside of it.
+
+&lt;a id=&quot;link&quot; href=&quot;http://www.google.com/&quot;&gt;this should&lt;/a&gt; &lt;a href=&quot;http://www.google.com/&quot;&gt;this should&lt;/a&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbgfontexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-bg-font-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-bg-font-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-bg-font-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+
+        &lt;div id=&quot;dv&quot; contenteditable=&quot;&quot;&gt;&lt;span style=&quot;background-color: lightgrey&quot;&gt;lightgrey background &lt;font color=&quot;blue&quot;&gt;blue font color over lightgrey background&lt;/font&gt;&lt;/span&gt; 
+&lt;/div&gt;
+    
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 34x28
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;test&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 34x58
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;test&quot;
+          RenderBR {BR} at (47,37) size 1x0
+          RenderText {#text} at (14,45) size 34x28
+            text run at (14,45) width 34: &quot;test&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 67x28
+          RenderText {#text} at (14,15) size 67x28
+            text run at (14,15) width 67: &quot;testtest&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 44x58
+          RenderBR {BR} at (14,15) size 0x28
+          RenderText {#text} at (14,45) size 44x28
+            text run at (14,45) width 44: &quot;xfoo&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 1 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 37x58
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 37x28
+            text run at (14,45) width 37: &quot; bar&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+        RenderText {#text} at (14,45) size 38x28
+          text run at (14,45) width 38: &quot; foo&quot;
+caret: position 1 of child 1 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbr009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 764x39
+          text run at (0,0) width 322: &quot;This tests for a bug in InsertLineBreakCommand. &quot;
+          text run at (321,0) width 443: &quot;Only one line break should be inserted and the caret should end up at&quot;
+          text run at (0,20) width 220: &quot;the end of the bordered div below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x62 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 81x19
+          text run at (1,1) width 81: &quot;Hello world.&quot;
+          text run at (81,1) width 1: &quot; &quot;
+        RenderText {#text} at (1,21) size 0x19
+          text run at (1,21) width 0: &quot; &quot;
+        RenderText {#text} at (1,41) size 0x19
+          text run at (1,41) width 0: &quot; &quot;
+caret: position 0 of child 2 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrattabspan001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 155x58
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderBR {BR} at (24,37) size 1x0
+          RenderText {#text} at (14,45) size 12x28
+            text run at (14,45) width 12: &quot;x&quot;
+          RenderInline {SPAN} at (0,0) size 132x28
+            RenderText {#text} at (26,45) size 132x28
+              text run at (26,45) width 132: &quot;\x{9}\x{9}\x{9}&quot;
+          RenderText {#text} at (158,45) size 11x28
+            text run at (158,45) width 11: &quot;z&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrattabspan002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 107x58
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderInline {SPAN} at (0,0) size 38x28
+            RenderText {#text} at (24,15) size 38x28
+              text run at (24,15) width 38: &quot;\x{9}&quot;
+          RenderBR {BR} at (62,37) size 0x0
+          RenderText {#text} at (14,45) size 12x28
+            text run at (14,45) width 12: &quot;x&quot;
+          RenderInline {SPAN} at (0,0) size 84x28
+            RenderText {#text} at (26,45) size 84x28
+              text run at (26,45) width 84: &quot;\x{9}\x{9}&quot;
+          RenderText {#text} at (110,45) size 11x28
+            text run at (110,45) width 11: &quot;z&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrattabspan003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-at-tabspan-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 144x58
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderInline {SPAN} at (0,0) size 134x28
+            RenderText {#text} at (24,15) size 134x28
+              text run at (24,15) width 134: &quot;\x{9}\x{9}\x{9}&quot;
+          RenderBR {BR} at (158,37) size 0x0
+          RenderText {#text} at (14,45) size 23x28
+            text run at (14,45) width 23: &quot;xz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 3 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x120
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 277x28
+            text run at (0,1) width 277: &quot;Splitting Mail blockquotes.&quot;
+        RenderBlock {DIV} at (0,30) size 784x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 376x19
+            text run at (0,30) width 376: &quot;Two blockquotes, with an unquoted blank line in between.&quot;
+          RenderBR {BR} at (375,45) size 1x0
+          RenderText {#text} at (0,50) size 411x19
+            text run at (0,50) width 411: &quot;The first blockquote contains two lines, the second one is blank.&quot;
+          RenderBR {BR} at (410,65) size 1x0
+          RenderText {#text} at (0,70) size 318x19
+            text run at (0,70) width 318: &quot;The second blockquote is a single non-blank line.&quot;
+      RenderBlock {DIV} at (0,120) size 784x234 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 118x28
+            text run at (0,1) width 118: &quot;My citation:&quot;
+        RenderBlock {DIV} at (14,68) size 756x152
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderBR {BR} at (0,1) size 0x28
+          RenderBlock (anonymous) at (0,64) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,118) size 676x34 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x120
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 277x28
+            text run at (0,1) width 277: &quot;Splitting Mail blockquotes.&quot;
+        RenderBlock {DIV} at (0,30) size 784x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 376x19
+            text run at (0,30) width 376: &quot;Two blockquotes, with an unquoted blank line in between.&quot;
+          RenderBR {BR} at (375,45) size 1x0
+          RenderText {#text} at (0,50) size 411x19
+            text run at (0,50) width 411: &quot;The first blockquote contains two lines, the second one is blank.&quot;
+          RenderBR {BR} at (410,65) size 1x0
+          RenderText {#text} at (0,70) size 318x19
+            text run at (0,70) width 318: &quot;The second blockquote is a single non-blank line.&quot;
+      RenderBlock {DIV} at (0,120) size 784x234 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 118x28
+            text run at (0,1) width 118: &quot;My citation:&quot;
+        RenderBlock {DIV} at (14,68) size 756x152
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderBlock {DIV} at (0,0) size 672x30
+                  RenderBR {BR} at (0,1) size 0x28
+          RenderBlock (anonymous) at (0,64) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,118) size 676x34 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x120
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 277x28
+            text run at (0,1) width 277: &quot;Splitting Mail blockquotes.&quot;
+        RenderBlock {DIV} at (0,30) size 784x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 376x19
+            text run at (0,30) width 376: &quot;Two blockquotes, with an unquoted blank line in between.&quot;
+          RenderBR {BR} at (375,45) size 1x0
+          RenderText {#text} at (0,50) size 411x19
+            text run at (0,50) width 411: &quot;The first blockquote contains two lines, the second one is blank.&quot;
+          RenderBR {BR} at (410,65) size 1x0
+          RenderText {#text} at (0,70) size 341x19
+            text run at (0,70) width 341: &quot;The second blockquote contains two non-blank lines.&quot;
+      RenderBlock {DIV} at (0,120) size 784x264 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 118x28
+            text run at (0,1) width 118: &quot;My citation:&quot;
+        RenderBlock {DIV} at (14,68) size 756x182
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderBlock {DIV} at (0,0) size 672x30
+                  RenderBR {BR} at (0,1) size 0x28
+          RenderBlock (anonymous) at (0,64) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,118) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderBlock {DIV} at (0,0) size 672x30
+                  RenderText {#text} at (0,1) size 136x28
+                    text run at (0,1) width 136: &quot;one and a half&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x120
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 277x28
+            text run at (0,1) width 277: &quot;Splitting Mail blockquotes.&quot;
+        RenderBlock {DIV} at (0,30) size 784x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 376x19
+            text run at (0,30) width 376: &quot;Two blockquotes, with an unquoted blank line in between.&quot;
+          RenderBR {BR} at (375,45) size 1x0
+          RenderText {#text} at (0,50) size 411x19
+            text run at (0,50) width 411: &quot;The first blockquote contains two lines, the second one is blank.&quot;
+          RenderBR {BR} at (410,65) size 1x0
+          RenderText {#text} at (0,70) size 341x19
+            text run at (0,70) width 341: &quot;The second blockquote contains two non-blank lines.&quot;
+      RenderBlock {DIV} at (0,120) size 784x264 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 118x28
+            text run at (0,1) width 118: &quot;My citation:&quot;
+        RenderBlock {DIV} at (14,68) size 756x182
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderBlock {DIV} at (0,0) size 672x30
+                  RenderBR {BR} at (0,1) size 0x28
+                RenderBlock (anonymous) at (0,30) size 672x0
+          RenderBlock (anonymous) at (0,64) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,118) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderText {#text} at (0,1) size 136x28
+                  text run at (0,1) width 136: &quot;one and a half&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x120
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 277x28
+            text run at (0,1) width 277: &quot;Splitting Mail blockquotes.&quot;
+        RenderBlock {DIV} at (0,30) size 784x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 376x19
+            text run at (0,30) width 376: &quot;Two blockquotes, with an unquoted blank line in between.&quot;
+          RenderBR {BR} at (375,45) size 1x0
+          RenderText {#text} at (0,50) size 411x19
+            text run at (0,50) width 411: &quot;The first blockquote contains two lines, the second one is blank.&quot;
+          RenderBR {BR} at (410,65) size 1x0
+          RenderText {#text} at (0,70) size 318x19
+            text run at (0,70) width 318: &quot;The second blockquote is a single non-blank line.&quot;
+      RenderBlock {DIV} at (0,120) size 784x234 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 118x28
+            text run at (0,1) width 118: &quot;My citation:&quot;
+        RenderBlock {DIV} at (14,68) size 756x152
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderBlock {DIV} at (0,0) size 672x30
+                  RenderBR {BR} at (0,1) size 0x28
+          RenderBlock (anonymous) at (0,64) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,118) size 676x34 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertbrquoted006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-br-quoted-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x120
+        RenderBlock {DIV} at (0,0) size 784x30
+          RenderText {#text} at (0,1) size 277x28
+            text run at (0,1) width 277: &quot;Splitting Mail blockquotes.&quot;
+        RenderBlock {DIV} at (0,30) size 784x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 376x19
+            text run at (0,30) width 376: &quot;Two blockquotes, with an unquoted blank line in between.&quot;
+          RenderBR {BR} at (375,45) size 1x0
+          RenderText {#text} at (0,50) size 411x19
+            text run at (0,50) width 411: &quot;The first blockquote contains two lines, the second one is blank.&quot;
+          RenderBR {BR} at (410,65) size 1x0
+          RenderText {#text} at (0,70) size 411x19
+            text run at (0,70) width 411: &quot;The second blockquote contains two lines, the first one is blank.&quot;
+          RenderBR {BR} at (410,85) size 1x0
+      RenderBlock {DIV} at (0,120) size 784x312 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 118x28
+            text run at (0,1) width 118: &quot;My citation:&quot;
+        RenderBlock {DIV} at (14,68) size 756x206
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock {DIV} at (2,2) size 672x30
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderBlock {DIV} at (0,0) size 672x30
+                RenderBlock {DIV} at (0,0) size 672x30
+                  RenderBR {BR} at (0,1) size 0x28
+            RenderBlock (anonymous) at (2,62) size 672x0
+          RenderBlock (anonymous) at (0,88) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {BLOCKQUOTE} at (40,142) size 676x64 [border: (2px solid #0000FF)]
+            RenderBlock (anonymous) at (2,2) size 672x30
+              RenderBR {BR} at (0,1) size 0x28
+            RenderBlock {DIV} at (2,32) size 672x30
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertcharacterinfirstlettercrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-character-in-first-letter-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-character-in-first-letter-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-character-in-first-letter-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+●●
+PASS if no assert or crash in debug.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertcompositionwhitespaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-composition-whitespace-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-composition-whitespace-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-composition-whitespace-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+CONSOLE MESSAGE: line 31: ReferenceError: Can't find variable: textInputController
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;test&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 12x28
+          text run at (14,15) width 12: &quot;x&quot;
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;test&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 12x28
+          text run at (14,15) width 12: &quot;x&quot;
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;test&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 46x28
+          text run at (14,15) width 46: &quot;xtest&quot;
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;test&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;test&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 12x28
+          text run at (14,15) width 12: &quot;x&quot;
+caret: position 1 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 46x28
+          text run at (14,15) width 46: &quot;xtest&quot;
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 37x28
+          text run at (14,15) width 37: &quot; bar&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 44x28
+          text run at (14,15) width 44: &quot;xfoo&quot;
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 23x19
+          text run at (0,0) width 23: &quot;test&quot;
+      RenderBlock {DIV} at (0,20) size 784x20
+        RenderText {#text} at (0,0) size 8x19
+          text run at (0,0) width 8: &quot;x&quot;
+caret: position 1 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [border: (2px solid #FF0000)]
+      RenderBlock {DIV} at (14,14) size 756x30
+        RenderBR {BR} at (0,1) size 0x28
+      RenderBlock {DIV} at (14,44) size 756x30
+        RenderText {#text} at (0,1) size 12x28
+          text run at (0,1) width 12: &quot;x&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 623x28
+          text run at (0,1) width 623: &quot;Test inserting paragraphs: should see empty red box above \&quot;baz\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x12
+      RenderBlock {DIV} at (0,42) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,100) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock (anonymous) at (0,158) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,188) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {#text} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-012-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-012-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-012-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 625x28
+          text run at (0,1) width 625: &quot;Test inserting paragraphs: should see empty red box below \&quot;baz\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x12
+      RenderBlock {DIV} at (0,42) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock {DIV} at (0,100) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock (anonymous) at (0,158) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,188) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {BR} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-013-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-013-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-013-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 631x28
+          text run at (0,1) width 631: &quot;Test inserting paragraphs: should see empty blue box above \&quot;bar\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x36
+      RenderBlock {DIV} at (0,66) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock {DIV} at (0,124) size 784x58 [border: (2px solid #0000FF)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock (anonymous) at (0,182) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,212) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,270) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 5 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv014expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-014-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-014-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-014-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 3 of #text &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 633x28
+          text run at (0,1) width 633: &quot;Test inserting paragraphs: should see empty blue box below \&quot;bar\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x36
+      RenderBlock {DIV} at (0,66) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock (anonymous) at (0,124) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,154) size 784x174 [border: (2px solid #0000FF)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderBR {BR} at (0,1) size 0x28
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderBlock {DIV} at (14,102) size 756x58 [border: (2px solid #FF0000)]
+          RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {BR} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv015expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-015-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-015-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-015-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 622x28
+          text run at (0,1) width 622: &quot;Test inserting paragraphs: should see empty red box above \&quot;foo\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x12
+      RenderBlock {DIV} at (0,42) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock (anonymous) at (0,100) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,130) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,188) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {#text} of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv016expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-016-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-016-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-016-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 685x28
+          text run at (0,1) width 685: &quot;Test inserting paragraphs: should see two empty red boxes below \&quot;foo\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x12
+      RenderBlock {DIV} at (0,42) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock (anonymous) at (0,100) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,130) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,188) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {BR} of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv017expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-017-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-017-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-017-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 685x28
+          text run at (0,1) width 685: &quot;Test inserting paragraphs: should see two empty red boxes below \&quot;foo\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x12
+      RenderBlock {DIV} at (0,42) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 34x28
+          text run at (14,15) width 34: &quot;baz&quot;
+      RenderBlock (anonymous) at (0,100) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,130) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,188) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock {DIV} at (0,246) size 784x58 [border: (2px solid #FF0000)]
+        RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {BR} of child 8 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv018expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-018-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-018-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-018-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x30
+        RenderText {#text} at (0,1) size 661x28
+          text run at (0,1) width 661: &quot;Test inserting paragraphs: should see an empty blue box below \&quot;bar\&quot;&quot;
+      RenderBlock {DIV} at (0,30) size 784x36
+      RenderBlock (anonymous) at (0,66) size 784x30
+        RenderText {#text} at (0,1) size 31x28
+          text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,96) size 784x116 [border: (2px solid #0000FF)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderBR {BR} at (0,1) size 0x28
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;baz&quot;
+caret: position 0 of child 0 {BR} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv019expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-019-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-019-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-019-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x568
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,1) size 746x58
+          text run at (0,1) width 740: &quot;Test inserting paragraphs: should see an empty blue box above an empty line&quot;
+          text run at (739,1) width 7: &quot; &quot;
+          text run at (0,31) width 235: &quot;between \&quot;foo\&quot; and \&quot;bar\&quot;&quot;
+      RenderBlock {DIV} at (0,60) size 784x36
+      RenderBlock {P} at (0,120) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 32x28
+          text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,202) size 784x58 [border: (2px solid #0000FF)]
+        RenderBR {BR} at (14,15) size 0x28
+      RenderBlock (anonymous) at (0,260) size 784x30
+        RenderBR {BR} at (0,1) size 0x28
+      RenderBlock {P} at (0,314) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 31x28
+          text run at (14,15) width 31: &quot;bar&quot;
+caret: position 0 of child 5 {BR} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv020expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-020-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-020-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-020-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 7 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,1) size 765x58
+          text run at (0,1) width 759: &quot;Test inserting paragraphs: should see a blue box with \&quot;bar\&quot; in it, and two blank&quot;
+          text run at (758,1) width 7: &quot; &quot;
+          text run at (0,31) width 292: &quot;lines between \&quot;foo\&quot; and \&quot;bar\&quot;.&quot;
+      RenderBlock {DIV} at (0,60) size 784x36
+      RenderBlock (anonymous) at (0,96) size 784x90
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (0,1) size 32x28
+            text run at (0,1) width 32: &quot;foo&quot;
+        RenderBR {BR} at (31,23) size 1x0
+        RenderBR {BR} at (0,31) size 0x28
+        RenderBR {BR} at (0,61) size 0x28
+      RenderBlock {DIV} at (0,186) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 31x28
+          text run at (14,15) width 31: &quot;bar&quot;
+caret: position 0 of child 0 {#text} of child 7 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv021expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-021-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-021-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-021-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+Test inserting paragraphs: should see &quot;foo&quot;, then an empty line, then &quot;bar&quot; in the next line.
+Fix for this bug: &lt;rdar://problem/3924579&gt; REGRESSION (Mail): After deleting, hitting return key does not insert visible newline
+| &quot;
+&quot;
+| &lt;div&gt;
+|   style=&quot;border: none; height: 12px&quot;
+| &quot;
+&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;foo&quot;
+| &lt;div&gt;
+|   &lt;br&gt;
+| &lt;div&gt;
+|   &quot;&lt;#selection-caret&gt;bar
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv022expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-022-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-022-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-022-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x568
+      RenderBlock (anonymous) at (0,0) size 784x120
+        RenderText {#text} at (0,1) size 759x88
+          text run at (0,1) width 753: &quot;Test inserting paragraphs: should see \&quot;foo\&quot; in a blue box, then a blue box with&quot;
+          text run at (752,1) width 7: &quot; &quot;
+          text run at (0,31) width 747: &quot;with two lines in it: First line a bold \&quot;x\&quot;; second line a non-bold \&quot;bar\&quot;. Fix for&quot;
+          text run at (746,31) width 7: &quot; &quot;
+          text run at (0,61) width 90: &quot;this bug: &quot;
+        RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+          RenderText {#text} at (89,61) size 257x28
+            text run at (89,61) width 257: &quot;&lt;rdar://problem/3927554&gt;&quot;
+        RenderText {#text} at (345,61) size 783x58
+          text run at (345,61) width 432: &quot; Style info applied to remainder of document&quot;
+          text run at (776,61) width 7: &quot; &quot;
+          text run at (0,91) width 242: &quot;after a newline is entered&quot;
+      RenderBlock {DIV} at (0,120) size 784x12
+      RenderBlock {P} at (0,156) size 784x58 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 32x28
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+      RenderBlock {P} at (0,238) size 784x88 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 12x28
+          RenderText {#text} at (14,15) size 12x28
+            text run at (14,15) width 12: &quot;x&quot;
+          RenderBR {BR} at (26,37) size 0x0 [bgcolor=#008000]
+        RenderText {#text} at (14,45) size 31x28
+          text run at (14,45) width 31: &quot;bar&quot;
+caret: position 1 of child 0 {#text} of child 0 {B} of child 6 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv023expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-023-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-023-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-023-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 16 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x708
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x708
+  RenderBlock {HTML} at (0,0) size 800x708
+    RenderBody {BODY} at (8,8) size 784x676
+      RenderBlock (anonymous) at (0,0) size 784x90
+        RenderText {#text} at (0,1) size 784x58
+          text run at (0,1) width 779: &quot;Test inserting paragraphs and managing typing style correctly: \&quot;x\&quot; under \&quot;line 2\&quot;&quot;
+          text run at (778,1) width 6: &quot; &quot;
+          text run at (0,31) width 315: &quot;should be bold. Fix for this bug: &quot;
+        RenderInline {A} at (0,0) size 258x28 [color=#0000EE]
+          RenderText {#text} at (314,31) size 258x28
+            text run at (314,31) width 258: &quot;&lt;rdar://problem/3939523&gt;&quot;
+        RenderText {#text} at (571,31) size 763x58
+          text run at (571,31) width 186: &quot; in some cases, text&quot;
+          text run at (756,31) width 7: &quot; &quot;
+          text run at (0,61) width 495: &quot;does not retain style info after pressing return twice&quot;
+      RenderBlock {DIV} at (0,90) size 784x12
+      RenderBlock {P} at (0,126) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 54x28
+          text run at (14,15) width 54: &quot;line 1&quot;
+      RenderBlock {P} at (0,208) size 784x58 [border: (2px solid #0000FF)]
+        RenderBR {BR} at (14,15) size 0x28 [bgcolor=#008000]
+      RenderBlock {P} at (0,290) size 784x58 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 56x28
+          RenderText {#text} at (14,15) size 56x28
+            text run at (14,15) width 56: &quot;line 2&quot;
+      RenderBlock {P} at (0,372) size 784x58 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 0x28
+          RenderBR {BR} at (14,15) size 0x28 [bgcolor=#008000]
+      RenderBlock {P} at (0,454) size 784x58 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 12x28
+          RenderText {#text} at (14,15) size 12x28
+            text run at (14,15) width 12: &quot;x&quot;
+      RenderBlock {P} at (0,536) size 784x58 [border: (2px solid #0000FF)]
+        RenderBR {BR} at (14,15) size 0x28 [bgcolor=#008000]
+      RenderBlock {P} at (0,618) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 54x28
+          text run at (14,15) width 54: &quot;line 3&quot;
+caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv024expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-024-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-024-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-024-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,72 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x568
+      RenderBlock (anonymous) at (0,0) size 784x120
+        RenderText {#text} at (0,1) size 741x58
+          text run at (0,1) width 735: &quot;Test inserting paragraphs and managing typing style correctly: Only \&quot;line 1\&quot;&quot;
+          text run at (734,1) width 7: &quot; &quot;
+          text run at (0,31) width 618: &quot;should be bold. Other lines should be non-bold. Fix for this bug:&quot;
+          text run at (617,31) width 7: &quot; &quot;
+        RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+          RenderText {#text} at (0,61) size 257x28
+            text run at (0,61) width 257: &quot;&lt;rdar://problem/3944492&gt;&quot;
+        RenderText {#text} at (256,61) size 716x58
+          text run at (256,61) width 454: &quot; after pressing return twice, text is bold when it&quot;
+          text run at (709,61) width 7: &quot; &quot;
+          text run at (0,91) width 116: &quot;shouldn't be&quot;
+      RenderBlock {DIV} at (0,120) size 784x12
+      RenderBlock {P} at (0,156) size 784x58 [border: (2px solid #0000FF)]
+        RenderInline {B} at (0,0) size 56x28
+          RenderText {#text} at (14,15) size 56x28
+            text run at (14,15) width 56: &quot;line 1&quot;
+      RenderBlock {P} at (0,238) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 36x28
+          text run at (14,15) width 36: &quot;xxx&quot;
+      RenderBlock {P} at (0,320) size 784x58 [border: (2px solid #0000FF)]
+        RenderBR {BR} at (14,15) size 0x28 [bgcolor=#008000]
+      RenderBlock {P} at (0,402) size 784x58 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 36x28
+          text run at (14,15) width 36: &quot;xxx&quot;
+caret: position 3 of child 0 {#text} of child 8 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv025expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-025-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-025-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-025-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 750x58
+          text run at (14,15) width 750: &quot;Should see \&quot;foo\&quot; and \&quot;bar\&quot; each in a separate red box. Note that the \&quot;foo\&quot; text&quot;
+          text run at (14,45) width 153: &quot;is really \&quot;foo \&quot;. &quot;
+          text run at (166,45) width 63: &quot;There &quot;
+        RenderInline {B} at (0,0) size 51x28
+          RenderText {#text} at (228,45) size 51x28
+            text run at (228,45) width 51: &quot;must&quot;
+        RenderText {#text} at (278,45) size 315x28
+          text run at (278,45) width 315: &quot; be a space at the end of the line.&quot;
+      RenderBlock {DIV} at (0,112) size 784x116
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 38x28
+            text run at (14,15) width 32: &quot;foo&quot;
+            text run at (45,15) width 7: &quot; &quot;
+        RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 31x28
+            text run at (14,15) width 31: &quot;bar&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv026expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-026-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-026-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-026-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 716x58
+            text run at (0,31) width 716: &quot;Inserting blocks for paragraphs should do a better job of finding a block to&quot;
+            text run at (0,61) width 116: &quot;insert after. &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (115,61) size 257x28
+              text run at (115,61) width 257: &quot;&lt;rdar://problem/3996605&gt;&quot;
+          RenderText {#text} at (371,61) size 727x58
+            text run at (371,61) width 356: &quot; Insert paragraph command puts new&quot;
+            text run at (0,91) width 548: &quot;block in wrong place, creating difficult-to-handle HTML&quot;
+        RenderBlock {DIV} at (14,150) size 756x60
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 438x28
+            text run at (0,31) width 438: &quot;Should see this content in the red box below: &quot;
+          RenderInline {B} at (0,0) size 21x28
+            RenderText {#text} at (437,31) size 21x28
+              text run at (437,31) width 21: &quot;fo&quot;
+          RenderText {#text} at (457,31) size 13x28
+            text run at (457,31) width 13: &quot;x&quot;
+      RenderBlock {DIV} at (0,248) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 20x28
+            RenderText {#text} at (2,3) size 20x28
+              text run at (2,3) width 20: &quot;fo&quot;
+          RenderText {#text} at (21,3) size 13x28
+            text run at (21,3) width 13: &quot;x&quot;
+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="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertdiv027expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-027-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-027-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-div-027-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,1) size 782x58
+          text run at (0,1) width 776: &quot;Test inserting paragraphs: should see two blue boxes, where the second blue box&quot;
+          text run at (775,1) width 7: &quot; &quot;
+          text run at (0,31) width 242: &quot;starts with an empty line.&quot;
+      RenderBlock {DIV} at (0,60) size 784x36
+      RenderBlock {DIV} at (0,96) size 784x116 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;baz&quot;
+        RenderBlock (anonymous) at (14,72) size 756x30
+          RenderText {#text} at (0,1) size 31x28
+            text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,212) size 784x174 [border: (2px solid #0000FF)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderBR {BR} at (0,1) size 0x28
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderBlock {DIV} at (14,102) size 756x58 [border: (2px solid #FF0000)]
+          RenderBR {BR} at (14,15) size 0x28
+caret: position 0 of child 0 {BR} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph01expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-01-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-01-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-01-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 750x39
+          text run at (0,0) width 362: &quot;This tests inserting a paragraph separator before a table. &quot;
+          text run at (361,0) width 389: &quot;There should be an empty paragraph before the table and the&quot;
+          text run at (0,20) width 232: &quot;caret should be just before the table.&quot;
+      RenderBlock {DIV} at (0,56) size 784x50
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderTable {TABLE} at (0,20) size 32x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 30x28
+            RenderTableRow {TR} at (0,2) size 30x24
+              RenderTableCell {TD} at (2,2) size 26x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 22x19
+                  text run at (2,2) width 22: &quot;foo&quot;
+caret: position 0 of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph02expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-02-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-02-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-02-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x39
+          text run at (0,0) width 351: &quot;This tests inserting a paragraph separator after a table. &quot;
+          text run at (350,0) width 408: &quot;There should be an empty paragraph between the table and 'bar'&quot;
+          text run at (0,20) width 304: &quot;and the caret should be in the empty paragraph.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderTable {TABLE} at (0,0) size 32x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 30x28
+            RenderTableRow {TR} at (0,2) size 30x24
+              RenderTableCell {TD} at (2,2) size 26x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 22x19
+                  text run at (2,2) width 22: &quot;foo&quot;
+        RenderBlock (anonymous) at (0,30) size 784x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderText {#text} at (0,20) size 21x19
+            text run at (0,20) width 21: &quot;bar&quot;
+caret: position 0 of child 1 {BR} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph03expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-03-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-03-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-03-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 425: &quot;This tests inserting a paragraph separator before a horizontal rule. &quot;
+          text run at (424,0) width 352: &quot;You should see 'foo', empty paragraph, horizontal rule,&quot;
+          text run at (0,20) width 379: &quot;'bar', and the caret should be just before the horizontal rule.&quot;
+      RenderBlock {DIV} at (0,56) size 784x78
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {HR} at (0,28) size 784x2 [border: (1px inset #000000)]
+        RenderBlock (anonymous) at (0,38) size 784x20
+          RenderText {#text} at (0,0) size 8x19
+            text run at (0,0) width 8: &quot;b&quot;
+        RenderBlock {DIV} at (0,58) size 784x20
+          RenderText {#text} at (0,0) size 13x19
+            text run at (0,0) width 13: &quot;ar&quot;
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph04expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-04-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-04-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-04-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; B &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; B &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; B &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; B &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; B &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; B &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 765x39
+          text run at (0,0) width 413: &quot;This tests inserting a paragraph separator after a horizontal rule. &quot;
+          text run at (412,0) width 353: &quot;You should see 'foo', empty paragraph, horizontal rule,&quot;
+          text run at (0,20) width 372: &quot;'bar', and the caret should be just after the horizontal rule. &quot;
+        RenderInline {B} at (0,0) size 776x39
+          RenderText {#text} at (371,20) size 776x39
+            text run at (371,20) width 171: &quot;This demonstrates 8345. &quot;
+            text run at (541,20) width 235: &quot;The caret after a horizontal rule is&quot;
+            text run at (0,40) width 436: &quot;drawn in the same location as the caret before a horizontal rule.&quot;
+      RenderBlock (anonymous) at (0,76) size 784x0
+        RenderInline {B} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock (anonymous) at (0,76) size 784x78
+        RenderBlock {DIV} at (0,0) size 784x78
+          RenderBlock (anonymous) at (0,0) size 784x20
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+          RenderBlock {HR} at (0,28) size 784x2 [border: (1px inset #000000)]
+          RenderBlock (anonymous) at (0,38) size 784x20
+            RenderText {#text} at (0,0) size 17x19
+              text run at (0,0) width 17: &quot;ba&quot;
+          RenderBlock {DIV} at (0,58) size 784x20
+            RenderText {#text} at (0,0) size 8x19
+              text run at (0,0) width 8: &quot;r&quot;
+      RenderBlock (anonymous) at (0,154) size 784x0
+        RenderInline {B} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 1 {B} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraph05expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-05-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-05-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-05-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 618x19
+          text run at (0,0) width 618: &quot;This tests inserting a paragraph separator before a special element at the start of an editable root.&quot;
+      RenderBlock {P} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: &quot;Visually, it should leave a blank line before the link, and the caret selection at the start of the link.&quot;
+      RenderBlock {P} at (0,72) size 784x40
+        RenderText {#text} at (0,0) size 730x39
+          text run at (0,0) width 730: &quot;Structurally, the empty paragraph element should go before the anchor element, rather than inside of it. See Radar&quot;
+          text run at (0,20) width 68: &quot;#5452675.&quot;
+      RenderBlock {DIV} at (0,128) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderInline {A} at (0,0) size 57x19 [color=#0000EE]
+            RenderText {#text} at (0,0) size 57x19
+              text run at (0,0) width 57: &quot;applesite&quot;
+caret: position 0 of child 0 {#text} of child 1 {A} of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraphatendoflineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-at-end-of-line-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-at-end-of-line-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-at-end-of-line-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; A &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; A &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests the fix for &lt;rdar://problem/6633727&gt; - Hitting return at the end of a line with an anchor jumps me to the bottom of the message.
+If the test has passed, the numbers should be in order, and only &quot;1&quot; should be a link.
+| &lt;a&gt;
+|   href=&quot;#&quot;
+|   id=&quot;anchor&quot;
+|   &quot;1&quot;
+| &lt;div&gt;
+|   &quot;2&lt;#selection-caret&gt;&quot;
+|   &lt;br&gt;
+|   &lt;div&gt;
+|     &quot;3&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertparagraphselectionoutsidecontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test ensures that WebKit does not crash or edit the content when the selection is outside of the contenteditable area.
+
+FAIL: expected xxx but was changed to xxx
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertpastebidicontrolexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paste-bidi-control-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paste-bidi-control-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-paste-bidi-control-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+a‫b!‬
+‫b!‬
+a‫b!‬
+‫b!‬
+==================================
+FAILED: copy/paste a&amp;#x202B;b!&amp;#x202C;
+actual (character in Unicode value): 60 102 111 110 116 32 115 105 122 101 61 34 51 34 62 60 115 112 97 110 32 115 116 121 108 101 61 34 45 119 101 98 107 105 116 45 116 101 120 116 45 115 105 122 101 45 97 100 106 117 115 116 58 32 97 117 116 111 59 32 98 97 99 107 103 114 111 117 110 100 45 99 111 108 111 114 58 32 114 103 98 97 40 50 53 53 44 32 50 53 53 44 32 50 53 53 44 32 48 41 59 34 62 97 8235 98 33 8236 60 47 115 112 97 110 62 60 47 102 111 110 116 62
+expected (character in Unicode value): 97 8235 98 33 8236
+==================================
+FAILED: copy/paste &amp;#x202B;b!&amp;#x202C;
+actual (character in Unicode value): 60 102 111 110 116 32 115 105 122 101 61 34 51 34 62 60 115 112 97 110 32 115 116 121 108 101 61 34 45 119 101 98 107 105 116 45 116 101 120 116 45 115 105 122 101 45 97 100 106 117 115 116 58 32 97 117 116 111 59 32 98 97 99 107 103 114 111 117 110 100 45 99 111 108 111 114 58 32 114 103 98 97 40 50 53 53 44 32 50 53 53 44 32 50 53 53 44 32 48 41 59 34 62 8235 98 33 8236 60 47 115 112 97 110 62 60 47 102 111 110 116 62
+expected (character in Unicode value): 8235 98 33 8236
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertspaceinemptydocexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-space-in-empty-doc-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-space-in-empty-doc-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-space-in-empty-doc-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 38x28
+          text run at (14,15) width 38: &quot; foo&quot;
+caret: position 4 of child 0 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 80x28
+          RenderInline {SPAN} at (0,0) size 48x28
+            RenderText {#text} at (14,15) size 48x28
+              text run at (14,15) width 48: &quot;\x{9}&quot;
+          RenderText {#text} at (62,15) size 32x28
+            text run at (62,15) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 48x28
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderInline {SPAN} at (0,0) size 17x28
+            RenderText {#text} at (45,15) size 17x28
+              text run at (45,15) width 17: &quot;\x{9}&quot;
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 60x28
+          RenderText {#text} at (14,15) size 20x28
+            text run at (14,15) width 20: &quot;fo&quot;
+          RenderInline {SPAN} at (0,0) size 29x28
+            RenderText {#text} at (33,15) size 29x28
+              text run at (33,15) width 29: &quot;\x{9}&quot;
+          RenderText {#text} at (62,15) size 12x28
+            text run at (62,15) width 12: &quot;o&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttab004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-tab-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 80x58
+          RenderBR {BR} at (14,15) size 0x28
+          RenderInline {SPAN} at (0,0) size 48x28
+            RenderText {#text} at (14,45) size 48x28
+              text run at (14,45) width 48: &quot;\x{9}&quot;
+          RenderText {#text} at (62,45) size 32x28
+            text run at (62,45) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextattabspan001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 155x28
+          RenderText {#text} at (14,15) size 23x28
+            text run at (14,15) width 23: &quot;ax&quot;
+          RenderInline {SPAN} at (0,0) size 122x28
+            RenderText {#text} at (36,15) size 122x28
+              text run at (36,15) width 122: &quot;\x{9}\x{9}\x{9}&quot;
+          RenderText {#text} at (158,15) size 11x28
+            text run at (158,15) width 11: &quot;z&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextattabspan002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 155x28
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderInline {SPAN} at (0,0) size 38x28
+            RenderText {#text} at (24,15) size 38x28
+              text run at (24,15) width 38: &quot;\x{9}&quot;
+          RenderText {#text} at (62,15) size 12x28
+            text run at (62,15) width 12: &quot;x&quot;
+          RenderInline {SPAN} at (0,0) size 84x28
+            RenderText {#text} at (74,15) size 84x28
+              text run at (74,15) width 84: &quot;\x{9}\x{9}&quot;
+          RenderText {#text} at (158,15) size 11x28
+            text run at (158,15) width 11: &quot;z&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextattabspan003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-at-tabspan-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 167x28
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderInline {SPAN} at (0,0) size 134x28
+            RenderText {#text} at (24,15) size 134x28
+              text run at (24,15) width 134: &quot;\x{9}\x{9}\x{9}&quot;
+          RenderText {#text} at (158,15) size 12x28
+            text run at (158,15) width 12: &quot;x&quot;
+          RenderText {#text} at (170,15) size 11x28
+            text run at (170,15) width 11: &quot;z&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginserttextwithnewlinesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-with-newlines-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-with-newlines-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-text-with-newlines-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x148 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 80x118
+          RenderText {#text} at (14,15) size 80x28
+            text run at (14,15) width 80: &quot;Foo xxx&quot;
+          RenderBR {BR} at (93,37) size 1x0
+          RenderInline {I} at (0,0) size 34x28
+            RenderText {#text} at (14,45) size 34x28
+              text run at (14,45) width 34: &quot;bar&quot;
+          RenderText {#text} at (47,45) size 43x28
+            text run at (47,45) width 43: &quot; xxx&quot;
+          RenderBR {BR} at (89,67) size 1x0
+          RenderBR {BR} at (14,75) size 0x28
+          RenderText {#text} at (14,105) size 70x28
+            text run at (14,105) width 70: &quot;bazxxx&quot;
+caret: position 6 of child 6 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinginsertthaicharacters001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-thai-characters-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-thai-characters-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/insert-thai-characters-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This test tests whether we can insert a Thai character after a Thai &quot;prepend&quot; character.
+
+If this test succeeds, you can see a string &quot;succeeded&quot; below.
+
+อยากไปญี่ปุ่น
+Succeeded.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertinglinebreakexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/line-break-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/line-break-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/line-break-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 766x39
+          text run at (0,0) width 288: &quot;This testcase used to break InsertLineBreak. &quot;
+          text run at (287,0) width 479: &quot;The editable region below should have two empty paragraphs in it, and the&quot;
+          text run at (0,20) width 190: &quot;caret should be in the second.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderBR {BR} at (0,20) size 0x19
+caret: position 0 of child 2 {BR} of child 0 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingmultiplelinesselectedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/multiple-lines-selected-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/multiple-lines-selected-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/multiple-lines-selected-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 571: &quot;This tests inserting a paragraph separator into a selection that spans multiple paragraphs. &quot;
+          text run at (570,0) width 205: &quot;'ar' should be on the line after 'f'&quot;
+          text run at (0,20) width 264: &quot;and the caret should be just before the 'a'.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 6x19
+            text run at (0,0) width 6: &quot;f&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 13x19
+            text run at (0,0) width 13: &quot;ar&quot;
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphoutsidenesteddivsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-outside-nested-divs-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-outside-nested-divs-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-outside-nested-divs-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+CONSOLE MESSAGE: line 14: wrong nestedDiv? &lt;br&gt;
+When inserting a new line, we should break out of nested divs.
+
+FAIL
+
+first
+second
+
+This should be in nested divs.third
+This should be in a single div.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparator01expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-01-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-01-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-01-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 595x19
+          text run at (0,0) width 369: &quot;Tests for a bug in the paragraph separator insertion code. &quot;
+          text run at (368,0) width 227: &quot;Only one newline should be added.&quot;
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+          RenderBR {BR} at (21,15) size 1x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparator02expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-02-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-02-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-02-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 595x19
+          text run at (0,0) width 369: &quot;Tests for a bug in the paragraph separator insertion code. &quot;
+          text run at (368,0) width 227: &quot;Only one newline should be added.&quot;
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparator03expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-03-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-03-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-03-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of PRE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 767x59
+          text run at (0,0) width 747: &quot;Tests for a bug in the paragraph separator insertion code that would add an extra newline when inserting a paragraph&quot;
+          text run at (0,20) width 427: &quot;separator at the end of a paragraph in text that preserves newlines. &quot;
+          text run at (426,20) width 341: &quot;Also, an extraneous space would be added after 'foo'.&quot;
+          text run at (0,40) width 230: &quot;Only one newline should be added. &quot;
+          text run at (229,40) width 274: &quot;And there should be no extraneous spaces.&quot;
+      RenderBlock {P} at (0,76) size 784x20
+        RenderInline {B} at (0,0) size 155x19
+          RenderText {#text} at (0,0) size 155x19
+            text run at (0,0) width 155: &quot;It demonstrates a bug:&quot;
+        RenderText {#text} at (154,0) size 593x19
+          text run at (154,0) width 593: &quot; too much padding is left between the new line and the end of the paragraph containing 'foo'.&quot;
+      RenderBlock {DIV} at (0,112) size 784x55
+        RenderBlock {PRE} at (0,0) size 784x28
+          RenderText {#text} at (0,0) size 24x14
+            text run at (0,0) width 24: &quot;foo&quot;
+            text run at (23,0) width 1: &quot; &quot;
+          RenderBR {BR} at (0,14) size 0x14
+        RenderBlock {PRE} at (0,41) size 784x14
+          RenderText {#text} at (0,0) size 24x14
+            text run at (0,0) width 24: &quot;bar&quot;
+caret: position 0 of child 0 {#text} of child 1 {PRE} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparatorintable1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 626x19
+          text run at (0,0) width 347: &quot;This tests InsertParagraphSeparator inside table cells. &quot;
+          text run at (346,0) width 280: &quot;'Cell' and 'Two' should be on separate lines.&quot;
+      RenderBlock {DIV} at (0,36) size 784x50
+        RenderTable {TABLE} at (0,0) size 105x50 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 103x48
+            RenderTableRow {TR} at (0,2) size 103x44
+              RenderTableCell {TD} at (2,12) size 62x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 58x19
+                  text run at (2,2) width 58: &quot;Cell One&quot;
+              RenderTableCell {TD} at (66,2) size 35x44 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 31x19
+                  text run at (2,2) width 31: &quot;Cell &quot;
+                RenderBR {BR} at (32,17) size 1x0
+                RenderInline {SPAN} at (0,0) size 30x19
+                  RenderText {#text} at (2,22) size 30x19
+                    text run at (2,22) width 30: &quot;Two&quot;
+caret: position 0 of child 0 {#text} of child 2 {SPAN} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingparagraphseparatorintable2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/paragraph-separator-in-table-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x39
+          text run at (0,0) width 347: &quot;This tests InsertParagraphSeparator inside table cells. &quot;
+          text run at (346,0) width 412: &quot;The first cell should contain 'Cell' and a newline, and the second&quot;
+          text run at (0,20) width 164: &quot;cell should contain 'Two'.&quot;
+      RenderBlock {DIV} at (0,56) size 784x50
+        RenderTable {TABLE} at (0,0) size 81x50 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 79x48
+            RenderTableRow {TR} at (0,2) size 79x44
+              RenderTableCell {TD} at (2,2) size 35x44 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 31x19
+                  text run at (2,2) width 31: &quot;Cell &quot;
+                RenderBR {BR} at (32,17) size 1x0
+                RenderBR {BR} at (2,22) size 0x19
+              RenderTableCell {TD} at (39,12) size 38x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 34x19
+                  text run at (2,2) width 34: &quot; Two&quot;
+caret: position 0 of child 2 {BR} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 0 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingredoexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/redo-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/redo-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/redo-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 300x19
+          text run at (0,0) width 300: &quot;The caret should be at the end of this sentence.&quot;
+caret: position 48 of child 0 {#text} of child 0 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingreturnkeywithselection001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x314 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045521&gt;&quot;
+          RenderText {#text} at (417,31) size 726x58
+            text run at (417,31) width 309: &quot; Hitting return key with full line&quot;
+            text run at (0,61) width 422: &quot;selected does not add blank line as it should&quot;
+        RenderBlock {DIV} at (14,120) size 756x180
+          RenderBlock (anonymous) at (0,0) size 756x90
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 704x58
+              text run at (0,31) width 704: &quot;Should see this content in the red box below (note that the insertion point&quot;
+              text run at (0,61) width 660: &quot;should be at the start of the third line, immediately preceding \&quot;baz\&quot;):&quot;
+          RenderBlock {DIV} at (0,90) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (0,120) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (0,150) size 756x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
+      RenderBlock {DIV} at (0,338) size 784x94
+        RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingreturnkeywithselection002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 3 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x344 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 608x28
+            text run at (0,31) width 608: &quot;A scenario I thought of based on my experiences with this bug:&quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (0,61) size 257x28
+              text run at (0,61) width 257: &quot;&lt;rdar://problem/4045521&gt;&quot;
+          RenderText {#text} at (256,61) size 735x58
+            text run at (256,61) width 479: &quot; Hitting return key with full line selected does not&quot;
+            text run at (0,91) width 252: &quot;add blank line as it should&quot;
+        RenderBlock {DIV} at (14,150) size 756x180
+          RenderBlock (anonymous) at (0,0) size 756x90
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 704x58
+              text run at (0,31) width 704: &quot;Should see this content in the red box below (note that the insertion point&quot;
+              text run at (0,61) width 660: &quot;should be at the start of the third line, immediately preceding \&quot;baz\&quot;):&quot;
+          RenderBlock {DIV} at (0,90) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (0,120) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (0,150) size 756x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
+      RenderBlock {DIV} at (0,368) size 784x94
+        RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
+caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingreturnkeywithselection003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/return-key-with-selection-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,61 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x404 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 608x28
+            text run at (0,31) width 608: &quot;A scenario I thought of based on my experiences with this bug:&quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (0,61) size 257x28
+              text run at (0,61) width 257: &quot;&lt;rdar://problem/4045521&gt;&quot;
+          RenderText {#text} at (256,61) size 735x58
+            text run at (256,61) width 479: &quot; Hitting return key with full line selected does not&quot;
+            text run at (0,91) width 252: &quot;add blank line as it should&quot;
+        RenderBlock {DIV} at (14,150) size 756x240
+          RenderBlock (anonymous) at (0,0) size 756x120
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 740x88
+              text run at (0,31) width 718: &quot;Should see this content in the red box below (note that there should be two&quot;
+              text run at (0,61) width 740: &quot;blank lines between \&quot;foo\&quot; and \&quot;baz\&quot;; also note that the insertion point should&quot;
+              text run at (0,91) width 422: &quot;be at the start of the third line, a blank line):&quot;
+          RenderBlock {DIV} at (0,120) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (0,150) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (0,180) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (0,210) size 756x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
+      RenderBlock {DIV} at (0,428) size 784x124
+        RenderBlock {DIV} at (0,0) size 784x124 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (2,62) size 780x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {DIV} at (2,92) size 780x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
+caret: position 0 of child 0 {BR} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtyping001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 12 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 13 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 178x28
+          RenderText {#text} at (14,15) size 178x28
+            text run at (14,15) width 178: &quot;xxxXXxxxXXxxx&quot;
+caret: position 13 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtyping002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 113x28
+          RenderText {#text} at (14,15) size 80x28
+            text run at (14,15) width 80: &quot;Foo xxx&quot;
+          RenderInline {I} at (0,0) size 34x28
+            RenderText {#text} at (93,15) size 34x28
+              text run at (93,15) width 34: &quot;bar&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtyping003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,763 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 16 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 16 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 17 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 17 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 18 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 18 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 18 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 18 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 19 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 19 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 19 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 19 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 22 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 23 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 23 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 23 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 23 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 24 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 24 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 24 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 24 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 25 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 25 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 26 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 26 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 26 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 26 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 28 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 28 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 29 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 29 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 29 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 29 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 30 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 30 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 30 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 30 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 31 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 31 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 31 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 31 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 32 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 32 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 33 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 33 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 33 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 33 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 34 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 34 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 34 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 34 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 35 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 35 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 34 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 34 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 36 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 36 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 36 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 36 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 37 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 37 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 37 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 39 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 39 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 38 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 40 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 40 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 40 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 40 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 41 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 41 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 41 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 41 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 42 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 42 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 41 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 41 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 43 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 43 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 43 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 43 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 44 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 44 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 44 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 44 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 45 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 45 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 45 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 45 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 46 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 46 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 46 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 46 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 47 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 47 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 46 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 46 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 49 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 49 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 49 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 49 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 50 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 50 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 50 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 50 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 50 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 50 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 52 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 52 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 52 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 52 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 53 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 53 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 53 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 53 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 54 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 54 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 54 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 54 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 55 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 55 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 54 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 54 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 56 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 56 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 56 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 56 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 57 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 57 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 57 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 57 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 58 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 58 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 57 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 57 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 59 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 59 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 59 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 59 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 60 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 60 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 59 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 59 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 61 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 61 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 61 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 61 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 62 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 62 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 62 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 62 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 63 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 63 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 63 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 63 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 64 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 64 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 64 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 64 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 65 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 65 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 65 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 65 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 66 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 66 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 65 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 65 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 67 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 67 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 67 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 67 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 68 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 68 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 68 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 68 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 69 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 69 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 69 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 69 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 70 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 70 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 70 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 70 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 71 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 71 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 71 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 71 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 72 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 72 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 72 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 72 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 73 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 73 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 73 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 73 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 74 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 74 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 74 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 74 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 75 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 75 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 75 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 75 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 76 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 76 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 76 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 76 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 77 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 77 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 77 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 77 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 78 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 78 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 78 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 78 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 79 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 79 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 78 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 78 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 80 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 80 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 80 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 80 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 81 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 81 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 81 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 81 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 82 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 82 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 82 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 82 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 83 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 83 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 83 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 83 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 84 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 84 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 84 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 84 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 85 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 85 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 85 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 85 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 86 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 86 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 86 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 86 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 87 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 87 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 87 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 87 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 88 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 88 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 87 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 87 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 89 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 89 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 89 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 89 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 90 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 90 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 90 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 90 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 91 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 91 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 91 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 91 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 92 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 92 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 91 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 91 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 93 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 93 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 93 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 93 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 94 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 94 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 94 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 94 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 95 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 95 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 95 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 95 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 96 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 96 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 96 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 96 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 97 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 97 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 96 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 96 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 98 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 98 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 98 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 98 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 99 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 99 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 99 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 99 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 100 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 100 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 100 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 100 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 101 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 101 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 101 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 101 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 102 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 102 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 102 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 102 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 103 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 103 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 102 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 102 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 104 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 104 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 104 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 104 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 105 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 105 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 105 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 105 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 106 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 106 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 105 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 105 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 107 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 107 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 107 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 107 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 108 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 108 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 108 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 108 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 109 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 109 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 109 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 109 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 110 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 110 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 109 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 109 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 111 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 111 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 111 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 111 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 112 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 112 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 112 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 112 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 113 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 113 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 113 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 113 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 114 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 114 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 114 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 114 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 115 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 115 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 114 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 114 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 116 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 116 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 116 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 116 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 117 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 117 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 117 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 117 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 118 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 118 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 118 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 118 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 119 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 119 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 119 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 119 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 120 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 120 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 119 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 119 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 121 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 121 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 121 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 121 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 122 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 122 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 122 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 122 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 123 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 123 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 123 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 123 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 124 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 124 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 124 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 124 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 125 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 125 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 125 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 125 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 126 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 126 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 125 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 125 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 127 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 127 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 127 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 127 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 128 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 128 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 128 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 128 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 129 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 129 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 129 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 129 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 130 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 130 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 130 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 130 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 131 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 131 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 131 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 131 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 132 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 132 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 132 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 132 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 133 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 133 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 132 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 132 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 134 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 134 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 134 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 134 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 135 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 135 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 135 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 135 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 136 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 136 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 136 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 136 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 137 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 137 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 136 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 136 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 138 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 138 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 138 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 138 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 139 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 139 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 139 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 139 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 140 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 140 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 139 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 139 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 141 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 141 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 141 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 141 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 142 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 142 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 142 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 142 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 143 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 143 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 143 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 143 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 144 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 144 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 144 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 144 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 145 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 145 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 144 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 144 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 149 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 149 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 150 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 150 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 150 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 150 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 151 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 151 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 151 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 151 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 152 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 152 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 152 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 152 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 153 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 153 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 152 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 152 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 154 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 154 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 154 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 154 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 155 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 155 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 155 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 155 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 156 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 156 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 155 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 155 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 157 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 157 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 157 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 157 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 158 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 158 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 158 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 158 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 159 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 159 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 159 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 159 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 160 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 160 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 160 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 160 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 161 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 161 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 161 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 161 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 162 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 162 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 162 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 162 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 163 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 163 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 162 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 162 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 164 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 164 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 164 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 164 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 165 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 165 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 165 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 165 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 166 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 166 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 166 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 166 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 167 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 167 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 167 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 167 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 168 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 168 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 168 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 168 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 169 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 169 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 168 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 168 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 170 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 170 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 170 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 170 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 171 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 171 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 171 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 171 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 172 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 172 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 172 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 172 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 173 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 173 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 173 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 173 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 174 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 174 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 174 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 174 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 175 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 175 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 175 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 175 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 176 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 176 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 175 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 175 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 177 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 177 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 177 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 177 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 178 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 178 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 178 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 178 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 179 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 179 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 179 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 179 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 180 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 180 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 179 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 179 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 181 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 181 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 181 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 181 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 182 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 182 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 182 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 182 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 183 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 183 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 182 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 182 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 184 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 184 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 184 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 184 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 185 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 185 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 185 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 185 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 186 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 186 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 186 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 186 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 187 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 187 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 187 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 187 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 188 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 188 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 187 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 187 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 189 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 189 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 189 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 189 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 190 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 190 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 190 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 190 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 191 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 191 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 191 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 191 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 192 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 192 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 191 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 191 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 193 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 193 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 193 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 193 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 194 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 194 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 194 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 194 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 195 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 195 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 195 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 195 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 196 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 196 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 195 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 195 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 197 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 197 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 197 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 197 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 198 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 198 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 198 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 198 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 199 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 199 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 198 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 198 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 200 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 200 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 200 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 200 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 201 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 201 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 200 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 200 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 202 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 202 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 202 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 202 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 203 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 203 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 203 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 203 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 204 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 204 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 204 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 204 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 205 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 205 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 205 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 205 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 206 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 206 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 206 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 206 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 207 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 207 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 206 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 206 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 208 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 208 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 208 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 208 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 209 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 209 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 209 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 209 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 210 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 210 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 210 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 210 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 211 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 211 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 211 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 211 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 212 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 212 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 212 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 212 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 213 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 213 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 213 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 213 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 214 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 214 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 214 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 214 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 215 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 215 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 215 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 215 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 216 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 216 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 216 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 216 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 217 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 217 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 217 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 217 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 218 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 218 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 218 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 218 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 219 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 219 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 219 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 219 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 220 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 220 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 219 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 219 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 221 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 221 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 221 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 221 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 222 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 222 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 222 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 222 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 223 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 223 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 223 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 223 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 224 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 224 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 224 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 224 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 225 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 225 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 225 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 225 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 226 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 226 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 226 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 226 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 227 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 227 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 227 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 227 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 228 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 228 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 228 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 228 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 229 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 229 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 228 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 228 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 230 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 230 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 230 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 230 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 231 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 231 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 231 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 231 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 232 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 232 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 232 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 232 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 233 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 233 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x148 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 738x118
+          text run at (14,15) width 696: &quot;xxxx x xx xxxx xxxxxx xxxxx xxxxxx xxx xx xxxx xxx xxx xx x xxxxx&quot;
+          text run at (710,15) width 6: &quot; &quot;
+          text run at (14,45) width 732: &quot;xxxxxxxxxxxx xxxxxxxx xxx xxxx xxxxx xx xxx xxxx xxxx xxxxx xxxxxx&quot;
+          text run at (746,45) width 6: &quot; &quot;
+          text run at (14,75) width 714: &quot;xxx xx xxxx xxx xxx xx xxxxxx xxxxx xxxxxx xxx xx xxxx xxx xxx xx x&quot;
+          text run at (728,75) width 6: &quot; &quot;
+          text run at (14,105) width 360: &quot;xxxxx xxxxxxxxxxxx xxxxxxxx xxx &quot;
+        RenderInline {SPAN} at (0,0) size 0x28
+caret: position 233 of child 0 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtypingaroundbr001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-br-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-br-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-br-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,121 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x268 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 71x238
+          RenderText {#text} at (14,15) size 71x28
+            text run at (14,15) width 71: &quot;XXxxx&quot;
+          RenderBR {BR} at (84,37) size 1x0
+          RenderText {#text} at (14,45) size 71x28
+            text run at (14,45) width 71: &quot;XXxxx&quot;
+          RenderBR {BR} at (84,67) size 1x0
+          RenderText {#text} at (14,75) size 36x28
+            text run at (14,75) width 36: &quot;xxx&quot;
+          RenderBR {BR} at (50,97) size 0x0
+          RenderText {#text} at (14,105) size 71x28
+            text run at (14,105) width 71: &quot;XXxxx&quot;
+          RenderBR {BR} at (84,127) size 1x0
+          RenderText {#text} at (14,135) size 36x28
+            text run at (14,135) width 36: &quot;xxx&quot;
+          RenderBR {BR} at (50,157) size 0x0
+          RenderText {#text} at (14,165) size 36x28
+            text run at (14,165) width 36: &quot;xxx&quot;
+          RenderBR {BR} at (50,187) size 0x0
+          RenderText {#text} at (14,195) size 36x28
+            text run at (14,195) width 36: &quot;xxx&quot;
+          RenderBR {BR} at (50,217) size 0x0
+          RenderText {#text} at (14,225) size 71x28
+            text run at (14,225) width 71: &quot;XXxxx&quot;
+caret: position 5 of child 14 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtypingaroundimage001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-image-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-image-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-around-image-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x138 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 390x28
+          RenderText {#text} at (14,95) size 12x28
+            text run at (14,95) width 12: &quot;x&quot;
+          RenderImage {IMG} at (26,14) size 76x103
+          RenderText {#text} at (102,95) size 36x28
+            text run at (102,95) width 36: &quot;xxx&quot;
+          RenderImage {IMG} at (138,14) size 76x103
+          RenderText {#text} at (214,95) size 36x28
+            text run at (214,95) width 36: &quot;xxx&quot;
+          RenderText {#text} at (250,95) size 42x28
+            text run at (250,95) width 42: &quot; xxx&quot;
+          RenderImage {IMG} at (292,14) size 76x103
+          RenderText {#text} at (368,95) size 36x28
+            text run at (368,95) width 36: &quot;xxx&quot;
+caret: position 3 of child 7 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtypingatendoflineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-at-end-of-line-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-at-end-of-line-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-at-end-of-line-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 143 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 143 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 145 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 145 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 145 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 145 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 146 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 147 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 148 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 149 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 149 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 879x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 783x59
+          text run at (0,0) width 783: &quot;This test validates the fix for a bug that occurred when typing a blank at the end of a line when the character doesn't fix by&quot;
+          text run at (0,20) width 762: &quot;a fraction of a pixel. If the test runs correctly, you should see the word 'you' at the end of the line and the word 'have' at&quot;
+          text run at (0,40) width 227: &quot;the beginning of the following line.&quot;
+      RenderBlock (anonymous) at (0,60) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+      RenderBlock {DIV} at (0,80) size 871x100
+        RenderText {#text} at (0,0) size 864x32
+          text run at (0,0) width 856: &quot;and Anna, you can do your regular weekly report run, and I'll extract the key sections into this. Andrew and Mark, I'd like to include any new&quot;
+          text run at (855,0) width 9: &quot;  &quot;
+          text run at (0,16) width 77: &quot;havebits you&quot;
+caret: position 149 of child 0 {#text} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtypingspacetotriggersmartlinkexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-space-to-trigger-smart-link-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-space-to-trigger-smart-link-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-space-to-trigger-smart-link-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+The www.foo.com should be underlined and there is an anchor node created for it.
+The www.bar.com should be underlined and there is an anchor node created for it.
+Failed: the expected content was 'The &lt;a href=&quot;http://www.foo.com&quot;&gt;www.foo.com&lt;/a&gt; should be underlined and there is an anchor node created for it.', but the actual result was 'The www.foo.com should be underlined and there is an anchor node created for it.'.
+Failed: the expected content was 'The &lt;a href=&quot;http://www.bar.com&quot;&gt;www.bar.com&lt;/a&gt; should be underlined and there is an anchor node created for it.', but the actual result was 'The www.bar.com should be underlined and there is an anchor node created for it.'.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtypingtabdesignmodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+Test to see if tabs work in designMode. There should be two tabs inserted. One for the tab key, and one for shift-tab.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditinginsertingtypingtabdesignmodeformsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-forms-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-forms-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/inserting/typing-tab-designmode-forms-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+tabbing between forms in design mode: should result tab-space in the focused form.
+text in the first input[]
+text in the second input[]
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard196441expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a bug where we would wrap copied markup in a div to hold a fully selected body's attributes and style even if there was nothing special about the body that warranted doing so. After you cut/paste, the text should only have 5 pixels of padding.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard196442expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/19644-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to make sure that we wrap copied markup in a div to hold a fully selected body's attributes and style when the that body has a background-color. If you copy and paste this text into Mail, it should have a grey background.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard3976872expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/3976872-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/3976872-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/3976872-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 28 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 28 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 28 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 391x19
+          text run at (0,0) width 391: &quot;This tests paste and match style on an empty (but styled) line&quot;
+      RenderBlock {P} at (0,36) size 784x40
+        RenderText {#text} at (0,0) size 770x39
+          text run at (0,0) width 770: &quot;The first line is copied (unstyled), then it's bolded, then a paragraph separator is inserted and the original unstyled line is&quot;
+          text run at (0,20) width 186: &quot;pasted (with style matching).&quot;
+      RenderBlock {HR} at (0,92) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,102) size 784x22
+        RenderBlock {DIV} at (0,0) size 784x22 [border: (1px solid #FF0000)]
+          RenderInline {B} at (0,0) size 189x19
+            RenderText {#text} at (1,1) size 189x19
+              text run at (1,1) width 189: &quot;this text should end up bold&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard40762672expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 392x19
+          text run at (0,0) width 392: &quot;This tests to see if trailing spaces are lost during a copy/paste&quot;
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x28 [border: (2px solid #FFAAAA)]
+        RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #AAAAFF)]
+          RenderText {#text} at (2,2) size 586x19
+            text run at (2,2) width 586: &quot;there should be a single trailing space between the '.' and the last character in this sentence .&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard40762673expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 342x19
+          text run at (0,0) width 342: &quot;This tests to see if spaces are lost during a copy/paste&quot;
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4076267expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4076267-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 56 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 393x19
+          text run at (0,0) width 393: &quot;This tests to see if leading spaces are lost during a copy/paste&quot;
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 4x19
+            text run at (0,0) width 4: &quot;.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard42422931expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test ensures that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end of a block.  Both regions below should be visually identical.
+
+first region (bar and baz are copied):
+| &lt;div&gt;
+|   &lt;div&gt;
+|     &quot;foo&quot;
+|   &quot;bar&quot;
+| &quot;baz&quot;
+
+second region (bar and baz are pasted):
+| &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4242293expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4242293-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 717x39
+          text run at (0,0) width 717: &quot;This tests for a bug in createMarkup (markup for ancestors of the start of the selection wasn't being added to the&quot;
+          text run at (0,20) width 83: &quot;pasteboard). &quot;
+          text run at (82,20) width 342: &quot;You should see the same thing in both regions below.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderInline {B} at (0,0) size 445x19
+          RenderText {#text} at (0,0) size 445x19
+            text run at (0,0) width 445: &quot;This demonstrates a bug: 'foo' is pulled out of its bordered block.&quot;
+      RenderBlock {DIV} at (0,92) size 784x79
+        RenderBlock {DIV} at (5,0) size 774x54 [border: (1px solid #FF0000)]
+          RenderBlock (anonymous) at (1,1) size 772x20
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+          RenderBlock {DIV} at (6,26) size 762x22 [border: (1px solid #0000FF)]
+            RenderText {#text} at (1,1) size 21x19
+              text run at (1,1) width 21: &quot;bar&quot;
+        RenderBlock (anonymous) at (0,59) size 784x20
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: &quot;baz&quot;
+      RenderBlock {DIV} at (0,171) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4631972expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4631972-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4631972-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4631972-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 654x39
+          text run at (0,0) width 434: &quot;This tests pasting a fragment containing an &lt;iframe&gt; after a &lt;div&gt;. &quot;
+          text run at (433,0) width 221: &quot;This used to fail on an assertion in&quot;
+          text run at (0,20) width 326: &quot;moveParagraphContentsToNewBlockIfNecessary. &quot;
+          text run at (325,20) width 317: &quot;You should see 'foo' and then an &lt;iframe&gt; below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4641033expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4641033-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4641033-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4641033-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 673: &quot;This tests for a bug when creating markup for a selection that contained unrendered nodes with children. &quot;
+          text run at (672,0) width 109: &quot;You should see a&quot;
+          text run at (0,20) width 253: &quot;picture of abe followed by a select box.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+      RenderBlock (anonymous) at (0,76) size 784x111
+        RenderImage {IMG} at (0,0) size 76x103
+        RenderText {#text} at (76,88) size 4x19
+          text run at (76,88) width 4: &quot; &quot;
+        RenderMenuList {SELECT} at (82,89) size 51x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (6,3) size 39x14
+            RenderText at (0,0) size 7x14
+              text run at (0,0) width 7: &quot;1&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4744008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4744008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4744008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4744008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests for a crash on paste inside removeRedundantStyles. You should see 'foo bar' below.
+
+foo bar
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4806874expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4806874-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4806874-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4806874-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 554x19
+          text run at (0,0) width 252: &quot;This tests for an infinite loop on Paste. &quot;
+          text run at (251,0) width 303: &quot;You should see 'Hello: ' and then an input field.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 40x19
+          text run at (0,0) width 40: &quot;Hello:&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4922709expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4922709-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4922709-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4922709-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests copying/pasting less than a paragraph of quoted content. It should appear quoted.
+
+
+&lt;br&gt;
+&lt;br&gt;
+&lt;div&gt;On Tuesday, Dave wrote:&lt;/div&gt;
+&lt;div&gt;&lt;br&gt;&lt;/div&gt;
+&lt;blockquote id=&quot;blockquote&quot; type=&quot;cite&quot;&gt;Hello World&lt;/blockquote&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard49309861expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to make sure that content that has the document default color is pasted as blue (or whatever the color for quoted content is) during a Paste as Quotation.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard49309862expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to make sure that content that is colored by the user is pasted with that color during a Paste as Quotation.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard49309863expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4930986-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests to make sure that an Apple-paste-as-quotation blockquote can override document default styles even if they are different than the insertion position.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard49447701expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 761x39
+          text run at (0,0) width 420: &quot;This tests smart paste of a fragment that ends in a select element. &quot;
+          text run at (419,0) width 342: &quot;There should be no spaces added because the paste is&quot;
+          text run at (0,20) width 219: &quot;performed in an empty paragraph.&quot;
+      RenderBlock {DIV} at (0,56) size 784x24
+        RenderText {#text} at (0,1) size 22x19
+          text run at (0,1) width 22: &quot;foo&quot;
+        RenderMenuList {SELECT} at (23,2) size 40x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (6,3) size 27x14
+            RenderText at (0,0) size 7x14
+              text run at (0,0) width 7: &quot;1&quot;
+      RenderBlock {DIV} at (0,80) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard49447702expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4944770-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 740x39
+          text run at (0,0) width 420: &quot;This tests smart paste of a fragment that ends in a select element. &quot;
+          text run at (419,0) width 321: &quot;There should be spaces added before and after the&quot;
+          text run at (0,20) width 106: &quot;inserted content.&quot;
+      RenderBlock {DIV} at (0,56) size 784x24
+        RenderMenuList {SELECT} at (2,2) size 39x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (6,3) size 27x14
+            RenderText at (0,0) size 7x14
+              text run at (0,0) width 7: &quot;1&quot;
+      RenderBlock {DIV} at (0,80) size 784x20
+        RenderText {#text} at (0,0) size 16x19
+          text run at (0,0) width 16: &quot;xx&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4947130expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4947130-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4947130-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4947130-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 748x39
+          text run at (0,0) width 503: &quot;This tests to see if dragging an image is a move drag by default (it should be). &quot;
+          text run at (502,0) width 246: &quot;You should only see one picture and it&quot;
+          text run at (0,20) width 251: &quot;should be somewhere near the middle. &quot;
+        RenderInline {B} at (0,0) size 498x19
+          RenderText {#text} at (250,20) size 498x19
+            text run at (250,20) width 498: &quot;This demonstrates a bug, the ghost of the drag caret is left after the drop.&quot;
+      RenderBlock {DIV} at (0,56) size 784x108
+        RenderText {#text} at (0,88) size 80x19
+          text run at (0,88) width 80: &quot;xxxxxxxxxx&quot;
+        RenderImage {IMG} at (80,0) size 76x103
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard4989774expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4989774-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4989774-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/4989774-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderImage {IMG} at (0,0) size 76x103
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5006779expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5006779-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5006779-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5006779-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 609x19
+          text run at (0,0) width 430: &quot;This tests copying/pasting less than a paragraph of quoted content. &quot;
+          text run at (429,0) width 180: &quot;It should not appear quoted.&quot;
+      RenderBlock {DIV} at (0,36) size 784x100
+        RenderBlock (anonymous) at (0,0) size 784x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderBR {BR} at (0,20) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,40) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (12,0) size 163x19
+            text run at (12,0) width 163: &quot;On Tuesday, Dave wrote:&quot;
+        RenderBlock {BLOCKQUOTE} at (0,60) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderBR {BR} at (12,0) size 0x19
+        RenderBlock {BLOCKQUOTE} at (0,80) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (12,0) size 84x19
+            text run at (12,0) width 84: &quot;Hello World.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5028447expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5028447-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5028447-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5028447-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderText {#text} at (0,1) size 417x29
+        text run at (0,1) width 411: &quot;All the text here should be the same size.&quot;
+        text run at (410,1) width 7: &quot; &quot;
+      RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5032095expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5032095-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5032095-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5032095-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 702: &quot;This tests for a bug where content pasted at the end of a paragraph would be inserted into the next paragraph. &quot;
+          text run at (701,0) width 74: &quot;You should&quot;
+          text run at (0,20) width 146: &quot;see 'helloworld' below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 32x19
+          text run at (0,0) width 32: &quot;hello&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5065605expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5065605-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5065605-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5065605-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+This tests for a bug where text copied with Select All + Copy would lose its color.
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard50710742expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 553x19
+          text run at (0,0) width 553: &quot;This tests for a bug where copied links wouldn't be pasted as links at certain positions.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 163x19
+            text run at (0,0) width 163: &quot;This should be plain text.&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 163x19
+            text run at (0,0) width 163: &quot;This should be plain text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5071074expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5071074-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 598x19
+          text run at (0,0) width 598: &quot;This tests for a bug where links that weren't fully selected would be copy/pasted as plain text.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 167x19
+          text run at (0,0) width 167: &quot;This should be plain text. &quot;
+        RenderInline {A} at (0,0) size 139x19 [color=#0000EE]
+          RenderText {#text} at (166,0) size 139x19
+            text run at (166,0) width 139: &quot;This should be a link.&quot;
+        RenderText {#text} at (304,0) size 167x19
+          text run at (304,0) width 167: &quot; This should be plain text.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5075944expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5075944-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5075944-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5075944-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 307x19
+          text run at (0,0) width 307: &quot;This test for a bug copy/pasting underlined text.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 171x19
+          text run at (0,0) width 171: &quot;This should be underlined.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5134759expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5134759-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5134759-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5134759-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 657x19
+          text run at (0,0) width 513: &quot;This tests for a hang when pasting underlined content at the end of a paragraph. &quot;
+          text run at (512,0) width 145: &quot;You should see 'Hello &quot;
+        RenderInline {U} at (0,0) size 46x19
+          RenderText {#text} at (656,0) size 46x19
+            text run at (656,0) width 46: &quot;World!&quot;
+        RenderText {#text} at (701,0) size 50x19
+          text run at (701,0) width 50: &quot;' below.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 40x19
+            text run at (0,0) width 36: &quot;Hello&quot;
+            text run at (35,0) width 5: &quot; &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard51564011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5156401-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5156401-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5156401-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 461x19
+          text run at (0,0) width 461: &quot;This tests for a crash when pasting content into a link inside a table cell.&quot;
+      RenderBlock {DIV} at (0,36) size 784x30
+        RenderTable {TABLE} at (0,0) size 23x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 21x28
+            RenderTableRow {TR} at (0,2) size 21x24
+              RenderTableCell {TD} at (2,2) size 17x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {A} at (0,0) size 13x19 [color=#0000EE]
+                  RenderText {#text} at (2,2) size 13x19
+                    text run at (2,2) width 13: &quot;T.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5245519expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5245519-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5245519-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5245519-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a crash when pasting content that contains Apple-style-spans that don't have renderers.' You should see 'Hello World!'
+&lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5387578expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5387578-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5387578-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5387578-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 769x39
+          text run at (0,0) width 383: &quot;This tests for a crash when pasting content into a table cell. &quot;
+          text run at (382,0) width 387: &quot;The table cell has some collapsed whitespace at the end of it&quot;
+          text run at (0,20) width 141: &quot;that tickled the crash. &quot;
+          text run at (140,20) width 336: &quot;You should see 'Hello World' in the table cell below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderTable {TABLE} at (0,0) size 65x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 63x28
+            RenderTableRow {TR} at (0,2) size 63x24
+              RenderTableCell {TD} at (2,2) size 59x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 55x19
+                  text run at (2,2) width 55: &quot;Hello W&quot;
+                  text run at (56,2) width 1: &quot; \x{9}\x{9} \x{9}\x{9}&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5478250expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5478250-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5478250-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5478250-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 527x19
+          text run at (0,0) width 527: &quot;This tests that inherited block properties do not propigate to the editing style span.&quot;
+      RenderBlock {DIV} at (50,36) size 734x20
+        RenderText {#text} at (266,0) size 152x19
+          text run at (266,0) width 152: &quot;Some text that is bold.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 112x19
+          text run at (0,0) width 108: &quot;Some text that is&quot;
+          text run at (107,0) width 5: &quot; &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5480736expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5480736-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5480736-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5480736-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests for a bug where copying a word in indented text and then pasting it into indented text would create an extraneous line break. You should see &quot;hello world&quot; below, all in one indented paragraph.
+&lt;blockquote id=&quot;blockquote&quot; class=&quot;webkit-indent-blockquote&quot;&gt;hd&lt;/blockquote&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5521237expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5521237-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5521237-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5521237-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a bug when pasting a word copied from TextEdit after a regular, breaking space.
+
+Everything n this editable region should be in one paragraph.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard56015831expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5601583-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5601583-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5601583-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 732x39
+          text run at (0,0) width 414: &quot;This tests for a bug where a copied link wouldn't paste as a link. &quot;
+          text run at (413,0) width 319: &quot;Both editable regions below should contain a link&quot;
+          text run at (0,20) width 105: &quot;\&quot;Hello\\nWorld\&quot;.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderInline {A} at (0,0) size 40x39 [color=#0000EE]
+          RenderText {#text} at (0,0) size 36x19
+            text run at (0,0) width 36: &quot;Hello&quot;
+          RenderBR {BR} at (35,15) size 1x0
+          RenderText {#text} at (0,20) size 40x19
+            text run at (0,20) width 40: &quot;World&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,96) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard5665299expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5665299-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5665299-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5665299-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a bug where pasting plain text into an empty contenteditable div would create paragraphs held in clones of the contenteditable div. To run it manually, do a Paste and Match style and then inspect the editable region. It should contain paragraphs held in regular divs.
+
+&lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard57615301expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5761530-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5761530-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5761530-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests to see that tabs are put into tab spans when they are copied individually. The pasted tab should be inside of a tab span, not a style span. To run the test manually, paste and then inspect the editable region, and ensure that there is a tab span at the beginning of the editable div.
+
+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre;&quot;&gt;        &lt;/span&gt;xxx
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard57806972expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5780697-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5780697-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/5780697-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a bug where copying content from a document in quirksmode and pasting it would produce overlapping text because of a height: 1%; overflow: visible; rule. To run manually, paste into a document not in quirksmode. The paragraphs should not overlap. When you inspect the source, the paragraphs should have pixel values for the height property.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard7955expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/7955-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/7955-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/7955-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard81451expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 431x19
+          text run at (0,0) width 431: &quot;This is a replica of the paste that caused the crash covered by 8145.&quot;
+      RenderBlock {DIV} at (0,36) size 784x22 [border: (1px solid #000000)]
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard81452expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 774x59
+          text run at (0,0) width 305: &quot;This tests a change made with the fix for 8145. &quot;
+          text run at (304,0) width 434: &quot;The paragraph separator inserted to prevent nesting blocks from the&quot;
+          text run at (0,20) width 774: &quot;fragment to paste inside the block where the paste occured was incorrectly inserted when the paste occured at the start of&quot;
+          text run at (0,40) width 80: &quot;a paragraph.&quot;
+      RenderBlock {DIV} at (0,76) size 784x62 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 22x19
+          text run at (1,1) width 22: &quot;foo&quot;
+        RenderBR {BR} at (22,16) size 1x0
+        RenderText {#text} at (1,21) size 21x19
+          text run at (1,21) width 21: &quot;bar&quot;
+        RenderBR {BR} at (21,36) size 1x0
+        RenderText {#text} at (1,41) size 23x19
+          text run at (1,41) width 23: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboard81453expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/8145-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 771x59
+          text run at (0,0) width 305: &quot;This tests a change made with the fix for 8145. &quot;
+          text run at (304,0) width 434: &quot;The paragraph separator inserted to prevent nesting blocks from the&quot;
+          text run at (0,20) width 771: &quot;fragment to paste inside the block where the paste occured was not being inserted when the fragment had an interchange&quot;
+          text run at (0,40) width 121: &quot;newline at the end.&quot;
+      RenderBlock {DIV} at (0,76) size 784x62 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (1,1) size 782x20
+          RenderText {#text} at (0,0) size 26x19
+            text run at (0,0) width 26: &quot;fbar&quot;
+        RenderBlock (anonymous) at (1,21) size 782x20
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: &quot;baz&quot;
+        RenderBlock {DIV} at (1,41) size 782x20
+          RenderText {#text} at (0,0) size 16x19
+            text run at (0,0) width 16: &quot;oo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardavoidcopyingbodywithbackgroundexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/avoid-copying-body-with-background-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/avoid-copying-body-with-background-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/avoid-copying-body-with-background-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+This test copies and pastes content inside a body with background and text-decoration properties. WebKit should not nest body.
+| &quot;
+&quot;
+| &lt;ul&gt;
+|   &quot;
+&quot;
+|   &lt;li&gt;
+|     &quot;hello, world &quot;
+|     &lt;a&gt;
+|       href=&quot;http://www.webkit.org/&quot;
+|       &quot;WebKit&quot;
+|   &quot;
+&quot;
+|   &lt;li&gt;
+|     &quot;Copied content&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardbadplaceholderexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/bad-placeholder-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/bad-placeholder-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/bad-placeholder-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 766x39
+          text run at (0,0) width 766: &quot;This is a test to make sure that a placeholder, even one without our special class on it, is removed only when it has been&quot;
+          text run at (0,20) width 411: &quot;collapsed away or when it has been displaced by pasted content.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 778x39
+          text run at (0,0) width 709: &quot;Placeholders with our special class can, through bugs in deletion, be inserted into the document unnecessarily. &quot;
+          text run at (708,0) width 63: &quot;Once that&quot;
+          text run at (0,20) width 778: &quot;happens, we don't want to make matters worse by removing them if they are acting as line breaks instead of placeholders.&quot;
+      RenderBlock {DIV} at (0,112) size 784x40
+        RenderText {#text} at (0,0) size 30x19
+          text run at (0,0) width 30: &quot;First&quot;
+        RenderBR {BR} at (29,15) size 1x0
+        RenderText {#text} at (0,20) size 188x19
+          text run at (0,20) width 188: &quot;paragraph.Second paragraph.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardblockwrappersnecessaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/block-wrappers-necessary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/block-wrappers-necessary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/block-wrappers-necessary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,173 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldDeleteDOMRange:range from 1 of #text &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 86 of #text &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 85 of #text &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fce13e8b590&gt; toElementsInDOMRange:range from 0 of #text &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 85 of #text &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 85 of #text &gt; SPAN &gt; FONT &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 85 of #text &gt; SPAN &gt; FONT &gt; P &gt; CENTER &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+
+Tests: 
+
+Bug fix for &lt;rdar://problem/4180820&gt; Erroneous spacing between lines introduced on paste
+
+Applying block styles, like text-align, used to wrap paragraphs that needed block style changes in clones of other paragraphs in the document.  This would almost always introduce unwanted styles.
+
+
+Before cut:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&quot;
+|   &lt;center&gt;
+|     &quot;
+&quot;
+|     &lt;p&gt;
+|       &quot;
+&lt;#selection-anchor&gt;This is an &quot;
+|       &lt;b&gt;
+|         &quot;interactive&quot;
+|       &quot; documentation site, so please help out by posting any useful information that you've had to search out.&quot;
+|       &lt;br&gt;
+|       &quot;
+(Adding to this &quot;
+|       &lt;a&gt;
+|         href=&quot;db.cgi?Wiki_Is_So_Easy&quot;
+|         &quot;wiki is so easy&quot;
+|       &quot;, you can't screw it up). See &quot;
+|       &lt;a&gt;
+|         href=&quot;db.cgi?Wiki_Reference&quot;
+|         &quot;Wiki Reference&quot;
+|       &quot; for text formatting syntax.&quot;
+|       &lt;br&gt;
+|       &quot;
+Info for setting up your own wiki is at &quot;
+|       &lt;a&gt;
+|         href=&quot;db.cgi?About_Howto.Apple.Com&quot;
+|         &quot;about howto.apple.com&quot;
+|       &quot;.&quot;
+|       &lt;br&gt;
+|       &quot;
+Check out a cool wiki editor application that helps in wiki generation: &quot;
+|       &lt;a&gt;
+|         href=&quot;db.cgi?Wikinator&quot;
+|         &quot;Wikinator&quot;
+|       &quot;
+&quot;
+|     &lt;p&gt;
+|       &quot;
+Start browsing the topics below, or use the search field at the bottom of every page.&lt;#selection-focus&gt;
+&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+
+After cut:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&quot;
+|   &lt;center&gt;
+|     &quot;
+&quot;
+|     &lt;p&gt;
+|       &lt;#selection-caret&gt;
+|       &lt;br&gt;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+
+After paste (this should be identical to before cut):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&quot;
+|   &lt;center&gt;
+|     &quot;
+&quot;
+|     &lt;p&gt;
+|       &lt;div&gt;
+|         style=&quot;text-align: start;&quot;
+|         &lt;font&gt;
+|           size=&quot;3&quot;
+|           &lt;span&gt;
+|             style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|             &quot;This is an &quot;
+|             &lt;b&gt;
+|               &quot;interactive&quot;
+|             &quot; documentation site, so please help out by posting any useful information that you've had to search out.&quot;
+|       &lt;div&gt;
+|         style=&quot;text-align: start;&quot;
+|         &lt;font&gt;
+|           size=&quot;3&quot;
+|           &lt;span&gt;
+|             style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|             &quot;(Adding to this &quot;
+|             &lt;a&gt;
+|               href=&quot;db.cgi?Wiki_Is_So_Easy&quot;
+|               &quot;wiki is so easy&quot;
+|             &quot;, you can't screw it up). See&quot;
+|             &quot; &quot;
+|             &lt;a&gt;
+|               href=&quot;db.cgi?Wiki_Reference&quot;
+|               &quot;Wiki Reference&quot;
+|             &quot; for text formatting syntax.&quot;
+|       &lt;div&gt;
+|         style=&quot;text-align: start;&quot;
+|         &lt;font&gt;
+|           size=&quot;3&quot;
+|           &lt;span&gt;
+|             style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|             &quot;Info for setting up your own wiki is at &quot;
+|             &lt;a&gt;
+|               href=&quot;db.cgi?About_Howto.Apple.Com&quot;
+|               &quot;about howto.apple.com&quot;
+|             &quot;.&quot;
+|       &lt;div&gt;
+|         style=&quot;text-align: start;&quot;
+|         &lt;font&gt;
+|           size=&quot;3&quot;
+|           &lt;span&gt;
+|             style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|             &quot;Check out a cool wiki editor application that helps in wiki generation: &quot;
+|             &lt;a&gt;
+|               href=&quot;db.cgi?Wikinator&quot;
+|               &quot;Wikinator&quot;
+|     &lt;p&gt;
+|       style=&quot;text-align: start;&quot;
+|       &lt;font&gt;
+|         size=&quot;3&quot;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;Start browsing the topics below, or use the search field at the bottom of every page.&lt;#selection-caret&gt;&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcanreadincopyandcuteventsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-copy-and-cut-events-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-copy-and-cut-events-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-copy-and-cut-events-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 13: TypeError: null is not an object (evaluating 'event.clipboardData.types.indexOf')
+CONSOLE MESSAGE: line 22: TypeError: null is not an object (evaluating 'event.clipboardData.types.indexOf')
+Simple test that data set during a copy/cut event can be read back. To run the test manually, simply select any text and initiate a copy/cut operation.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcanreadindragstarteventexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-dragstart-event-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-dragstart-event-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/can-read-in-dragstart-event-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+Simple test that data set during a dragstart event can be read back. To run the test manually, simply start dragging the 'Drag Me' element below.
+
+Drag Me
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcleanuponmoveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cleanup-on-move-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cleanup-on-move-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cleanup-on-move-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+This test drags a selection of a couple of &lt;li&gt; and drops them after another &lt;li&gt; in the same list. It verifies that no empty &lt;li&gt; (actually with a &lt;br&gt; inside) are left after the moving operation.
+
+The original list looks like this. 'two' and 'three' are selected and are going to be dropped after 'four':
+| &quot;
+&quot;
+| &lt;li&gt;
+|   id=&quot;one&quot;
+|   &quot;one&quot;
+| &lt;li&gt;
+|   id=&quot;two&quot;
+|   &quot;two&quot;
+| &lt;li&gt;
+|   id=&quot;three&quot;
+|   &quot;three&quot;
+| &lt;li&gt;
+|   id=&quot;four&quot;
+|   &quot;four&quot;
+| &quot;
+&quot;
+
+'two' and 'three' should appear as &lt;li&gt; after 'four' and no empty &lt;li&gt; (nor a &lt;br&gt; placeholder) should be there:
+| &quot;
+&quot;
+| &lt;li&gt;
+|   id=&quot;one&quot;
+|   &quot;one&quot;
+| &lt;li&gt;
+|   id=&quot;two&quot;
+|   &quot;two&quot;
+| &lt;li&gt;
+|   id=&quot;three&quot;
+|   &quot;three&quot;
+| &lt;li&gt;
+|   id=&quot;four&quot;
+|   &quot;four&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardclipboardcustomDataexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/clipboard-customData-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/clipboard-customData-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/clipboard-customData-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+Simple test that custom clipboard MIME types can be set during copy events and retrieved during paste events. The test can be manually run by copying any text on this page and then pasting anywhere. On success, the word SUCCESS will appear below.
+
+FAILURE
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcontenteditablepre2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+This test copies and pastes content inside pre that is an editing host. WebKit should not clone pre.
+To manually test, cut and paste &quot;hello\nworld&quot; WebKit should not nest pre (no red borders).
+
+Before cut paste:
+| &lt;pre&gt;
+|   &quot;hello&quot;
+|   &lt;br&gt;
+|   &quot;world&quot;
+
+After cut paste:
+| &lt;pre&gt;
+|   &quot;hello&quot;
+|   &lt;br&gt;
+|   &quot;world&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcontenteditablepreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/contenteditable-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This test copies and pastes content inside pre that is an editing host. WebKit should not clone pre.
+To manually test, copy and paste &quot;hello&quot; and then paste it into the boxes below.
+WebKit should not clone pre (nest pre) and the pasted content should not have nested borders.
+
+Pasting into pre; the pre should not be listed below:
+| &quot;hello&quot;
+
+Pasting into div; the pasted content should be in pre:
+| 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopybackslashwitheucexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-backslash-with-euc-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-backslash-with-euc-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-backslash-with-euc-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+
+Original texts which will be copied
+
+\ from UTF8 page
+\ FROM UTF8 PAGE (TRANSFORMED)
+●●●●●●●●●●●●●●●●●●●●●●●●●
+
+Texts in the EUC frame will be pasted here
+
+from EUC div to UTF8 text-control: 
+from EUC div to UTF8 content-editable: FAIL
+from EUC transform to UTF8 text-control: 
+from EUC transform to UTF8 content-editable: FAIL
+from EUC secure to UTF8 text-control: 
+from EUC secure to UTF8 content-editable: FAIL
+from EUC control to UTF8 text-control: 
+from EUC control to UTF8 content-editable: FAIL
+
+Results
+
+from EUC div to UTF8 text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC div to UTF8 content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC transform to UTF8 text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC transform to UTF8 content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC secure to UTF8 text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC secure to UTF8 content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC control to UTF8 text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from EUC control to UTF8 content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 div to EUC text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 div to EUC content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 transform to EUC text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 transform to EUC content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 secure to EUC text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 secure to EUC content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 control to EUC text-control: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+from UTF8 control to EUC content-editable: FAIL: the actual text was 'FAIL' (char code of the first character was 70)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyimagewithalttextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-image-with-alt-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-image-with-alt-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-image-with-alt-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+This tests that image alt text makes it to the clipboard. This test requires DRT or WTR. The first two dumps should not include alt text and the third and forth dumps should include alt text.
+
+Dump of markup 1:
+|   &lt;shadow:root&gt;
+|     &lt;div&gt;
+|       contenteditable=&quot;plaintext-only&quot;
+
+Dump of markup 2:
+| 
+
+Dump of markup 3:
+|   &lt;shadow:root&gt;
+|     &lt;div&gt;
+|       contenteditable=&quot;plaintext-only&quot;
+
+Dump of markup 4:
+| 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyinpasswordfieldexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-in-password-field-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-in-password-field-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-in-password-field-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test verifies that copying is disabled for password fields by attempting to copy from a password field and paste into a textfield. If the test passes, you'll see a of 'PASS' message below, and the textfield will remain unmodified.
+
+(The test is only meaningful in debug builds, since paste is disabled in release builds.)
+
+  
+PASS document.getElementById(&quot;text&quot;).value is &quot;[not modified]&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyinsideh1preservesh1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+Failure. Found: , but expected: &lt;h1&gt;foo&lt;/h1&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopynullcharactersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-null-characters-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-null-characters-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-null-characters-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+If there are NULL characters in text nodes, they should not be copied to the clipboard.  This test requires DumpRenderTree.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;outerSource&quot;
+|   &lt;p&gt;
+|     &lt;b&gt;
+|       &quot;bold&quot;
+|   &quot;
+  &quot;
+|   &lt;div&gt;
+|     contenteditable=&quot;true&quot;
+|     id=&quot;source&quot;
+|     &quot;Copy paste me&quot;
+|   &quot;
+  &quot;
+|   &lt;p&gt;
+|     style=&quot;color: green&quot;
+|     &quot;green&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;destination-rich-text&quot;
+| &quot;
+&quot;
+| &lt;textarea&gt;
+|   id=&quot;destination-plain-text&quot;
+|   this.value=&quot;&quot;
+|   &lt;shadow:root&gt;
+|     &lt;div&gt;
+|       contenteditable=&quot;plaintext-only&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;results&quot;
+|   &quot;Plain text field has the wrong value (expected &quot;Copy paste me&quot; but found &quot;&quot;).&quot;
+| &quot;
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastebidiexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-bidi-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-bidi-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-bidi-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM) order.
+
+first test - before:
+| &quot;1234שדגכ:&quot;
+
+first test - after:
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;1234שדגכ:&lt;#selection-caret&gt;&quot;
+
+second test - before:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;1234שדגכ:&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   style=&quot;direction: rtl;&quot;
+|   &quot;1234שדגכ:&quot;
+| &quot;
+&quot;
+
+second test - after:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &lt;div&gt;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;1234שדגכ:&quot;
+|   &lt;div&gt;
+|     style=&quot;direction: rtl;&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;1234שדגכ:&lt;#selection-caret&gt;&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastecontentstartingandendingcanvasexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-content-starting-and-ending-canvas-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-content-starting-and-ending-canvas-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-content-starting-and-ending-canvas-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+This tests selecting all, copying, and pasting a content that starts and ends with canvas elements.
+To manually test, copy and paste the content below:
+
+Before paste:
+| &quot;
+&quot;
+| &lt;canvas&gt;
+|   height=&quot;100&quot;
+|   style=&quot;border: 1px solid black&quot;
+|   width=&quot;100&quot;
+| &quot;
+some text
+&quot;
+| &lt;canvas&gt;
+|   height=&quot;100&quot;
+|   style=&quot;border: 1px solid black&quot;
+|   width=&quot;100&quot;
+| &quot;
+some more text
+&quot;
+| &lt;canvas&gt;
+|   height=&quot;100&quot;
+|   style=&quot;border: 1px solid black&quot;
+|   width=&quot;100&quot;
+| &quot;
+&quot;
+
+After paste:
+| &quot;
+&quot;
+| &lt;canvas&gt;
+|   height=&quot;100&quot;
+|   style=&quot;border: 1px solid black&quot;
+|   width=&quot;100&quot;
+| &quot;
+some text
+&quot;
+| &lt;canvas&gt;
+|   height=&quot;100&quot;
+|   style=&quot;border: 1px solid black&quot;
+|   width=&quot;100&quot;
+| &quot;
+some more text
+&quot;
+| &lt;canvas&gt;
+|   height=&quot;100&quot;
+|   style=&quot;border: 1px solid black&quot;
+|   width=&quot;100&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteconvertsfixedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-fixed-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-fixed-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-fixed-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,99 @@
</span><ins>+This tests to see if position:fixed gets converted to position:absolute upon copy/paste
+
+first test - before:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+abc&quot;
+|     &lt;div&gt;
+|       style=&quot;position: fixed; left: 0px; top: 0px;&quot;
+|       &quot;def&quot;
+|     &quot;ghi
+&quot;
+|     &lt;br&gt;
+|     &quot;
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if position:fixed gets converted to position:absolute upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
+
+first test - after:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+abc&quot;
+|     &lt;div&gt;
+|       style=&quot;position: fixed; left: 0px; top: 0px;&quot;
+|       &quot;def&quot;
+|     &quot;ghi
+&quot;
+|     &lt;br&gt;
+|     &quot;
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if position:fixed gets converted to position:absolute upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteconvertsstickyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-sticky-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-sticky-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-converts-sticky-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,99 @@
</span><ins>+This tests to see if position:sticky gets converted to position:static upon copy/paste
+
+first test - before:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+abc&quot;
+|     &lt;div&gt;
+|       style=&quot;position: -webkit-sticky; left: 0px; top: 0px;&quot;
+|       &quot;def&quot;
+|     &quot;ghi
+&quot;
+|     &lt;br&gt;
+|     &quot;
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if position:sticky gets converted to position:static upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
+
+first test - after:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+abc&quot;
+|     &lt;div&gt;
+|       style=&quot;position: -webkit-sticky; left: 0px; top: 0px;&quot;
+|       &quot;def&quot;
+|     &quot;ghi
+&quot;
+|     &lt;br&gt;
+|     &quot;
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if position:sticky gets converted to position:static upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastedoesntconvertstickyandfixedduringpartialcopyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-doesnt-convert-sticky-and-fixed-during-partial-copy-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-doesnt-convert-sticky-and-fixed-during-partial-copy-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-doesnt-convert-sticky-and-fixed-during-partial-copy-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+This tests to see if position:sticky and position:fixed don't get converted to position:static and position:absolute upon copy/paste when there is only a partial selection (not the entire body is selected)
+
+Before:
+| &quot;
+abc&quot;
+| &lt;div&gt;
+|   style=&quot;position: fixed; left: 0px; top: 0px;&quot;
+|   &quot;def&quot;
+| &quot;ghi
+&quot;
+
+After:
+| &quot;
+abc&quot;
+| &lt;div&gt;
+|   style=&quot;position: fixed; left: 0px; top: 0px;&quot;
+|   &quot;def&quot;
+| &quot;ghi
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastefirstlineintextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-first-line-in-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-first-line-in-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-first-line-in-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL selectFirstLineIncludingLineBreak(); copyPaste(); textarea.selectionEnd should be 6. Was 0.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastefloatexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-float-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-float-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-float-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 18: TypeError: undefined is not an object (evaluating 'pasteSection.firstChild.style.getPropertyValue')
+This test is to see if text within a floating block is put onto the paste board wihtout the float style.
+
+First LI
+Second LI
+
+---
+---
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteinsertsclearingdivexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-inserts-clearing-div-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-inserts-clearing-div-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-inserts-clearing-div-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,103 @@
</span><ins>+This tests to see if floating elements cause a clearing element to be inserted upon copy/paste
+
+first test - before:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+Before
+&quot;
+|     &lt;div&gt;
+|       style=&quot;position: absolute; top: 0px; right: 0px; width: 100px; height: 100px; background: yellow;&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       style=&quot;float: right; width: 200px; height: 200px; background: blue;&quot;
+|     &quot;
+After
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if floating elements cause a clearing element to be inserted upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
+
+first test - after:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+Before
+&quot;
+|     &lt;div&gt;
+|       style=&quot;position: absolute; top: 0px; right: 0px; width: 100px; height: 100px; background: yellow;&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       style=&quot;float: right; width: 200px; height: 200px; background: blue;&quot;
+|     &quot;
+After
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if floating elements cause a clearing element to be inserted upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasteprelinecontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-pre-line-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-pre-line-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-pre-line-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This tests pasting two lines of text copied from pre content. To manually test, copy the selected text (including the new line) and paste it into textarea twice. There should be no blank line between two pasted lines.
+
+A line of text
+some other text
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypasterubytextwithblockexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-ruby-text-with-block-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-ruby-text-with-block-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-ruby-text-with-block-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests copying and pasting text with ruby doesn't insert new lines before and after rt but still inserts a new line around a block element around ruby.To manually test, copy and paste the text into the textarea. There should be not new line in the textarea.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL textarea.value.indexOf('\n') should be 8. Was -1.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastewithimportantrulesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-with-important-rules-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-with-important-rules-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-with-important-rules-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This test ensures copying and paste respects !important in style rules. To test manually, copy and paste the content in the first box to the second box. All text should remain in blue and should remain unboldened.
+
+hello world
+
+WebKit
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopypastewrapspositionabsoluteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-wraps-position-absolute-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-wraps-position-absolute-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-paste-wraps-position-absolute-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,99 @@
</span><ins>+This tests to see if position:absolute gets wrapped with a position:relative upon copy/paste
+
+first test - before:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+abc&quot;
+|     &lt;div&gt;
+|       style=&quot;position: absolute; left: 0px; top: 0px;&quot;
+|       &quot;def&quot;
+|     &quot;ghi
+&quot;
+|     &lt;br&gt;
+|     &quot;
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if position:absolute gets wrapped with a position:relative upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
+
+first test - after:
+| &lt;html&gt;
+|   &lt;head&gt;
+|     &quot;
+&quot;
+|     &lt;meta&gt;
+|       content=&quot;text/html; charset=utf-8&quot;
+|       http-equiv=&quot;Content-type&quot;
+|     &quot;
+&quot;
+|     &lt;script&gt;
+|       src=&quot;../../resources/dump-as-markup.js&quot;
+|       type=&quot;text/javascript&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;body&gt;
+|     &quot;
+abc&quot;
+|     &lt;div&gt;
+|       style=&quot;position: absolute; left: 0px; top: 0px;&quot;
+|       &quot;def&quot;
+|     &quot;ghi
+&quot;
+|     &lt;br&gt;
+|     &quot;
+
+&quot;
+|     &lt;script&gt;
+|       &quot;
+
+Markup.description('This tests to see if position:absolute gets wrapped with a position:relative upon copy/paste');
+
+document.designMode = 'on';
+
+if (window.internals)
+    window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
+
+var s = window.getSelection();
+
+Markup.dump('test1', 'first test - before');
+document.execCommand(&quot;SelectAll&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+Markup.dump('test1', 'first test - after');
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopyresolvesurlsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-resolves-urls-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-resolves-urls-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-resolves-urls-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests to make sure that copying/pasting HTML results in URLs being full paths so pasting between websites works. To test manually, copy the selection and paste it into the blue box. If this is a file:/// url, the links should be relative. If this is an http:// url, the links should be absolute.
+
+link
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopystandaloneimagecrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 14: TypeError: undefined is not an object (evaluating 'actionitems.length')
+FAIL: Timed out waiting for notifyDone to be called
+This is an automated test case for bug 31721
+If you wish to test manually, mouseover to image, activate context menu, wait for the image to disappear and then click copy image.
+There should be no crash.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopystandaloneimageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-standalone-image-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 362x19
+          text run at (0,0) width 362: &quot;This is an automatic test of copying an image document.&quot;
+      RenderBlock {P} at (0,36) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 775: &quot;To perform this test manually, click once in the image frame, choose Edit -&gt; Copy then click in the red box and paste the&quot;
+          text run at (0,20) width 365: &quot;image. If the image pastes successfully the test is passed.&quot;
+      RenderBlock (anonymous) at (0,92) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px solid #0000FF)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (0,0) size 300x150
+                RenderImage {IMG} at (0,0) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,246) size 784x131 [border: (2px solid #FF0000)]
+        RenderImage {IMG} at (14,14) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {IMG} of child 7 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopytextwithbackgroundcolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-backgroundcolor-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-backgroundcolor-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-backgroundcolor-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,108 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c9491b0&gt; toElementsInDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+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 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a6a3450&gt; toElementsInDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+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 22 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 22 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cc23c70&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 22 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 22 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+Markup before:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   style=&quot;background-color: rgb(255, 0, 0);&quot;
+|   &quot;&lt;#selection-caret&gt;Red background&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;test2&quot;
+|   &lt;span&gt;
+|     style=&quot;background-color: green;&quot;
+|     &quot;Green background&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;test3&quot;
+|   &lt;span&gt;
+|     style=&quot;background-color: rgb(255, 0, 0, 0);&quot;
+|     &quot;Transparent background&quot;
+| &quot;
+&quot;
+
+Markup after:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   style=&quot;background-color: rgb(255, 0, 0);&quot;
+|   &quot;Red background&quot;
+| &quot;
+&quot;
+| &lt;br&gt;
+| &lt;font&gt;
+|   size=&quot;3&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;Red background&quot;
+| &lt;div&gt;
+|   id=&quot;test2&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;Green background&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;test2&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;Green background&quot;
+| &lt;div&gt;
+|   id=&quot;test3&quot;
+|   &lt;span&gt;
+|     style=&quot;background-color: rgb(255, 0, 0, 0);&quot;
+|     &quot;Transparent background&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;Transparent background&lt;#selection-caret&gt;&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopytextwithwrappedtagexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+This tests to make sure that copying and pasting a text followed by an anchor tag wrapped into 2nd line do not lose the space between text and tag in the destination.
+
+Original:
+| &quot;Copy this text &quot;
+| &lt;a&gt;
+|   href=&quot;http://www.google.com&quot;
+|   &quot;AVeryLongWordThatWillWrap&quot;
+
+Pasted:
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;Copy this text &quot;
+|   &lt;a&gt;
+|     href=&quot;http://www.google.com&quot;
+|     &quot;AVeryLongWordThatWillWrap&lt;#selection-caret&gt;&quot;
+
+Pasted2:
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;Copy multiple spaces &quot;
+|   &lt;a&gt;
+|     href=&quot;http://www.google.com&quot;
+|     &quot;AVeryLongWordThatWillWrap&lt;#selection-caret&gt;&quot;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopytwopasteboardtypesbothworkexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-two-pasteboard-types-both-work-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-two-pasteboard-types-both-work-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-two-pasteboard-types-both-work-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+Copy then paste. The output should read &quot;FooBar&quot;
+
+Data to copy: 
+Data pasted:
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcopywithoutselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-without-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-without-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/copy-without-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+You has the right.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardcuttext001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cut-text-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cut-text-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/cut-text-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 78x28
+          RenderText {#text} at (14,15) size 78x28
+            text run at (14,15) width 78: &quot;foo  baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsdragdropentryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-entry-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-entry-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-entry-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+CONSOLE MESSAGE: line 56: TypeError: undefined is not a function (evaluating 'eventSender.beginDragWithFiles(files)')
+FAIL: Timed out waiting for notifyDone to be called
+This tests the basic functionality and properties of DataTransferItems for files with drag and drop. This test requires DRT.
+Drop files here if you test this manually
+Dragging file: resources/mozilla.gif
+Dragging file: resources/drop-file-svg.svg
+Dragging file: resources/copy-backslash-euc.html
+Dragging file: resources/test_directory
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsdragdropfileexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-file-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-file-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-file-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 53: TypeError: undefined is not a function (evaluating 'eventSender.beginDragWithFiles(files)')
+FAIL: Timed out waiting for notifyDone to be called
+This tests the basic functionality and properties of DataTransferItems for files with drag and drop. This test requires DRT.
+Drop files here if you test this manually
+Dragging file: resources/mozilla.gif
+Dragging file: resources/drop-file-svg.svg
+Dragging file: resources/copy-backslash-euc.html
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsdragdropstringexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-drag-drop-string-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests the basic functionality and properties of DataTransferItems for string data with drag and drop. This test requires DRT.
+Lorem ipsum 
+Drop text here if you test this manually
+Dragging text in source1: Lorem ipsum
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddatatransferitemsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/data-transfer-items-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 40: TypeError: undefined is not an object (evaluating 'items.add')
+CONSOLE MESSAGE: line 72: TypeError: undefined is not an object (evaluating 'items[0]')
+CONSOLE MESSAGE: line 105: TypeError: undefined is not an object (evaluating 'savedDataTransferItems.length')
+FAIL: Timed out waiting for notifyDone to be called
+This file tests the basic functionality and properties of DataTransferItems. This test requires DRT.
+Populating DataTransferItems...
+Testing if DataTransferItems can be accessed outside an event handler...
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddataTransfersetDatagetDataexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/dataTransfer-setData-getData-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/dataTransfer-setData-getData-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/dataTransfer-setData-getData-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+Tests correct behavior of event.dataTransfer.setData/getData for 'URL', 'text/uri-list' and 'text/plain'
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+--- Test set/get 'URL':
+--- Test set/get 'URL' with multiple URLs:
+--- Test set/get 'text/uri-list':
+--- Test set/get 'text/uri-list' using '\n':
+--- Test set 'text/uri-list', get 'URL':
+--- Test set 'URL', get 'text/uri-list':
+--- Test set 'text/uri-list', get 'URL', using only '\n':
+--- Test set/get 'text/uri-list' with comments:
+--- Test set 'text/uri-list', get 'URL' with comments:
+--- Test set 'text/uri-list', get 'URL' with only comments:
+--- Test set/get 'text/plain':
+--- Test set 'text/plain', get 'text':
+--- Test set 'text', get 'text/plain':
+--- Test set/get 'text':
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddisplacedgenericplaceholderexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-generic-placeholder-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-generic-placeholder-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-generic-placeholder-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 17 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 747x39
+          text run at (0,0) width 747: &quot;This is a test to make sure that a placeholder, even one that doesn't have our special class on it, is removed when it is&quot;
+          text run at (0,20) width 181: &quot;displaced by pasted content.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;First paragraph.&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 120x19
+            text run at (0,0) width 120: &quot;Second paragraph.&quot;
+        RenderBlock (anonymous) at (0,40) size 784x0
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddisplacedplaceholderexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-placeholder-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-placeholder-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/displaced-placeholder-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 17 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: &quot;This is a test to make sure that a placeholder is removed when it is displaced by pasted content.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;First paragraph.&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 120x19
+            text run at (0,0) width 120: &quot;Second paragraph.&quot;
+        RenderBlock (anonymous) at (0,40) size 784x0
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddisplayblockonspansexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/display-block-on-spans-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/display-block-on-spans-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/display-block-on-spans-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+This is a test case for the fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7904.
+ReplaceSelectionCommand used to guess whether or not nodes in the fragment to be pasted were blocks. It now knows for sure.
+Before the fix, ReplaceSelectionCommand blew away content of the div below after copy/pasting it over itself.
+The following two results must be visually identical except for the caret.
+
+before:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   style=&quot;display:block&quot;
+|   &lt;b&gt;
+|     &quot;&lt;#selection-caret&gt;This is a paragraph.&quot;
+| &quot;
+&quot;
+| &lt;span&gt;
+|   style=&quot;display:block&quot;
+|   &lt;b&gt;
+|     &quot;This is another paragraph.&quot;
+| &quot;
+&quot;
+
+after:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   style=&quot;display: block;&quot;
+|   &lt;b&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;This is a paragraph.&quot;
+| &lt;span&gt;
+|   style=&quot;display:block&quot;
+|   &lt;b&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;This &lt;#selection-caret&gt;&quot;
+|   &lt;b&gt;
+|     &quot;is another paragraph.&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddonotcopyunnecessarystyles2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This test verifies that WebKit does not erroneously clone nodes hierarchy when copying text with background color.
+&quot;Hello&quot; should be blue and has yellow background but you should not see red border.
+
+You should not see any borders:
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;Hello&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddonotcopyunnecessarystylesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/do-not-copy-unnecessary-styles-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+
+&lt;div&gt;
+This test verifies that WebKit does not erroneously clone nodes hierarchy when copying text with background color.
+To manually this test, select the text inside the div with the border, cut and paste it back. You should not see an additional red border.
+&lt;div style=&quot;border: 2px solid red&quot;&gt;
+&lt;div id=&quot;test&quot;&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0);&quot;&gt;Select this text&lt;/span&gt;&lt;br&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;/div&gt;
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddraganddropimagecontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-image-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-image-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-image-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This test verify dragging an image in the page keeps its attributes. To test manually, drag the image and drop it in the rect with a blue border.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddraganddropinputimagecontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-inputimage-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-inputimage-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-inputimage-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This test verify dragging an image in the page keeps its attributes. To test manually, drag the image and drop it in the rect with a blue border.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddraganddropobjectimagecontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-objectimage-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-objectimage-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-and-drop-objectimage-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This test verify dragging an image in the page keeps its attributes. To test manually, drag the image and drop it in the rect with a blue border.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropdeadframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-dead-frame-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-dead-frame-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-dead-frame-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: &quot;Check you don't crash when your previous drag target frame is deleted &lt;rdar://problem/5049842&gt;&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderInline {SPAN} at (0,0) size 32x19
+          RenderText {#text} at (0,0) size 32x19
+            text run at (0,0) width 32: &quot;hello&quot;
+      RenderBlock (anonymous) at (0,56) size 784x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropinputtextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-input-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-input-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-input-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests text selection drag from a textarea and drop to an input, and vice versa. There was a bug of an assertion failure in a case of the selected text was longer than the destination text.
+
+FAIL: expected value=&quot;What&quot;, actual value=&quot;&quot;
+FAIL: expected value=&quot;What&quot;, actual value=&quot;&quot;

</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdroplistexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-list-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-list-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-list-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+This tests dropping content onto a list items content when the content is wrapped in a span.  You should see 'DropAboveMe DragMe'. See &lt;rdar://4861080&gt;, but note that the expected behavior is different than what's described there, since the rendering bug &lt;rdar://4907469&gt; has been fixed.
+| &quot;
+&quot;
+| &lt;li&gt;
+|   id=&quot;li&quot;
+|   style=&quot;border: 1px solid black;&quot;
+|   &lt;span&gt;
+|     &lt;div&gt;
+|       id=&quot;contents&quot;
+|       style=&quot;border: 1px solid red;&quot;
+|       &quot;DropAboveMe&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &lt;span&gt;
+|     id=&quot;drag&quot;
+|     &quot;Dra&lt;#selection-caret&gt;gMe&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropmodifiespageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-modifies-page-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-modifies-page-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-modifies-page-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 734x39
+          text run at (0,0) width 734: &quot;This tests non-smartmove drag/drop. The space should be deleted on move, but not reinserted on drop, resulting in&quot;
+          text run at (0,20) width 87: &quot;\&quot;worldhello\&quot;.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderInline {SPAN} at (0,0) size 32x19
+          RenderText {#text} at (0,0) size 32x19
+            text run at (0,0) width 32: &quot;hello&quot;
+        RenderText {#text} at (31,0) size 43x19
+          text run at (31,0) width 43: &quot; world&quot;
+caret: position 6 of child 1 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropparagraphcrasherexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-paragraph-crasher-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-paragraph-crasher-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-paragraph-crasher-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests text selection drag including a &lt;p&gt; tag, where its parent &lt;p&gt; tag is not editable.
+| &quot;and drag it here&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdroptodataurlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-to-data-url-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-to-data-url-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-to-data-url-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:(null) affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Check you can't drag into a data URL
+
+hello
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropurltextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests text selection drag for a URL-like text.
+
+To test this by hand, select all of the text in this input: 
+and drag/drop it into this input:  
+
+If you see that the text &quot;http://www.apple.com/&quot; was put in the second box, then the test passed.
+FAIL: expected value=&quot;http://www.apple.com/&quot;, actual value=&quot;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragdropurlwithstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-with-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-with-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-drop-url-with-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+This tests dragging and dropping a URL. The content before and after the drag and drop should match.
+
+before:
+| &lt;a&gt;
+|   href=&quot;http://webkit.org/&quot;
+|   style=&quot;color:orange&quot;
+|   target=&quot;_blank&quot;
+|   title=&quot;some title&quot;
+|   &quot;&lt;#selection-anchor&gt;drag me&lt;#selection-focus&gt;&quot;
+
+after:
+| &quot;FAIL&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragfilestoeditableelementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-files-to-editable-element-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-files-to-editable-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-files-to-editable-element-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+CONSOLE MESSAGE: line 29: TypeError: undefined is not a function (evaluating 'eventSender.beginDragWithFiles(files)')
+If we drag files onto an editable area, then the filenames should be inserted into the editable area.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragimageinaboutblankframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-in-about-blank-frame-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-in-about-blank-frame-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-in-about-blank-frame-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+Bug 14428: FCKEditor: Images disappear on drag/drop and copy/paste
+
+FAILURE
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragimagetocontenteditableiniframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x39
+          text run at (0,0) width 762: &quot;This tests that we can drag an image into the last position of a content editable div in an iframe that already contains an&quot;
+          text run at (0,20) width 159: &quot;image, without crashing.&quot;
+      RenderBlock (anonymous) at (0,56) size 784x159
+        RenderImage {IMG} at (0,51) size 76x103
+        RenderText {#text} at (76,139) size 4x19
+          text run at (76,139) width 4: &quot; &quot;
+        RenderPartObject {IFRAME} at (80,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134
+                RenderBlock {DIV} at (0,0) size 272x130 [border: (1px solid #000000)]
+                  RenderImage {IMG} at (1,1) size 20x20
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,231) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddraglistitemexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-list-item-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-list-item-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-list-item-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+This test drags a selection of one &lt;li&gt; and drops them after another &lt;li&gt; in the first list. The same test is repeated in the second list but this time with two selected items instead of one. It verifies that the behavior is independent of how many fully selected items we move, i.e. fully selected &lt;li&gt; are moved as &lt;li&gt; and not just as plain text
+
+The original list looks like this. 'two' is selected and is going to be dropped after 'four':
+| &quot;
+&quot;
+| &lt;li&gt;
+|   id=&quot;one&quot;
+|   &quot;one&quot;
+| &lt;li&gt;
+|   id=&quot;two&quot;
+|   &quot;&lt;#selection-anchor&gt;two&lt;#selection-focus&gt;&quot;
+| &lt;li&gt;
+|   id=&quot;three&quot;
+|   &quot;three&quot;
+| &lt;li&gt;
+|   id=&quot;four&quot;
+|   &quot;four&quot;
+| &quot;
+&quot;
+
+'two' should appear as a new &lt;li&gt; after 'four':
+| &quot;
+&quot;
+| &lt;li&gt;
+|   id=&quot;one&quot;
+|   &quot;one&quot;
+| &lt;li&gt;
+|   id=&quot;two&quot;
+|   &quot;two&quot;
+| &lt;li&gt;
+|   id=&quot;three&quot;
+|   &quot;three&quot;
+| &lt;li&gt;
+|   id=&quot;four&quot;
+|   &quot;four&quot;
+| &quot;
+&quot;
+
+The original list looks like this. 'two' and 'three' are selected and are going to be dropped after 'four':
+| &lt;li&gt;
+|   id=&quot;one&quot;
+|   &quot;one&quot;
+| &lt;li&gt;
+|   id=&quot;two&quot;
+|   &quot;&lt;#selection-anchor&gt;two&quot;
+| &lt;li&gt;
+|   id=&quot;three&quot;
+|   &quot;three&lt;#selection-focus&gt;&quot;
+| &lt;li&gt;
+|   id=&quot;four&quot;
+|   &quot;four&quot;
+
+'two' and 'three' should appear as &lt;li&gt; after 'four':
+| &lt;li&gt;
+|   id=&quot;one&quot;
+|   &quot;one&quot;
+| &lt;li&gt;
+|   id=&quot;two&quot;
+|   &quot;two&quot;
+| &lt;li&gt;
+|   id=&quot;three&quot;
+|   &quot;three&quot;
+| &lt;li&gt;
+|   id=&quot;four&quot;
+|   &quot;four&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddragselectedimagetocontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x584
+      RenderBlock {DIV} at (0,0) size 302x122 [border: (1px solid #000000)]
+      RenderBlock (anonymous) at (0,122) size 800x103
+        RenderImage {IMG} at (0,0) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,241) size 800x20
+        RenderListItem {LI} at (40,0) size 760x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 416x19
+            text run at (0,0) width 416: &quot;Abe should appear twice, once inside the div and once outside it.&quot;
+selection start: position 0 of child 3 {IMG} of body
+selection end:   position 1 of child 3 {IMG} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddropfilesvgexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-file-svg-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-file-svg-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-file-svg-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 16: TypeError: undefined is not a function (evaluating 'eventSender.beginDragWithFiles([&quot;fakefile&quot;])')
+A crash reproducing test using DRT. The test passes if it doesn't crash.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddropinputtextacquiresstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-inputtext-acquires-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-inputtext-acquires-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-inputtext-acquires-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+This test checks that the plain text dropped into a styled text region will acquire the appropriate style.
+To run this test manually, drag the text in the input element below into the bold text region. The dropped text should be bold. Click the verify button to check.
+


+Drag the text from the above input element into this bold text
+&lt;b contenteditable=&quot;true&quot; id=&quot;destination&quot;&gt;Drag the text from the above input element into this bold text&lt;/b&gt;
+SUCCESS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddroplinkexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-link-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-link-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-link-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test checks that links dragged into editable regions preserve their title and URL.
+Hello
+Goodbye
+This &lt;/a&gt;&lt;a href=&quot;http://webkit.org/&quot;&gt;is another link
+Link is http://apple.com/
+Failure! Link texts differ
+Failure, incorrect number of anchor tags present
+To run this test manually, drag the first link into the box with 'Hello' in it, drag the second link into the box with 'Goodbye' in it, and then click on the button.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddroptexteventsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-events-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-events-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-events-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+This tests that Drag drop fires textInput events.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL actualTextEventData should be PlainHello (of type string). Was null (of type object).
+FAIL testTargetTextarea.value should be PlainHello. Was .
+FAIL actualTextEventData should be PlainHello (of type string). Was null (of type object).
+FAIL testTargetInput.value should be PlainHello. Was .
+FAIL actualTextEventData should be  (of type string). Was null (of type object).
+FAIL 0 &lt;= testTargetEditable.innerHTML.indexOf('PlainHello') should be true. Was false.
+FAIL actualTextEventData should be RichHello (of type string). Was null (of type object).
+FAIL testTargetTextarea.value should be RichHello. Was .
+FAIL actualTextEventData should be RichHello (of type string). Was null (of type object).
+FAIL testTargetInput.value should be RichHello. Was .
+FAIL actualTextEventData should be  (of type string). Was null (of type object).
+FAIL 0 &lt;= testTargetEditable.innerHTML.indexOf('&lt;b&gt;Rich&lt;/b&gt;Hello') should be true. Was false.
+FAIL textInputCount should be 6. Was 0.
+FAIL actualTextEventData should be PlainHello (of type string). Was null (of type object).
+PASS testTargetTextarea.value is ''
+FAIL actualTextEventData should be PlainHello (of type string). Was null (of type object).
+PASS testTargetInput.value is ''
+FAIL actualTextEventData should be  (of type string). Was null (of type object).
+PASS testTargetEditable.innerHTML is 'placeholder'
+FAIL actualTextEventData should be RichHello (of type string). Was null (of type object).
+PASS testTargetTextarea.value is ''
+FAIL actualTextEventData should be RichHello (of type string). Was null (of type object).
+PASS testTargetInput.value is ''
+FAIL actualTextEventData should be  (of type string). Was null (of type object).
+PASS testTargetEditable.innerHTML is 'placeholder'
+FAIL textInputCount should be 6. Was 0.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboarddroptextwithoutselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-without-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-without-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/drop-text-without-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 108x19
+          text run at (0,0) width 108: &quot;This is a test for &quot;
+        RenderInline {I} at (0,0) size 766x39
+          RenderInline {A} at (0,0) size 354x19 [color=#0000EE]
+            RenderText {#text} at (107,0) size 354x19
+              text run at (107,0) width 354: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=8394&quot;
+          RenderText {#text} at (460,0) size 766x39
+            text run at (460,0) width 5: &quot; &quot;
+            text run at (464,0) width 302: &quot;Editable region does not accept dropped text if&quot;
+            text run at (0,20) width 129: &quot;there is no selection&quot;
+        RenderText {#text} at (128,20) size 5x19
+          text run at (128,20) width 5: &quot;.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 668x19
+          text run at (0,0) width 488: &quot;The text field should accept drag-and-dropped text, such as the link, even if &quot;
+          text run at (487,0) width 181: &quot;no text is currently selected.&quot;
+      RenderBlock {HR} at (0,92) size 784x2 [border: (1px inset #000000)]
+      RenderBlock (anonymous) at (0,102) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (139,1) size 5x19
+          text run at (139,1) width 5: &quot; &quot;
+        RenderInline {A} at (0,0) size 167x19 [color=#0000EE]
+          RenderText {#text} at (143,1) size 167x19
+            text run at (143,1) width 167: &quot;drop me into the text field&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,115) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardemacscntly001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-cntl-y-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-cntl-y-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-cntl-y-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertText:y replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x194 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 537x28
+            text run at (0,31) width 537: &quot;Cntl-y at caret selection when nothing is in the kill ring.&quot;
+        RenderBlock {DIV} at (14,90) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 286x28
+            text run at (0,31) width 286: &quot;Deletes a character, yielding: &quot;
+          RenderBR {BR} at (285,53) size 1x0
+          RenderText {#text} at (0,61) size 165x28
+            text run at (0,61) width 165: &quot;one tw three four&quot;
+      RenderBlock {DIV} at (0,218) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 189x28
+            text run at (2,3) width 189: &quot;one two ythree four&quot;
+caret: position 9 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardemacsctrlakyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-a-k-y-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertText:k replacingDOMRange:range from 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:a replacingDOMRange:range from 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:y replacingDOMRange:range from 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x194 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 220x28
+            text run at (0,31) width 220: &quot;ctrl-a, ctrl-k, and ctrl-y&quot;
+        RenderBlock {DIV} at (14,90) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderBR {BR} at (0,31) size 0x28
+          RenderText {#text} at (0,61) size 220x28
+            text run at (0,61) width 220: &quot;one two three four five&quot;
+      RenderBlock {DIV} at (0,218) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 255x28
+            text run at (2,3) width 255: &quot;one five two kaythree four&quot;
+caret: position 16 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardemacsctrlkwithmoveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-with-move-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-with-move-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-with-move-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Test for bug 73888: Kill ring is not cleared when selection changes.
+
+one
+three
+five
+
+Expected result:
+one
+three
+five
+four
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardemacsctrlky001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertText:k replacingDOMRange:range from 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:k replacingDOMRange:range from 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:k replacingDOMRange:range from 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:k replacingDOMRange:range from 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:k replacingDOMRange:range from 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:y replacingDOMRange:range from 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionTyped
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 344x28
+            text run at (0,31) width 344: &quot;Multiple ctrl-k presses then a ctrl-y.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+          RenderBlock {DIV} at (0,30) size 756x90
+            RenderBlock (anonymous) at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 131x28
+                text run at (0,1) width 131: &quot;one two three&quot;
+            RenderBlock {DIV} at (0,30) size 756x30
+              RenderText {#text} at (0,1) size 118x28
+                text run at (0,1) width 118: &quot;four five six&quot;
+            RenderBlock {DIV} at (0,60) size 756x30
+              RenderText {#text} at (0,1) size 156x28
+                text run at (0,1) width 156: &quot;seven eight nine&quot;
+      RenderBlock {DIV} at (0,248) size 784x94
+        RenderBlock {DIV} at (0,0) size 784x94 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 203x28
+              text run at (0,1) width 203: &quot;one two kkkkkythree&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 118x28
+              text run at (0,1) width 118: &quot;four five six&quot;
+          RenderBlock {DIV} at (2,62) size 780x30
+            RenderText {#text} at (0,1) size 156x28
+              text run at (0,1) width 156: &quot;seven eight nine&quot;
+caret: position 15 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardfiledragtoeditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-drag-to-editable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-drag-to-editable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-drag-to-editable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 20: TypeError: undefined is not a function (evaluating 'eventSender.beginDragWithFiles(files)')
+FAIL: Timed out waiting for notifyDone to be called
+Tests that dragging a file into an editable area does not insert a filename.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardfileinputfilesaccessexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-input-files-access-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-input-files-access-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/file-input-files-access-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+CONSOLE MESSAGE: line 28: TypeError: undefined is not a function (evaluating 'eventSender.beginDragWithFiles(files)')
+
+Tests for multi-file drag onto file input elements for https://bugs.webkit.org/show_bug.cgi?id=25862
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Dragging a single (non-existant) file to a file input control:
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardfilesduringpagedragsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/files-during-page-drags-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/files-during-page-drags-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/files-during-page-drags-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+Make sure that .files arrays are always empty for non-file drags.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL Drop of A never occured!
+FAIL Drop of IMG never occured!
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardgetdatatextplaindropexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/get-data-text-plain-drop-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/get-data-text-plain-drop-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/get-data-text-plain-drop-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests that getData is supported for type text/plain during drop. We select &quot;drag&quot;, drag it, and then check that on drop getData returns &quot;drag&quot;. To run this test manually, just drag &quot;drag&quot; on to &quot;drop&quot;.
+
+drag
+drop
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardheadingcrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/heading-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/heading-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/heading-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+The following test does a copy and a paste from one heading to another heading. The test is successful if there is no crash.
+
+Destination should say Copy This Text:
+| &lt;span&gt;
+|   id=&quot;source&quot;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &quot;Copy This Text&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardinnerTextinlinetableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/innerText-inline-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/innerText-inline-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/innerText-inline-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 504x19
+          text run at (0,0) width 504: &quot;Checks that the text iterator is emitting a space before and after an inline table.&quot;
+      RenderBlock {DIV} at (0,20) size 784x28
+        RenderText {#text} at (0,8) size 32x19
+          text run at (0,8) width 32: &quot;hello&quot;
+        RenderTable {TABLE} at (31,0) size 15x26
+          RenderTableSection {TBODY} at (0,0) size 14x26
+            RenderTableRow {TR} at (0,2) size 14x22
+              RenderTableCell {TD} at (2,2) size 10x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 8x19
+                  text run at (1,1) width 8: &quot;1&quot;
+        RenderText {#text} at (45,8) size 39x19
+          text run at (45,8) width 39: &quot;world&quot;
+      RenderBlock {DIV} at (0,48) size 784x28
+        RenderText {#text} at (0,8) size 26x19
+          text run at (0,8) width 26: &quot;foo &quot;
+        RenderTable {TABLE} at (25,0) size 15x26
+          RenderTableSection {TBODY} at (0,0) size 14x26
+            RenderTableRow {TR} at (0,2) size 14x22
+              RenderTableCell {TD} at (2,2) size 10x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 8x19
+                  text run at (1,1) width 8: &quot;2&quot;
+        RenderText {#text} at (39,8) size 25x19
+          text run at (39,8) width 25: &quot; bar&quot;
+      RenderBlock {UL} at (0,92) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderBlock {PRE} at (0,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,5) size 63x14
+              text run at (0,5) width 63: &quot;Success!&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardinputfield1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-field-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-field-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-field-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a56d0f0&gt; toElementsInDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 241x19
+          text run at (0,0) width 241: &quot;This tests Copy/Paste of a input field.&quot;
+      RenderBlock {DIV} at (0,36) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderInline {SPAN} at (0,0) size 140x19 [bgcolor=#FFFFFF00]
+          RenderTextControl {INPUT} at (141,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+      RenderBlock {UL} at (0,77) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 44x19
+            text run at (0,0) width 44: &quot;Passed&quot;
+layer at (17,49) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
+layer at (156,49) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
+caret: position 1 of child 0 {INPUT} of child 1 {SPAN} of child 2 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardinputwithdisplaynonedivexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-display-none-div-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-display-none-div-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-display-none-div-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests pasting (InsertHTML) into an input element with a CSS rule div { display: none}. You should see PASS below.
+
+
+FAILPASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardinputwithvisibilityhiddenexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-visibility-hidden-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-visibility-hidden-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/input-with-visibility-hidden-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests pasting (InsertHTML) into an input element when body element has visibility set to hidden. You should see PASS below.
+
+
+FAILPASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardinsertdivtextintotextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/insert-div-text-into-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/insert-div-text-into-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/insert-div-text-into-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 48 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests inserting a text wrapped in a div inside a text node.
+| &quot;There  should&lt;#selection-caret&gt;be no line breaks in this sentence.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardlinefeedbetweenbrandbshouldnotreorderpastedcontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/line-feed-between-br-and-b-should-not-reorder-pasted-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/line-feed-between-br-and-b-should-not-reorder-pasted-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/line-feed-between-br-and-b-should-not-reorder-pasted-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,81 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c950d10&gt; toElementsInDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+Tests: 
+Bug fix for &lt;rdar://problem/4035648&gt; REGRESSION (Mail): line feed in source HTML file causes bad copy/paste behavior 
+In particular, the line feed that appears between br and b elements should not reorder the content in createMarkup.
+Expected Results: 
+Should see the text self-documenting itself correctly: 
+bold
+plain
+
+
+Before cut:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&quot;
+|   &lt;#selection-anchor&gt;
+|   &lt;br&gt;
+|   &quot;
+&quot;
+|   &lt;b&gt;
+|     &quot;bold&quot;
+|     &lt;br&gt;
+|     &quot;
+&quot;
+|   &quot;
+plain&lt;#selection-focus&gt;
+&quot;
+| &quot;
+&quot;
+
+After cut:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;#selection-caret&gt;
+|   &lt;br&gt;
+| &quot;
+&quot;
+
+After paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &lt;br&gt;
+|       &lt;b&gt;
+|         &quot;bold&quot;
+|         &lt;br&gt;
+|       &quot;plain&lt;#selection-caret&gt;&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeafterdelete1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 753x59
+          text run at (0,0) width 753: &quot;When ReplaceSelectionCommand deletes the current selection, it should request that the deletion do a merge in some&quot;
+          text run at (0,20) width 745: &quot;cases (normally, though, it should ask that a merge not be done, because a merge will cause information about block&quot;
+          text run at (0,40) width 123: &quot;nesting to be lost). &quot;
+          text run at (122,40) width 375: &quot;It wasn't requesting a merge in cases where it should have.&quot;
+      RenderBlock {P} at (0,76) size 784x80
+        RenderText {#text} at (0,0) size 773x79
+          text run at (0,0) width 772: &quot;The failing case is where the incoming fragment has more than one block, and the selection being pasted into ends at the&quot;
+          text run at (0,20) width 128: &quot;end of a paragraph. &quot;
+          text run at (127,20) width 646: &quot;Any time the selection being pasted into ends at the end of a paragraph, deleting will leave leave a) a&quot;
+          text run at (0,40) width 377: &quot;br or b) an empty block at the end of the deleted selection. &quot;
+          text run at (376,40) width 363: &quot;So, not merging will leave an extraneous empty line or a&quot;
+          text run at (0,60) width 263: &quot;collapsed block after the paste operation.&quot;
+      RenderBlock {DIV} at (2,172) size 780x52 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (3,3) size 774x22 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 30x19
+            text run at (1,1) width 30: &quot;bfoo&quot;
+        RenderBlock {DIV} at (3,27) size 774x22 [border: (1px solid #000000)]
+          RenderText {#text} at (1,1) size 21x19
+            text run at (1,1) width 21: &quot;bar&quot;
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeafterdelete2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 753x59
+          text run at (0,0) width 753: &quot;When ReplaceSelectionCommand deletes the current selection, it should request that the deletion do a merge in some&quot;
+          text run at (0,20) width 745: &quot;cases (normally, though, it should ask that a merge not be done, because a merge will cause information about block&quot;
+          text run at (0,40) width 123: &quot;nesting to be lost). &quot;
+          text run at (122,40) width 375: &quot;It wasn't requesting a merge in cases where it should have.&quot;
+      RenderBlock {P} at (0,76) size 784x80
+        RenderText {#text} at (0,0) size 773x79
+          text run at (0,0) width 772: &quot;The failing case is where the incoming fragment has more than one block, and the selection being pasted into ends at the&quot;
+          text run at (0,20) width 128: &quot;end of a paragraph. &quot;
+          text run at (127,20) width 646: &quot;Any time the selection being pasted into ends at the end of a paragraph, deleting will leave leave a) a&quot;
+          text run at (0,40) width 377: &quot;br or b) an empty block at the end of the deleted selection. &quot;
+          text run at (376,40) width 363: &quot;So, not merging will leave an extraneous empty line or a&quot;
+          text run at (0,60) width 263: &quot;collapsed block after the paste operation.&quot;
+      RenderBlock {DIV} at (2,172) size 780x52 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (3,3) size 774x22 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 30x19
+            text run at (1,1) width 30: &quot;bfoo&quot;
+        RenderBlock (anonymous) at (1,27) size 778x0
+        RenderBlock {DIV} at (3,27) size 774x22 [border: (1px solid #000000)]
+          RenderText {#text} at (1,1) size 21x19
+            text run at (1,1) width 21: &quot;bar&quot;
+caret: position 3 of child 0 {#text} of child 1 {DIV} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeafterdeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-after-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (4,0) size 776x58 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (5,5) size 766x22 [border: (1px solid #0000FF)]
+          RenderText {#text} at (1,1) size 27x19
+            text run at (1,1) width 27: &quot;ffoo&quot;
+        RenderBlock (anonymous) at (1,31) size 774x0
+        RenderBlock {DIV} at (5,31) size 766x22 [border: (1px solid #0000FF)]
+          RenderBR {BR} at (1,1) size 0x19
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 0 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeend2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests the last paragraph in the pasted fragment is merged with the content after the insertion position
+&quot;baz&quot; and &quot;oobar&quot; should be in the same paragraph below
+| &lt;span&gt;
+|   &quot;f&quot;
+| &quot;bar&quot;
+| &lt;span&gt;
+|   &lt;br&gt;
+| &quot;baz&lt;#selection-caret&gt;&quot;
+| &lt;span&gt;
+|   &quot;oo&quot;
+| &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeend3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+The last paragraph of the incoming fragment should be in the same paragraph as 'three'.
+| &quot;one t&quot;
+| &lt;div&gt;
+|   &quot;two&lt;#selection-caret&gt;hree&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeend5expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-5-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-5-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-5-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 42 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 42 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+Pasting a paragraph or less into a selection that spans multiple blocks should insert content into the block containing the start of the selection.
+| &lt;div&gt;
+|   style=&quot;border: 1px solid red;&quot;
+|   &quot;This xtext should have a red border around&lt;#selection-caret&gt;it.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-blockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-blockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-blockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 17 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 16 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 619x19
+          text run at (0,0) width 407: &quot;This tests pasting a Mail blockquote at the start of a paragraph. &quot;
+          text run at (406,0) width 213: &quot;Blockquoting should be stripped.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 124x19
+          text run at (0,0) width 124: &quot;Blockquoted Textx&quot;
+      RenderBlock {P} at (0,72) size 784x40
+        RenderText {#text} at (0,0) size 777x39
+          text run at (0,0) width 297: &quot;This tests pasting text into a Mail blockquote. &quot;
+          text run at (296,0) width 481: &quot;The last bit of content in the incoming fragment should be merged with the&quot;
+          text run at (0,20) width 294: &quot;paragraph after the position being pasted into.&quot;
+      RenderBlock {DIV} at (0,128) size 784x56
+        RenderBlock {BLOCKQUOTE} at (40,0) size 704x20
+          RenderBlock {DIV} at (0,0) size 704x20
+            RenderText {#text} at (0,0) size 104x19
+              text run at (0,0) width 104: &quot;Blockquotedfoo&quot;
+        RenderBlock (anonymous) at (0,36) size 784x0
+        RenderBlock {BLOCKQUOTE} at (40,36) size 704x20
+          RenderBlock {DIV} at (0,0) size 704x20
+            RenderText {#text} at (0,0) size 50x19
+              text run at (0,0) width 50: &quot;barText&quot;
+caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {BLOCKQUOTE} of child 10 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendbordersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-borders-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-borders-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-borders-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 46 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 780x59
+          text run at (0,0) width 780: &quot;This is a test for the merge that paste does of the last paragraph of the incoming fragment with content after the end of the&quot;
+          text run at (0,20) width 179: &quot;selection being pasted into. &quot;
+          text run at (178,20) width 597: &quot;A fragment that ends in with paragraph surrounded by a blue border is pasted into a selection&quot;
+          text run at (0,40) width 325: &quot;ending in a paragraph surrounded by a red border. &quot;
+          text run at (324,40) width 175: &quot;The red border should win.&quot;
+      RenderBlock {P} at (0,76) size 784x20
+        RenderInline {B} at (0,0) size 590x19
+          RenderText {#text} at (0,0) size 590x19
+            text run at (0,0) width 590: &quot;The second paragraph should be surrounded by a red border before and after the test.&quot;
+      RenderBlock {DIV} at (0,112) size 784x42
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 106x19
+            text run at (0,0) width 106: &quot;First pparagraph&quot;
+        RenderBlock {DIV} at (0,20) size 784x22 [border: (1px solid #FF0000)]
+          RenderText {#text} at (1,1) size 300x19
+            text run at (1,1) width 300: &quot;Thistext should be surrounded by a red border.&quot;
+caret: position 4 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendlist2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests pasting text ('foo\nbar') into a list item. The last bit of content in the incoming fragment should be merged with the paragraph after the position being pasted into.
+
+Before insertion:
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &lt;div&gt;
+|       &quot;Item 1&quot;
+
+After insertion:
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &lt;div&gt;
+|       &quot;Item foo&quot;
+|     &lt;div&gt;
+|       &quot;bar&lt;#selection-caret&gt;1&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendlistexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-list-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests pasting a list ('Item 1') into a position that would normally result in an end merge.
+
+Before insertion:
+| &quot;xx&quot;
+
+After insertion:
+| &quot;x&quot;
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &lt;div&gt;
+|       &quot;Item 1&lt;#selection-caret&gt;&quot;
+| &quot;x&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergeendtable2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-table-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-table-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-end-table-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This tests pasting text into a table cell.  The last bit of content in the incoming fragment should be merged with the paragraph after the position being pasted into.
+
+Before insertion:
+| &lt;tbody&gt;
+|   &lt;tr&gt;
+|     &lt;td&gt;
+|       &lt;div&gt;
+|         id=&quot;test2&quot;
+|         &quot;Item 1&quot;
+|     &lt;td&gt;
+|       &quot;Item 2&quot;
+
+After insertion:
+| &lt;tbody&gt;
+|   &lt;tr&gt;
+|     &lt;td&gt;
+|       &lt;div&gt;
+|         id=&quot;test2&quot;
+|         &quot;Item foo&quot;
+|       &lt;div&gt;
+|         id=&quot;test2&quot;
+|         &quot;bar&lt;#selection-caret&gt;1&quot;
+|     &lt;td&gt;
+|       &quot;Item 2&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergestartblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-blockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-blockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-blockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 749x39
+          text run at (0,0) width 749: &quot;This test makes sure that content inside a Mail blockquote in an incoming fragment isn't pulled out of the blockquote&quot;
+          text run at (0,20) width 83: &quot;during paste.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderInline {B} at (0,0) size 575x19
+          RenderText {#text} at (0,0) size 575x19
+            text run at (0,0) width 575: &quot;You should see 'bar' inside a blockquote (it will have a blue border around it if it is).&quot;
+      RenderBlock {DIV} at (0,92) size 784x22
+        RenderBlock {BLOCKQUOTE} at (40,0) size 704x22 [border: (1px solid #0000FF)]
+          RenderText {#text} at (1,1) size 21x19
+            text run at (1,1) width 21: &quot;bar&quot;
+caret: position 3 of child 0 {#text} of child 0 {BLOCKQUOTE} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardmergestartlistexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-list-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-list-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/merge-start-list-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; LI &gt; UL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 698x19
+          text run at (0,0) width 698: &quot;This test makes sure that content inside a list in an incoming fragment isn't pulled out of the list during paste.&quot;
+      RenderBlock {P} at (0,36) size 784x20
+        RenderInline {B} at (0,0) size 258x19
+          RenderText {#text} at (0,0) size 258x19
+            text run at (0,0) width 258: &quot;You should see 'bar' inside a list item.&quot;
+      RenderBlock {DIV} at (0,72) size 784x20
+        RenderBlock {UL} at (0,0) size 784x20
+          RenderListItem {LI} at (40,0) size 744x20
+            RenderListMarker at (-18,0) size 7x19: bullet
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: &quot;bar&quot;
+caret: position 3 of child 0 {#text} of child 0 {LI} of child 0 {UL} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardnestedblockswithtextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-area-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-area-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-area-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+| &quot;
+These demonstrate 11475: the '\n's at the end of the fragment should be unrendered.&quot;
+| &lt;br&gt;
+| &lt;div&gt;
+|   &quot;This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail assertions.&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;
+&quot;
+|   &lt;div&gt;
+|     &quot;
+&quot;
+|     &lt;textarea&gt;
+|       this.value=&quot; &quot;
+|       &quot; &quot;
+|       &lt;shadow:root&gt;
+|         &lt;div&gt;
+|           contenteditable=&quot;plaintext-only&quot;
+|           &quot; &quot;
+|     &quot; 
+x&lt;#selection-caret&gt;
+&quot;
+| &quot;
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardnestedblockswithtextfieldexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-field-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-field-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/nested-blocks-with-text-field-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+| &quot;
+These demonstrate 11475: the '\n's at the end of the fragment should be unrendered.&quot;
+| &lt;br&gt;
+| &lt;div&gt;
+|   &quot;This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail assertions.&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;
+&quot;
+|   &lt;div&gt;
+|     &quot;
+&quot;
+|     &lt;input&gt;
+|       type=&quot;text&quot;
+|       this.value=&quot;&quot;
+|       &lt;shadow:root&gt;
+|         &lt;div&gt;
+|           contenteditable=&quot;plaintext-only&quot;
+|     &quot; 
+x&lt;#selection-caret&gt;
+&quot;
+| &quot;
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardonpastetexthtmlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</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: 
+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="trunkLayoutTestsplatformiossimulatoreditingpasteboardonpastetexthtmltypesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-types-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-types-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/onpaste-text-html-types-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This test verifies that we can get types from the clipboard during an onpaste event. This test requires DRT.
+FAIL
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpagezoomexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/page-zoom-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/page-zoom-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/page-zoom-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+CONSOLE MESSAGE: line 27: absolute font size is wrong
+Copy this 16px text.
+Paste Copy this 16px text.it here.
+The pasted text should have a font size of 16px.
+
+
+Copy this x-small text.
+Paste it here.
+The pasted text should have a font size of x-small.
+
+
+FAIL (this test requires DRT)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpaste2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 574x19
+          text run at (0,0) width 346: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
+          text run at (345,0) width 229: &quot;You should see 'foo bar baz' below.&quot;
+      RenderBlock (anonymous) at (0,36) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 72x19
+                  text run at (0,0) width 72: &quot;foo bar baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpaste4038267fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4038267-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4038267-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4038267-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a75c6e0&gt; toElementsInDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x284 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 113x28
+            text run at (0,31) width 113: &quot;Bug fix for &quot;
+          RenderInline {A} at (0,0) size 258x28 [color=#0000EE]
+            RenderText {#text} at (112,31) size 258x28
+              text run at (112,31) width 258: &quot;&lt;rdar://problem/4038267&gt;&quot;
+          RenderText {#text} at (369,31) size 743x58
+            text run at (369,31) width 374: &quot; REGRESSION (Mail): Crash copying&quot;
+            text run at (0,61) width 285: &quot;and pasting end of paragraph.&quot;
+        RenderBlock {DIV} at (14,120) size 756x150
+          RenderBlock (anonymous) at (0,0) size 756x90
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 726x58
+              text run at (0,31) width 726: &quot;Should see this content in the red box below (insertion point must be on the&quot;
+              text run at (0,61) width 305: &quot;second line, right before \&quot;bar\&quot;):&quot;
+          RenderBlock {DIV} at (0,90) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (0,120) size 756x30
+            RenderText {#text} at (0,1) size 31x28
+              text run at (0,1) width 31: &quot;bar&quot;
+      RenderBlock {DIV} at (0,308) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 31x28
+              text run at (0,1) width 31: &quot;bar&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpaste4039777fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4039777-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4039777-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-4039777-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,86 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text &gt; LI &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; LI &gt; UL &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of UL &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; LI &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; LI &gt; UL &gt; DIV &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c894ac0&gt; toElementsInDOMRange:range from 0 of #text &gt; LI &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; LI &gt; UL &gt; DIV &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of LI &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; LI &gt; UL &gt; DIV &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; LI &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; LI &gt; UL &gt; DIV &gt; UL &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+Bug fix for &lt;a href=&quot;rdar://problem/4039777&quot;&gt;&amp;lt;rdar://problem/4039777&amp;gt;&lt;/a&gt; Pasting particular snippet of HTML containing list items and a link creates too many list items
+
+Expected result:
+| &quot;
+&quot;
+| &lt;ul&gt;
+|   style=&quot;text-align:right;&quot;
+|   &lt;li&gt;
+|     &quot;A&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   &quot;
+    &quot;
+|   &lt;ul&gt;
+|     &quot;
+        &quot;
+|     &lt;li&gt;
+|       &quot;
+            &quot;
+|       &lt;a&gt;
+|         href=&quot;&quot;
+|         &quot;B&quot;
+|       &quot;
+            &quot;
+|       &lt;br&gt;
+|       &quot;
+            C 
+        &quot;
+|     &quot;
+    &quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+
+Actual result:
+| &quot;
+&quot;
+| &lt;ul&gt;
+|   style=&quot;text-align:right;&quot;
+|   &lt;li&gt;
+|     style=&quot;text-align: start;&quot;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;A&quot;
+|   &lt;div&gt;
+|     style=&quot;text-align: start;&quot;
+|     &lt;ul&gt;
+|       &lt;li&gt;
+|         &lt;font&gt;
+|           color=&quot;#000000&quot;
+|           size=&quot;3&quot;
+|           &lt;span&gt;
+|             style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|             &lt;a&gt;
+|               href=&quot;&quot;
+|               &quot;B&quot;
+|             &quot; &quot;
+|             &lt;br&gt;
+|             &quot;C&lt;#selection-caret&gt;&quot;
+| &lt;div&gt;
+|   &lt;ul&gt;
+|     &quot;
+    &quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteRTFDexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-RTFD-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-RTFD-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-RTFD-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+CONSOLE MESSAGE: line 33: TypeError: undefined is not an object (evaluating 'objc('NSPasteboard').generalPasteboard')
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 725x39
+          text run at (0,0) width 725: &quot;On Tiger, this test demonstrates a bug in AppKit's -[NSString _documentFromRange:] method where it produces&quot;
+          text run at (0,20) width 330: &quot;fragments with extra trailing and leading newlines. &quot;
+          text run at (329,20) width 187: &quot;This bug is fixed in Leopard.&quot;
+      RenderBlock {DIV} at (0,56) size 784x28 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x0
+      RenderBlock {DIV} at (0,84) size 784x0
+caret: position 0 of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteTIFFexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-TIFF-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-TIFF-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-TIFF-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+CONSOLE MESSAGE: line 33: TypeError: undefined is not an object (evaluating 'objc('NSPasteboard').generalPasteboard')
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x28 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x0
+      RenderBlock {DIV} at (0,28) size 784x0
+caret: position 0 of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteandsanitizeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-and-sanitize-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-and-sanitize-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-and-sanitize-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+This test checks that the paste operation trims the pasted fragment to reduce the verbosity of the markup without affecting the style.
+
+FAIL confirmedMarkup should be Hello. Was &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/span&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;i&gt;Hello&lt;/i&gt;&lt;/b&gt;. Was &lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/i&gt;&lt;/b&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;i&gt;Hello&lt;/i&gt;&lt;/b&gt;. Was &lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/i&gt;&lt;/b&gt;.
+FAIL confirmedMarkup should be Hello. Was &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/span&gt;.
+FAIL confirmedMarkup should be &lt;i style=&quot;font-weight: bold;&quot;&gt;Hello&lt;/i&gt;. Was &lt;i style=&quot;font-weight: bold; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/i&gt;.
+FAIL confirmedMarkup should be &lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Hello&lt;/b&gt;&lt;/div&gt;. Was &lt;div style=&quot;text-align: start;&quot;&gt;&lt;b style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/b&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;div&gt;&lt;b&gt;&lt;i&gt;hello&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;world&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;. Was &lt;div&gt;&lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;b&gt;&lt;i&gt;hello1&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;hello2&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;. Was &lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-weight: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;&lt;b&gt;&lt;i&gt;hello1&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;hello2&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.
+FAIL confirmedMarkup should be &lt;i style=&quot;margin: 10px;&quot;&gt;hello&lt;/i&gt;&lt;/b&gt;&lt;/i&gt;. Was &lt;i style=&quot;margin: 10px;&quot;&gt;&lt;b&gt;&lt;i style=&quot;margin: 10px; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello&lt;/i&gt;&lt;/b&gt;&lt;/i&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;i&gt;Hello&amp;nbsp;world&lt;/i&gt;&lt;/b&gt;. Was &lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&amp;nbsp;world&lt;/i&gt;&lt;/b&gt;.
+FAIL confirmedMarkup should be &lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;plain text&lt;b&gt;&lt;i&gt;bold italic text&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;. Was &lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-weight: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;plain text&lt;b&gt;&lt;i&gt;bold italic text&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastebeforetabspanexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-before-tab-span-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-before-tab-span-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-before-tab-span-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+This test ensures pasting content before a tab span isn't pasted into the tab span.
+
+Result:
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;hello&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;hello&lt;#selection-caret&gt;&quot;
+|   &lt;span&gt;
+|     class=&quot;Apple-tab-span&quot;
+|     style=&quot;white-space:pre&quot;
+|     &quot;                &quot;
+|   &quot;world&quot;
+| &quot; 
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquote3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+This tests pasting a blockquote into the middle of a paragraph.
+| &quot;This should not be blockquoted.  This should not be blockquoted.&quot;
+| &lt;blockquote&gt;
+|   type=&quot;cite&quot;
+|   &quot;This should be blockquoted.&quot;
+|   &lt;br&gt;
+| &quot;This should not be blockquoted.&lt;#selection-caret&gt;This should not be blockquoted.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquoteafterblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-after-blockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 362x19
+          text run at (0,0) width 362: &quot;This tests pasting a blockquote after another blockquote.&quot;
+      RenderBlock {DIV} at (0,36) size 784x40
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 42x19
+            text run at (22,0) width 42: &quot;Line 1&quot;
+        RenderBlock {BLOCKQUOTE} at (0,20) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 42x19
+            text run at (22,0) width 42: &quot;Line 2&quot;
+        RenderBlock (anonymous) at (0,40) size 784x0
+caret: position 6 of child 0 {#text} of child 1 {BLOCKQUOTE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquoteandparagraphbreakexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-and-paragraph-break-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-and-paragraph-break-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-and-paragraph-break-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+We copy and paste a blockquoted paragraph plus a paragraph break.
+The paragraph break shouldn't be inside the blockquote on paste.  
+You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph.
+See &lt;rdar://problem/5368833&lt;
+
+Before paste:
+| &lt;br&gt;
+| &lt;blockquote&gt;
+|   id=&quot;blockquote&quot;
+|   type=&quot;cite&quot;
+|   &quot;hello&quot;
+|   &lt;br&gt;
+| &lt;br&gt;
+
+After paste:
+| &lt;blockquote&gt;
+|   id=&quot;blockquote&quot;
+|   type=&quot;cite&quot;
+|   &lt;font&gt;
+|     color=&quot;#000000&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;hello&quot;
+|       &lt;br&gt;
+| &lt;div&gt;
+|   &lt;#selection-caret&gt;
+|   &lt;br&gt;
+| &lt;blockquote&gt;
+|   id=&quot;blockquote&quot;
+|   type=&quot;cite&quot;
+|   &quot;hello&quot;
+|   &lt;br&gt;
+| &lt;br&gt;
+
+After inserting &quot;world&quot;:
+| &lt;blockquote&gt;
+|   id=&quot;blockquote&quot;
+|   type=&quot;cite&quot;
+|   &lt;font&gt;
+|     color=&quot;#000000&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;hello&quot;
+|       &lt;br&gt;
+| &lt;div&gt;
+|   &quot;world&lt;#selection-caret&gt;&quot;
+|   &lt;br&gt;
+| &lt;blockquote&gt;
+|   id=&quot;blockquote&quot;
+|   type=&quot;cite&quot;
+|   &quot;hello&quot;
+|   &lt;br&gt;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteblockquoteintoblockquote4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-blockquote-into-blockquote-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 556x19
+          text run at (0,0) width 556: &quot;This test passes if nothing is double-quoted, and \&quot;Two\&quot; and \&quot;Four\&quot; aren't quoted at all.&quot;
+      RenderBlock {DIV} at (0,36) size 784x100
+        RenderBlock {BLOCKQUOTE} at (0,0) size 784x40 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 34x19
+            text run at (22,0) width 34: &quot;Paste&quot;
+          RenderBR {BR} at (55,15) size 1x0
+          RenderText {#text} at (22,20) size 58x19
+            text run at (22,20) width 58: &quot;HereOne&quot;
+        RenderBlock (anonymous) at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 30x19
+            text run at (0,0) width 30: &quot;Two&quot;
+        RenderBlock {BLOCKQUOTE} at (0,60) size 784x20 [color=#0000FF] [border: none (2px solid #0000FF)]
+          RenderText {#text} at (22,0) size 38x19
+            text run at (22,0) width 38: &quot;Three&quot;
+        RenderBlock (anonymous) at (0,80) size 784x20
+          RenderText {#text} at (0,0) size 31x19
+            text run at (0,0) width 31: &quot;Four&quot;
+caret: position 4 of child 3 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastecodeinpreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-code-in-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-code-in-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-code-in-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This tests a bug when copying HTML markup inside &lt;pre&gt; tags. When pasted, this content would appear as the rendered form of that markup.
+You should see markup in the editable region below. See &lt;rdar://5027857&gt;.
+| &lt;pre&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;pre&quot;
+|   &lt;font&gt;
+|     face=&quot;Times&quot;
+|     &lt;span&gt;
+|       style=&quot;white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;&lt;input type='button'&gt;foo&lt;br&gt;bar&lt;b&gt;baz&lt;/b&gt;&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteglobalselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-global-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-global-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-global-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+  
+This test checks that we can set and paste X11-style selections.
+
+FAIL confirmedMarkup should be TestTest. Was Test.
+FAIL confirmedMarkup should be SayHello. Was Say.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteintoanchortextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-anchor-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-anchor-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-anchor-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; B &gt; A &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; A &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 16 of #text &gt; B &gt; A &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; B &gt; A &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+  
+Canton Repository (subscription)                                                              all 7hello world9 news articles                                                              
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteintotablecellexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-table-cell-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-table-cell-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-into-table-cell-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+This tests pasting into a table cell.
+To manually run the test, copy the text below and paste it into the first text cell after the non-breaking space.
+The content should be pasted into the first cell, not between two tds.
+
+&quot;Drag me&quot; should appear inside the first td:
+| &lt;table&gt;
+|   width=&quot;400&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot; &quot;
+|         &lt;span&gt;
+|           style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;Drag me&lt;#selection-caret&gt;&quot;
+|       &lt;td&gt;
+|         &quot; &quot;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &quot; &quot;
+|       &lt;td&gt;
+|         &quot; &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61ce3f7c0&gt; toElementsInDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045511&gt;&quot;
+          RenderText {#text} at (417,31) size 699x58
+            text run at (417,31) width 282: &quot; Copying and pasting end-of-&quot;
+            text run at (0,61) width 528: &quot;paragraph selection puts insertion point in wrong place&quot;
+        RenderBlock {DIV} at (14,120) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x58
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 656: &quot;and \&quot;line two\&quot;. The insertion point must be at the start of \&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,248) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 77x28
+            text run at (2,3) width 77: &quot;line one&quot;
+          RenderInline {FONT} at (0,0) size 1x19
+            RenderInline {SPAN} at (0,0) size 1x19 [bgcolor=#FFFFFF00]
+              RenderBR {BR} at (78,25) size 1x0
+          RenderText {#text} at (2,33) size 78x28
+            text run at (2,33) width 78: &quot;line two&quot;
+caret: position 0 of child 2 {#text} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61ce3e830&gt; toElementsInDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045511&gt;&quot;
+          RenderText {#text} at (417,31) size 699x58
+            text run at (417,31) width 282: &quot; Copying and pasting end-of-&quot;
+            text run at (0,61) width 528: &quot;paragraph selection puts insertion point in wrong place&quot;
+        RenderBlock {DIV} at (14,120) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x58
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 656: &quot;and \&quot;line two\&quot;. The insertion point must be at the start of \&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,248) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 77x28
+              text run at (0,1) width 77: &quot;line one&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 78x28
+              text run at (0,1) width 78: &quot;line two&quot;
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cf3f3f0&gt; toElementsInDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045511&gt;&quot;
+          RenderText {#text} at (417,31) size 699x58
+            text run at (417,31) width 282: &quot; Copying and pasting end-of-&quot;
+            text run at (0,61) width 528: &quot;paragraph selection puts insertion point in wrong place&quot;
+        RenderBlock {DIV} at (14,120) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x58
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 656: &quot;and \&quot;line two\&quot;. The insertion point must be at the start of \&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,248) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 77x28
+              text run at (0,1) width 77: &quot;line one&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderText {#text} at (0,1) size 78x28
+              text run at (0,1) width 78: &quot;line two&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cd32240&gt; toElementsInDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045511&gt;&quot;
+          RenderText {#text} at (417,31) size 699x58
+            text run at (417,31) width 282: &quot; Copying and pasting end-of-&quot;
+            text run at (0,61) width 528: &quot;paragraph selection puts insertion point in wrong place&quot;
+        RenderBlock {DIV} at (14,120) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x58
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 656: &quot;and \&quot;line two\&quot;. The insertion point must be at the start of \&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,248) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x60
+            RenderBlock (anonymous) at (0,0) size 780x30
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderBlock {DIV} at (0,30) size 780x30
+              RenderText {#text} at (0,1) size 78x28
+                text run at (0,1) width 78: &quot;line two&quot;
+caret: position 0 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a76fe80&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045511&gt;&quot;
+          RenderText {#text} at (417,31) size 699x58
+            text run at (417,31) width 282: &quot; Copying and pasting end-of-&quot;
+            text run at (0,61) width 528: &quot;paragraph selection puts insertion point in wrong place&quot;
+        RenderBlock {DIV} at (14,120) size 756x90
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x58
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 656: &quot;and \&quot;line two\&quot;. The insertion point must be at the start of \&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,248) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x60
+            RenderBlock {DIV} at (0,0) size 780x30
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderBlock (anonymous) at (0,30) size 780x30
+              RenderText {#text} at (0,1) size 78x28
+                text run at (0,1) width 78: &quot;line two&quot;
+caret: position 0 of child 1 {#text} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,62 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cb63ce0&gt; toElementsInDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045513&gt;&quot;
+          RenderText {#text} at (417,31) size 714x58
+            text run at (417,31) width 297: &quot; Copying and pasting selection&quot;
+            text run at (0,61) width 593: &quot;starting at end of paragraph can incorrectly remove line break&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x88
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 713: &quot;and \&quot;line two\&quot;. The insertion point must be after the first character (\&quot;l\&quot;) of&quot;
+            text run at (0,91) width 104: &quot;\&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,278) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 77x28
+            text run at (2,3) width 77: &quot;line one&quot;
+          RenderInline {FONT} at (0,0) size 77x49
+            RenderInline {SPAN} at (0,0) size 77x49 [bgcolor=#FFFFFF00]
+              RenderBR {BR} at (78,25) size 1x0
+              RenderText {#text} at (2,40) size 5x19
+                text run at (2,40) width 5: &quot;l&quot;
+          RenderText {#text} at (6,33) size 72x28
+            text run at (6,33) width 72: &quot;ine two&quot;
+caret: position 1 of child 1 {#text} of child 0 {SPAN} of child 1 {FONT} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a585cf0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045513&gt;&quot;
+          RenderText {#text} at (417,31) size 714x58
+            text run at (417,31) width 297: &quot; Copying and pasting selection&quot;
+            text run at (0,61) width 593: &quot;starting at end of paragraph can incorrectly remove line break&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x88
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 713: &quot;and \&quot;line two\&quot;. The insertion point must be after the first character (\&quot;l\&quot;) of&quot;
+            text run at (0,91) width 104: &quot;\&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,278) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 77x28
+              text run at (0,1) width 77: &quot;line one&quot;
+            RenderBR {BR} at (76,23) size 1x0
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderInline {FONT} at (0,0) size 5x19
+              RenderInline {SPAN} at (0,0) size 5x19 [bgcolor=#FFFFFF00]
+                RenderText {#text} at (0,8) size 5x19
+                  text run at (0,8) width 5: &quot;l&quot;
+            RenderText {#text} at (4,1) size 72x28
+              text run at (4,1) width 72: &quot;ine two&quot;
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {FONT} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c896bf0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045513&gt;&quot;
+          RenderText {#text} at (417,31) size 714x58
+            text run at (417,31) width 297: &quot; Copying and pasting selection&quot;
+            text run at (0,61) width 593: &quot;starting at end of paragraph can incorrectly remove line break&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x88
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 713: &quot;and \&quot;line two\&quot;. The insertion point must be after the first character (\&quot;l\&quot;) of&quot;
+            text run at (0,91) width 104: &quot;\&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,278) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 77x28
+              text run at (0,1) width 77: &quot;line one&quot;
+          RenderBlock (anonymous) at (2,32) size 780x0
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderInline {FONT} at (0,0) size 5x19
+              RenderInline {SPAN} at (0,0) size 5x19 [bgcolor=#FFFFFF00]
+                RenderText {#text} at (0,8) size 5x19
+                  text run at (0,8) width 5: &quot;l&quot;
+            RenderText {#text} at (4,1) size 72x28
+              text run at (4,1) width 72: &quot;ine two&quot;
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {FONT} of child 2 {DIV} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cf3df90&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045513&gt;&quot;
+          RenderText {#text} at (417,31) size 714x58
+            text run at (417,31) width 297: &quot; Copying and pasting selection&quot;
+            text run at (0,61) width 593: &quot;starting at end of paragraph can incorrectly remove line break&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x88
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 713: &quot;and \&quot;line two\&quot;. The insertion point must be after the first character (\&quot;l\&quot;) of&quot;
+            text run at (0,91) width 104: &quot;\&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,278) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x60
+            RenderBlock (anonymous) at (0,0) size 780x30
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+              RenderBR {BR} at (76,23) size 1x0
+            RenderBlock {DIV} at (0,30) size 780x30
+              RenderInline {FONT} at (0,0) size 5x19
+                RenderInline {SPAN} at (0,0) size 5x19 [bgcolor=#FFFFFF00]
+                  RenderText {#text} at (0,8) size 5x19
+                    text run at (0,8) width 5: &quot;l&quot;
+              RenderText {#text} at (4,1) size 72x28
+                text run at (4,1) width 72: &quot;ine two&quot;
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {FONT} of child 2 {DIV} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelineendings010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-line-endings-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61caae910&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/4045513&gt;&quot;
+          RenderText {#text} at (417,31) size 714x58
+            text run at (417,31) width 297: &quot; Copying and pasting selection&quot;
+            text run at (0,61) width 593: &quot;starting at end of paragraph can incorrectly remove line break&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x88
+            text run at (0,31) width 752: &quot;Should see two lines of text below, self-documenting themselves as \&quot;line one\&quot;&quot;
+            text run at (0,61) width 713: &quot;and \&quot;line two\&quot;. The insertion point must be after the first character (\&quot;l\&quot;) of&quot;
+            text run at (0,91) width 104: &quot;\&quot;line two\&quot;.&quot;
+      RenderBlock {DIV} at (0,278) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x60
+            RenderBlock {DIV} at (0,0) size 780x30
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderBlock (anonymous) at (0,30) size 780x30
+              RenderInline {FONT} at (0,0) size 5x19
+                RenderInline {SPAN} at (0,0) size 5x19 [bgcolor=#FFFFFF00]
+                  RenderText {#text} at (0,8) size 5x19
+                    text run at (0,8) width 5: &quot;l&quot;
+              RenderText {#text} at (4,1) size 72x28
+                text run at (4,1) width 72: &quot;ine two&quot;
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 1 {FONT} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 21 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cf21450&gt; toElementsInDOMRange:range from 0 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; SPAN &gt; FONT &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 21 of #text &gt; SPAN &gt; FONT &gt; LI &gt; OL &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+| &quot;
+&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;Empty list item&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;
+&quot;
+| &lt;ol&gt;
+|   &quot;
+    &quot;
+|   &lt;li&gt;
+|     &quot;I should be number 1.&quot;
+|   &quot;
+    &quot;
+|   &lt;li&gt;
+|   &quot;
+    &quot;
+|   &lt;li&gt;
+|     &quot;I should be number 3.&quot;
+|   &lt;li&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;I should be number 1.&quot;
+|   &lt;li&gt;
+|   &lt;li&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;I should be number 3.&lt;#selection-caret&gt;&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Copy/pasting list items in a list. This test should be run with DRT for pasteboard access.
+
+PASS: &lt;li&gt;alpha&lt;/li&gt;&lt;ul&gt;&lt;li&gt;beta&lt;/li&gt;&lt;li&gt;gamma&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;beta&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;gamma&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;delta&quot;&gt;delta&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;beta&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;gamma&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;
+
+alpha
+beta
+gamma
+beta
+gamma
+delta
+beta
+gamma
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+Copy/pasting list items in a list. This test should be run with DRT for pasteboard access.
+
+PASS
+
+one: &lt;b&gt;one&lt;/b&gt;
+two: &lt;span style=&quot;background-color: green&quot;&gt;two&lt;/span&gt;
+three: three
+one: &lt;b style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;one&lt;/b&gt;
+two: &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;two&lt;/span&gt;
+four: &lt;span style=&quot;background-color: orange&quot;&gt;&lt;i&gt;four&lt;/i&gt;&lt;/span&gt;
+i love counting, counting to the number four: i love counting, counting to the number four
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastelist004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-list-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+CONSOLE MESSAGE: line 54: Unexpected list item: 1,three,three 
+Pasting a list item into the middle of another list item should split the target list item into two with the pasted content in between.
+
+one two
+three 
+one two
+four
+monsters walking 
+one two
+cross the floor
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastematchstyle001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:b replacingDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 264x28
+            text run at (0,31) width 264: &quot;Pasting and matching style.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 740x58
+            text run at (0,31) width 740: &quot;The pasted letter should match the style of the preexisting bold letter. Should&quot;
+            text run at (0,61) width 364: &quot;see this content in the red box below: &quot;
+          RenderBR {BR} at (363,83) size 1x0
+          RenderInline {B} at (0,0) size 26x28
+            RenderText {#text} at (0,91) size 26x28
+              text run at (0,91) width 26: &quot;ab&quot;
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,248) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 26x28
+            RenderText {#text} at (2,3) size 26x28
+              text run at (2,3) width 26: &quot;ab&quot;
+        RenderBlock (anonymous) at (0,34) size 784x0
+caret: position 2 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastematchstyle002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-match-style-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertText:hello replacingDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 750x58
+            text run at (0,31) width 750: &quot;Pasting and matching style when there is nothing typed, but the typing style is&quot;
+            text run at (0,61) width 432: &quot;set to bold. This test was created after fixing &quot;
+          RenderInline {A} at (0,0) size 85x28 [color=#0000EE]
+            RenderText {#text} at (431,61) size 85x28
+              text run at (431,61) width 85: &quot;3976872&quot;
+          RenderText {#text} at (515,61) size 7x28
+            text run at (515,61) width 7: &quot;.&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 752x58
+            text run at (0,31) width 752: &quot;The pasted word should match the current typing style. In this case, the typing&quot;
+            text run at (0,61) width 624: &quot;style is set to bold. Should see this content in the red box below: &quot;
+          RenderBR {BR} at (623,83) size 1x0
+          RenderInline {B} at (0,0) size 50x28
+            RenderText {#text} at (0,91) size 50x28
+              text run at (0,91) width 50: &quot;hello&quot;
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,278) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 50x28
+            RenderText {#text} at (2,3) size 50x28
+              text run at (2,3) width 50: &quot;hello&quot;
+caret: position 5 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenopluginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noplugin-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noplugin-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noplugin-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+This test copies embed and object elements, pastes them into an editable area, and verifies that unsafe tags are not pasted when the setting prohibits this.
+
+Original contents:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;Some text to paste.&quot;
+| &quot;
+&quot;
+| &lt;embed&gt;
+|   src=&quot;http://localhost:8000/evil.swf&quot;
+| &quot;
+&quot;
+| &lt;object&gt;
+|   data=&quot;http://localhost:8000/evil.swf&quot;
+|   &lt;param&gt;
+|     name=&quot;src&quot;
+|     value=&quot;http://localhost:8000/evil.swf&quot;
+|   &lt;embed&gt;
+|     src=&quot;http://localhost:8000/evil.swf&quot;
+| &quot;
+&quot;
+
+Pasted contents:
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;foo bar&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenoscriptexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+CONSOLE MESSAGE: line 42: TypeError: undefined is not an object (evaluating 'document.getElementById(&quot;pastehere&quot;).childNodes[5].outerHTML')
+This test copies all the elements containing event handlers and javascript urls, pastes them in an editable area and verifies that no script, handlers or javascript urls are copied.
+Hello 
+CNN Hello  
+This is a form
+Submit.
+Hello 
+CNN Hello  
+This is a form
+Submit.
+&lt;button id=&quot;button1&quot; onclick=&quot;sayHello()&quot; ondblclick=&quot;sayHello()&quot; style=&quot;width: 100px;&quot;&gt;Hello&lt;/button&gt;
+&lt;div style=&quot;text-align: start;&quot;&gt;&lt;font face=&quot;Times&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;&lt;button id=&quot;button1&quot; style=&quot;width: 100px;&quot;&gt;Hello&lt;/button&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
+&lt;a id=&quot;anchor1&quot; href=&quot;http://www.cnn.com/&quot;&gt;CNN&lt;/a&gt;
+undefined
+&lt;a id=&quot;anchor2&quot; href=&quot;javascript:sayHello()&quot;&gt;Hello&lt;/a&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenoscriptsvgexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-svg-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-svg-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-svg-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This test copies the content of an iframe and pastes it in an editable area and verifies that no script, handlers or javascript urls are copied.
+foo bar
+&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;foo bar&lt;/span&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastenoscriptxhtmlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-xhtml-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-xhtml-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-noscript-xhtml-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,95 @@
</span><ins>+ALERT: hello
+ALERT: hello
+
+This test copies the content of an iframe and pastes it
+in an editable area in an xhtml document and verifies that no script, handlers or javascript urls are copied.
+
+
+Copied content:
+| &quot;
+&quot;
+| &lt;button&gt;
+|   id=&quot;button1&quot;
+|   onclick=&quot;sayHello()&quot;
+|   ondblclick=&quot;sayHello()&quot;
+|   style=&quot;width: 100px;&quot;
+|   &quot;&lt;#selection-anchor&gt;Hello&quot;
+| &lt;a&gt;
+|   href=&quot;http://www.bing.com/search?q=cnn&quot;
+|   id=&quot;anchor1&quot;
+|   &quot;CNN&quot;
+| &lt;a&gt;
+|   href=&quot;javascript:sayHello()&quot;
+|   id=&quot;anchor2&quot;
+|   &quot;Hello&quot;
+| &quot;
+&quot;
+| &lt;script&gt;
+|   style=&quot;display: block; position: fixed; top: 4000px&quot;
+|   &quot;alert('hello');&quot;
+| &quot;
+&quot;
+| &lt;script&gt;
+|   src=&quot;../editing.js&quot;
+|   style=&quot;display: block; position: fixed; top: 4000px&quot;
+| &quot;
+&quot;
+| &lt;iframe&gt;
+|   id=&quot;iframe1&quot;
+|   src=&quot;javascript:alert('hello')&quot;
+|   style=&quot;width: 200px; height: 100px; background-color:#cee;&quot;
+| &quot;
+&quot;
+| &lt;form&gt;
+|   action=&quot;javascript:sayHello()&quot;
+|   formaction=&quot;javascript:sayHello()&quot;
+|   id=&quot;form1&quot;
+|   style=&quot;width: 200px; height: 150px; background-color:#cee;&quot;
+|   &quot;This is a form. &quot;
+|   &lt;button&gt;
+|     formaction=&quot;javascript:sayHello()&quot;
+|     &quot;Submit.&lt;#selection-focus&gt;&quot;
+| &quot;
+
+&quot;
+
+FRAME 0:
+| &lt;head&gt;
+| &lt;body&gt;
+
+Pasted content:
+| &lt;div&gt;
+|   style=&quot;text-align: start;&quot;
+|   &lt;font&gt;
+|     face=&quot;Times&quot;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &lt;button&gt;
+|         id=&quot;button1&quot;
+|         style=&quot;width: 100px;&quot;
+|         &quot;Hello&quot;
+|       &lt;a&gt;
+|         href=&quot;http://www.bing.com/search?q=cnn&quot;
+|         id=&quot;anchor1&quot;
+|         &quot;CNN&quot;
+|       &lt;a&gt;
+|         id=&quot;anchor2&quot;
+|         &quot;Hello&quot;
+|       &lt;iframe&gt;
+|         id=&quot;iframe1&quot;
+|         style=&quot;width: 200px; height: 100px;&quot;
+| &lt;form&gt;
+|   formaction=&quot;javascript:sayHello()&quot;
+|   id=&quot;form1&quot;
+|   style=&quot;width: 200px; height: 150px;&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;This is a form.&quot;
+|     &quot; &quot;
+|     &lt;button&gt;
+|       &quot;Submit.&lt;#selection-caret&gt;&quot;
+
+FRAME 0:
+| &lt;head&gt;
+| &lt;body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteplaceholderinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-placeholder-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-placeholder-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-placeholder-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Test that deleting the text in a textfield, and pasting, doesn't hit an issue with -webkit-user-select on br
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL input.value should be PASS. Was PASHello  CNN Hello   This is a form Submit..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteplaintextuserselectnoneexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-plaintext-user-select-none-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-plaintext-user-select-none-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-plaintext-user-select-none-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertText:line1 line2  replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests that you can paste into a plain-text editable area even if the body has user-select:none set on it. 
+line1 line2 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastepre001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+Tests: 
+Copying and pasting content inside of a PRE tag. This test was created after fixing 3918056.
+Expected Results: 
+The PRE tag and the formatting of the text inside of the PRE should be maintained. Should see this content in the red box below:
+foo
+bar
+foo bar
+execCutCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; &lt;pre&gt;&lt;br&gt;&lt;/pre&gt; &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; &lt;pre&gt;&lt;font face=&quot;Times&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;foo bar&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt; &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastepre002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-pre-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This is a layout test for rdar://problem/4370209 &quot;Reproducible crash when pasting over whitespace:pre text&quot;. The text below is selected, copied, and pasted over itself. You'll see foo/nbar if successful.
+foo bar
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; &lt;pre&gt;foo bar&lt;/pre&gt; &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; &lt;pre&gt;&lt;font face=&quot;Times&quot;&gt;&lt;span style=&quot;white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;foo bar&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt; &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastesanitizecrash1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+one  
+two  Hello
+three  
+four  
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastesanitizecrash2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-sanitize-crash-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+one  
+two  Hello
+three  
+four  
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetable001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,110 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of P &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c882c10&gt; toElementsInDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+| &quot;
+&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;Empty table cell&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &quot;
+&quot;
+|   &lt;table&gt;
+|     border=&quot;2&quot;
+|     &quot;
+&quot;
+|     &lt;tbody&gt;
+|       &lt;tr&gt;
+|         &quot;
+    &quot;
+|         &lt;td&gt;
+|           &quot;Left column&quot;
+|         &quot;
+    &quot;
+|         &lt;td&gt;
+|           &quot;Right column&quot;
+|         &quot;
+&quot;
+|       &quot;
+&quot;
+|       &lt;tr&gt;
+|         &quot;
+    &quot;
+|         &lt;td&gt;
+|         &quot;
+    &quot;
+|         &lt;td&gt;
+|           &quot;I should be in the right column.&quot;
+|         &quot;
+&quot;
+|       &quot;
+&quot;
+|   &quot;
+&quot;
+| &lt;table&gt;
+|   border=&quot;2&quot;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;Left column&quot;
+|       &lt;td&gt;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;Right column&quot;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|       &lt;td&gt;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;I should be in the right column.&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetable002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c97c990&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Problem: copy/pasting some HTML including tables can give rise to a &lt;div&gt; element as the first child of the table element. This is invalid.
+abcdef
+foo        bar
+ghijk
+&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; &lt;div&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;abcdef&lt;/span&gt;&lt;/font&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;foo&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;bar&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;text-align: start;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;ghij&lt;/span&gt;&lt;/font&gt;k&lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetable003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cc3afe0&gt; toElementsInDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests pasting a table to replace some text. It demonstrates two bugs: 1) selecting a table without also selecting the line break after programmatically is impossible when its followed by a div because of the way DOM positions are mapped to visible positions, 2) pasting content that ends in a table places the caret in the last table cell instead of after the table, so the interchange newline is placed in the last table cell and not after the table.
+
+one        two
+one        two
+
+execCopyCommand: &lt;table id=&quot;test&quot;&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;one&lt;/td&gt;&lt;td&gt;two&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div id=&quot;target&quot;&gt;replaceme&lt;/div&gt;
+execPasteCommand: &lt;table id=&quot;test&quot;&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;one&lt;/td&gt;&lt;td&gt;two&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div id=&quot;target&quot;&gt;&lt;table id=&quot;test&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;one&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;two&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetablecellsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-cells-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-cells-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-table-cells-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,92 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cd534b0&gt; toElementsInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
+After copy:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         id=&quot;test1&quot;
+|         &quot;&lt;#selection-anchor&gt;hello&quot;
+|       &lt;td&gt;
+|         id=&quot;test2&quot;
+|         &quot;world&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;target&quot;
+|   &quot;replaceme&quot;
+| &quot;
+
+
+&quot;
+
+Before paste:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         id=&quot;test1&quot;
+|         &quot;hello&quot;
+|       &lt;td&gt;
+|         id=&quot;test2&quot;
+|         &quot;world&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;target&quot;
+|   &quot;&lt;#selection-anchor&gt;replaceme&lt;#selection-focus&gt;&quot;
+| &quot;
+
+
+&quot;
+
+After paste:
+| &quot;
+&quot;
+| &lt;table&gt;
+|   &lt;tbody&gt;
+|     &lt;tr&gt;
+|       &lt;td&gt;
+|         id=&quot;test1&quot;
+|         &quot;hello&quot;
+|       &lt;td&gt;
+|         id=&quot;test2&quot;
+|         &quot;world&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   id=&quot;target&quot;
+|   &lt;table&gt;
+|     &lt;tbody&gt;
+|       &lt;tr&gt;
+|         &lt;td&gt;
+|           id=&quot;test1&quot;
+|           &lt;span&gt;
+|             style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|             &quot;hello&quot;
+|         &lt;td&gt;
+|           id=&quot;test2&quot;
+|           &lt;span&gt;
+|             style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|             &quot;world&lt;#selection-caret&gt;&quot;
+| &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+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: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cd57c60&gt; toElementsInDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+You should see &quot;foo barbar baz&quot; below:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;foo bar&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;bar&lt;#selection-caret&gt;&quot;
+|   &quot; baz&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,86 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 9 of DIV &gt; BODY &gt; HTML &gt; #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 &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 45 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a6a1480&gt; toElementsInDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c88fad0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests copy and pastes &quot;is a tide in the affairs of men,\nWhich taken&quot; twice.
+
+There is a tide in the affairs of men,
+Which takenis a tide in the affairs of men,
+Which takenat the flood leads on to fortune.
+Omitted, all the voyage of their life,
+Is bound in shallows and in miseries.
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;There is a tide in the affairs of men,&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Which taken at the flood leads on to fortune.&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Omitted, all the voyage of their life,&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Is bound in shallows and in miseries.&lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;There &lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;is a tide in the affairs of men,&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Which taken&lt;/span&gt;&lt;/font&gt; at the flood leads on to fortune.&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Omitted, all the voyage of their life,&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Is bound in shallows and in miseries.&lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;There &lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;is a tide in the affairs of men,&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Which takenis a tide in the affairs of men,&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Which taken&lt;/span&gt;&lt;/font&gt;at the flood leads on to fortune.&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Omitted, all the voyage of their life,&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;Is bound in shallows and in miseries.&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,129 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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 &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 38 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cd35df0&gt; toElementsInDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cb1e6a0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This test copies and pastes &quot;is a tide in the affairs of men,\nWhich taken at the flood leads on to fortune.\nOmitted&quot; twice.
+
+There is a tide in the affairs of men,
+Which taken at the flood leads on to fortune.
+Omittedis 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: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;There is a tide in the affairs of men, &lt;div class=&quot;editing&quot;&gt;Which taken at the flood leads on to fortune. &lt;div class=&quot;editing&quot;&gt;Omitted, all the voyage of their life, &lt;div class=&quot;editing&quot;&gt;Is bound in shallows and in miseries. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;There&amp;nbsp;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;is a tide in the affairs of men,&lt;/span&gt;&lt;/font&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Which taken at the flood leads on to fortune.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Omitted&lt;/span&gt;&lt;/font&gt;, all the voyage of their life, &lt;div class=&quot;editing&quot;&gt;Is bound in shallows and in miseries. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;There&amp;nbsp;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;is a tide in the affairs of men,&lt;/span&gt;&lt;/font&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Which taken at the flood leads on to fortune.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Omittedis a tide in the affairs of men,&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Which taken at the flood leads on to fortune.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Omitted&lt;/span&gt;&lt;/font&gt;, all the voyage of their life, &lt;div class=&quot;editing&quot;&gt;Is bound in shallows and in miseries. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a772750&gt; toElementsInDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 62x28
+          text run at (14,15) width 62: &quot;There &quot;
+        RenderInline {FONT} at (0,0) size 189x19
+          RenderInline {SPAN} at (0,0) size 189x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (75,22) size 189x19
+              text run at (75,22) width 189: &quot;is a tide in the affairs of men,&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 429x28
+          text run at (14,15) width 429: &quot;Which taken at the flood leads on to fortune.&quot;
+      RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 346x28
+          text run at (14,15) width 346: &quot;Omitted, all the voyage of their life,&quot;
+      RenderBlock {DIV} at (0,174) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 356x28
+          text run at (14,15) width 356: &quot;Is bound in shallows and in miseries.&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,158 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 9 of BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c892d40&gt; toElementsInDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #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 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61ce3a2a0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
+Before copy:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;There &lt;#selection-anchor&gt;is a tide in the affairs of men,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &lt;#selection-focus&gt;
+|   &quot;Which taken at the flood leads on to fortune.&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Omitted, all the voyage of their life,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+&quot;
+
+After first paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;There &quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;is a tide in the affairs of men,&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;&lt;#selection-caret&gt;Which taken at the flood leads on to fortune.&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Omitted, all the voyage of their life,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+&quot;
+
+After second paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;There &quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;is a tide in the affairs of men,&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;is a tide in the affairs of men,&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;&lt;#selection-caret&gt;Which taken at the flood leads on to fortune.&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Omitted, all the voyage of their life,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,158 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 9 of BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of BODY &gt; HTML &gt; #document to 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a576af0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #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 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c8a43d0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
+Before copy:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;&lt;#selection-anchor&gt;There is a tide in the affairs of men,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &lt;#selection-focus&gt;
+|   &quot;Which taken at the flood leads on to fortune.&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Omitted, all the voyage of their life,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+&quot;
+
+After first paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;There is a tide in the affairs of men,&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;&lt;#selection-caret&gt;Which taken at the flood leads on to fortune.&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Omitted, all the voyage of their life,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+&quot;
+
+After second paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;There is a tide in the affairs of men,&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;There is a tide in the affairs of men,&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;&lt;#selection-caret&gt;Which taken at the flood leads on to fortune.&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Omitted, all the voyage of their life,&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,140 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c891f70&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c97b570&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
+Before copy:
+| &quot;
+
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;&lt;#selection-anchor&gt;There is a tide in the affairs of men,&quot;
+|   &lt;div&gt;
+|     class=&quot;editing&quot;
+|     &lt;#selection-focus&gt;
+|     &quot;Which taken at the flood leads on to fortune.&quot;
+|     &lt;div&gt;
+|       class=&quot;editing&quot;
+|       &quot;Omitted, all the voyage of their life,&quot;
+|       &lt;div&gt;
+|         class=&quot;editing&quot;
+|         &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+
+&quot;
+
+After first paste:
+| &quot;
+
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;There is a tide in the affairs of men,&quot;
+|   &lt;div&gt;
+|     class=&quot;editing&quot;
+|     &quot;&lt;#selection-caret&gt;Which taken at the flood leads on to fortune.&quot;
+|     &lt;div&gt;
+|       class=&quot;editing&quot;
+|       &quot;Omitted, all the voyage of their life,&quot;
+|       &lt;div&gt;
+|         class=&quot;editing&quot;
+|         &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+
+&quot;
+
+After second paste:
+| &quot;
+
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;There is a tide in the affairs of men,&quot;
+|       &lt;br&gt;
+|       &quot;There is a tide in the affairs of men,&quot;
+|   &lt;div&gt;
+|     class=&quot;editing&quot;
+|     &quot;&lt;#selection-caret&gt;Which taken at the flood leads on to fortune.&quot;
+|     &lt;div&gt;
+|       class=&quot;editing&quot;
+|       &quot;Omitted, all the voyage of their life,&quot;
+|       &lt;div&gt;
+|         class=&quot;editing&quot;
+|         &quot;Is bound in shallows and in miseries.&quot;
+| &quot;
+
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,155 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #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: 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 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 39 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cb20be0&gt; toElementsInDOMRange:range from 12 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #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 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61ca9cc20&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 20 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x136 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 346x28
+            text run at (0,1) width 346: &quot;Omitted, all the voyage of their life,&quot;
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 114x28
+            text run at (14,15) width 114: &quot;Is bound in &quot;
+          RenderInline {FONT} at (0,0) size 161x19
+            RenderInline {SPAN} at (0,0) size 161x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (128,22) size 161x19
+                text run at (128,22) width 161: &quot;shallows and in miseries.&quot;
+        RenderBlock (anonymous) at (14,102) size 756x20
+          RenderInline {FONT} at (0,0) size 292x19
+            RenderInline {SPAN} at (0,0) size 292x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (0,0) size 131x19
+                text run at (0,0) width 131: &quot;Upon such a full sea&quot;
+              RenderText {#text} at (130,0) size 162x19
+                text run at (130,0) width 162: &quot;shallows and in miseries.&quot;
+      RenderBlock (anonymous) at (0,136) size 784x0
+      RenderBlock {DIV} at (0,136) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {FONT} at (0,0) size 131x19
+          RenderInline {SPAN} at (0,0) size 131x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (14,22) size 131x19
+              text run at (14,22) width 131: &quot;Upon such a full sea&quot;
+        RenderText {#text} at (144,15) size 184x28
+          text run at (144,15) width 184: &quot; are we now afloat,&quot;
+caret: position 20 of child 0 {#text} of child 0 {SPAN} of child 0 {FONT} of child 2 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,128 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 37 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 37 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 39 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a78ca30&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #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 &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c8abe20&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x136 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 346x28
+            text run at (0,1) width 346: &quot;Omitted, all the voyage of their life,&quot;
+        RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 356x28
+            text run at (14,15) width 356: &quot;Is bound in shallows and in miseries.&quot;
+        RenderBlock (anonymous) at (14,102) size 756x20
+          RenderInline {FONT} at (0,0) size 12x19
+            RenderInline {SPAN} at (0,0) size 12x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (0,0) size 12x19
+                text run at (0,0) width 12: &quot;U&quot;
+      RenderBlock (anonymous) at (0,136) size 784x0
+      RenderBlock {DIV} at (0,136) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {FONT} at (0,0) size 12x19
+          RenderInline {SPAN} at (0,0) size 12x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (14,22) size 12x19
+              text run at (14,22) width 12: &quot;U&quot;
+        RenderText {#text} at (25,15) size 363x28
+          text run at (25,15) width 363: &quot;pon such a full sea are we now afloat,&quot;
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {FONT} of child 2 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</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.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;There is a tide in the affairs of men.&quot;
+|   &lt;br&gt;
+|   &lt;br&gt;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;of men.&quot;
+|       &quot;of men.&lt;#selection-caret&gt;&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cb80920&gt; toElementsInDOMRange:range from 0 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; FONT &gt; P &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of P &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+There was a bug when pasting at the end of the block.
+The content was inserted at the start of the block instead of the end. This tests the insert-at-end case.
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &lt;font&gt;
+|     face=&quot;Monaco&quot;
+|     &lt;b&gt;
+|       &quot;hello&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &lt;font&gt;
+|     face=&quot;Monaco&quot;
+|     &lt;b&gt;
+|       &quot;there&quot;
+| &lt;p&gt;
+|   &lt;b&gt;
+|     style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;hello&quot;
+| &lt;p&gt;
+|   &lt;b&gt;
+|     style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;there&lt;#selection-caret&gt;&quot;
+| &quot;
+
+
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-012-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-012-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-012-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+See this bug: &lt;rdar://problem/3918712&gt; &quot;Paste as Quotation&quot; in Mail just pastes (&lt;blockquote&gt; tag seems to be lost).
+
+To manually test, copy everything in the first editable box and paste it in the second box. You should see &quot;foo&quot; and a new line inside a red box.
+
+foo
+foo
+
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;div&gt;&lt;blockquote&gt;foo&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;&lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;div&gt;&lt;blockquote&gt;foo&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class=&quot;editing&quot;&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;blockquote&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;foo&lt;/span&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-013-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-013-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-013-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61ce3a140&gt; toElementsInDOMRange:range from 0 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 87x19
+          text run at (0,0) width 87: &quot;See this bug: &quot;
+        RenderInline {A} at (0,0) size 172x19 [color=#0000EE]
+          RenderText {#text} at (86,0) size 172x19
+            text run at (86,0) width 172: &quot;&lt;rdar://problem/3918712&gt;&quot;
+        RenderText {#text} at (257,0) size 778x59
+          text run at (257,0) width 495: &quot; \&quot;Paste as Quotation\&quot; in Mail just pastes (&lt;blockquote&gt; tag seems to be lost).&quot;
+          text run at (751,0) width 5: &quot; &quot;
+          text run at (0,20) width 774: &quot;Should see one box with blockquoted \&quot;foo\&quot; text, followed by another box with an \&quot;x\&quot; (not in a blockquote) and \&quot;foo\&quot; (in&quot;
+          text run at (773,20) width 5: &quot; &quot;
+          text run at (0,40) width 92: &quot;a blockquote).&quot;
+      RenderBlock {DIV} at (0,60) size 784x24
+      RenderBlock {DIV} at (0,84) size 784x106 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x30
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,190) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 12x28
+          text run at (14,15) width 12: &quot;x&quot;
+      RenderBlock {DIV} at (0,248) size 784x126 [border: (2px solid #FF0000)]
+        RenderBlock {BLOCKQUOTE} at (54,38) size 676x20
+          RenderInline {FONT} at (0,0) size 22x19
+            RenderInline {SPAN} at (0,0) size 22x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (0,0) size 22x19
+                text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (14,82) size 756x30
+          RenderBR {BR} at (0,1) size 0x28
+caret: position 0 of child 0 {BR} of child 1 {DIV} of child 8 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext014expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-014-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-014-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-014-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a75f2f0&gt; toElementsInDOMRange:range from 0 of #text &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; BLOCKQUOTE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 87x19
+          text run at (0,0) width 87: &quot;See this bug: &quot;
+        RenderInline {A} at (0,0) size 172x19 [color=#0000EE]
+          RenderText {#text} at (86,0) size 172x19
+            text run at (86,0) width 172: &quot;&lt;rdar://problem/3918712&gt;&quot;
+        RenderText {#text} at (257,0) size 756x39
+          text run at (257,0) width 495: &quot; \&quot;Paste as Quotation\&quot; in Mail just pastes (&lt;blockquote&gt; tag seems to be lost).&quot;
+          text run at (751,0) width 5: &quot; &quot;
+          text run at (0,20) width 590: &quot;Should see two boxes with blockquoted \&quot;foo\&quot; text, followed by a box with an unquoted \&quot;x\&quot;.&quot;
+      RenderBlock {DIV} at (0,40) size 784x24
+      RenderBlock {DIV} at (0,64) size 784x106 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x30
+          RenderBlock {BLOCKQUOTE} at (40,0) size 676x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+      RenderBlock {DIV} at (0,170) size 784x96 [border: (2px solid #FF0000)]
+        RenderBlock {BLOCKQUOTE} at (54,38) size 676x20
+          RenderInline {FONT} at (0,0) size 22x19
+            RenderInline {SPAN} at (0,0) size 22x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (0,0) size 22x19
+                text run at (0,0) width 22: &quot;foo&quot;
+      RenderBlock {DIV} at (0,266) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 12x28
+          text run at (14,15) width 12: &quot;x&quot;
+caret: position 0 of child 0 {#text} of child 8 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext015expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-015-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-015-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-015-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+This test copies, deletes, and paste back &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;p&gt;foo&lt;/p&gt;&lt;p&gt;bar&lt;/p&gt;&lt;/div&gt;
+It then inserts the paragraph and pastes the contents again.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;p&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;foo&quot;
+|   &lt;p&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;bar&quot;
+|   &lt;p&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;foo&quot;
+|   &lt;p&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;bar&lt;#selection-caret&gt;&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext016expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-016-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-016-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-016-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,72 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 10 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+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 2 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61ce5dd50&gt; toElementsInDOMRange:range from 0 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 99x19
+          text run at (0,0) width 99: &quot;Fixes this bug: &quot;
+        RenderInline {A} at (0,0) size 172x19 [color=#0000EE]
+          RenderText {#text} at (98,0) size 172x19
+            text run at (98,0) width 172: &quot;&lt;rdar://problem/3927554&gt;&quot;
+        RenderText {#text} at (269,0) size 390x19
+          text run at (269,0) width 390: &quot; REGRESSION (Mail): Paste inserts content in wrong place &quot;
+        RenderBR {BR} at (0,0) size 0x0
+        RenderText {#text} at (0,20) size 384x19
+          text run at (0,20) width 384: &quot;***TEST*** line should be second, following the first line.&quot;
+      RenderBlock {DIV} at (0,40) size 784x12
+      RenderBlock {DIV} at (0,52) size 784x228
+        RenderBlock {DIV} at (0,0) size 784x228 [border: (2px solid #FF0000)]
+          RenderBlock {P} at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 316x28
+              text run at (0,1) width 316: &quot;Should be first line of document.&quot;
+            RenderBR {BR} at (315,23) size 1x0
+          RenderBlock {P} at (14,44) size 756x20
+            RenderInline {FONT} at (0,0) size 87x19
+              RenderInline {SPAN} at (0,0) size 87x19 [bgcolor=#FFFFFF00]
+                RenderText {#text} at (0,0) size 87x19
+                  text run at (0,0) width 87: &quot;***TEST***&quot;
+          RenderBlock {DIV} at (14,64) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+          RenderBlock {P} at (14,94) size 756x30
+            RenderText {#text} at (0,1) size 127x28
+              text run at (0,1) width 127: &quot;Another line.&quot;
+          RenderBlock {P} at (14,124) size 756x0
+          RenderBlock (anonymous) at (14,124) size 756x30
+            RenderText {#text} at (0,1) size 6x28
+              text run at (0,1) width 6: &quot; &quot;
+          RenderBlock {P} at (14,154) size 756x0
+          RenderBlock (anonymous) at (14,154) size 756x30
+            RenderText {#text} at (0,1) size 6x28
+              text run at (0,1) width 6: &quot; &quot;
+          RenderBlock {P} at (14,184) size 756x30
+            RenderBR {BR} at (0,1) size 0x28
+caret: position 0 of child 0 {BR} of child 2 {DIV} of child 1 {DIV} of child 7 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext017expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-017-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-017-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-017-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,71 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c872d00&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+
+Tests: 
+
+Copying and pasting a whole line followed by a blank line could remove the blank line incorrectly, as in the case described in 
+&lt;rdar://problem/3951178&gt; REGRESSION (Mail): blank line lost after pasting as quotation.
+
+
+Expected Results:
+
+Should see a blank line between &quot;two&quot; and &quot;three&quot;
+
+
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&quot;
+|   &lt;div&gt;
+|     &quot;
+one
+&quot;
+|   &quot;
+&quot;
+|   &lt;div&gt;
+|     &quot;
+    &quot;
+|     &lt;br&gt;
+|       class=&quot;khtml-block-placeholder&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+|   &lt;div&gt;
+|     &lt;div&gt;
+|       &lt;font&gt;
+|         size=&quot;3&quot;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;two&quot;
+|   &lt;div&gt;
+|     &lt;#selection-caret&gt;
+|     &lt;br&gt;
+|   &quot;
+&quot;
+|   &lt;div&gt;
+|     &quot;
+    three
+&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext018expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-018-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-018-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-018-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c8908e0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+
+Tests: 
+
+Fix for this bug: 
+&lt;rdar://problem/4039676&gt; REGRESSION (Mail): in reply,  on pasted text (without trailing newline) is eaten when pasted above date
+
+
+Expected Results:
+
+Should see two lines of text below, self-documenting themselves as &quot;line one&quot; and &quot;line two&quot;.
+
+
+
+After copy:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;#selection-caret&gt;
+|   &lt;br&gt;
+|   &quot;line two
+&quot;
+| &quot;
+&quot;
+
+After paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;line one&lt;#selection-caret&gt;&quot;
+|   &lt;br&gt;
+|   &quot;line two
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetext019expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-019-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-019-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-019-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,58 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertText:Bar replacingDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x297 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 551x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 551x28
+              text run at (161,31) width 551: &quot;&lt;http://bugzilla.opendarwin.org/show_bug.cgi?id=3429&gt;&quot;
+          RenderText {#text} at (0,61) size 722x28
+            text run at (0,61) width 722: &quot;Text transformed with text-transform does not copy with transform applied&quot;
+        RenderBlock {DIV} at (14,120) size 756x163
+          RenderBlock (anonymous) at (0,0) size 756x60
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 201x28
+              text run at (0,31) width 201: &quot;Should see the string&quot;
+          RenderBlock {PRE} at (0,84) size 756x25
+            RenderText {#text} at (0,0) size 217x25
+              text run at (0,0) width 217: &quot;Foo Bar baz Bar&quot;
+          RenderBlock (anonymous) at (0,133) size 756x30
+            RenderText {#text} at (0,1) size 154x28
+              text run at (0,1) width 154: &quot;(case sensitive).&quot;
+      RenderBlock {DIV} at (0,321) size 784x34 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 152x28
+          RenderInline {SPAN} at (0,0) size 78x28
+            RenderText {#text} at (2,3) size 78x28
+              text run at (2,3) width 78: &quot;Foo Bar&quot;
+          RenderText {#text} at (80,3) size 74x28
+            text run at (80,3) width 74: &quot; bazBar&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 7 of child 1 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextattabspan001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a6b1c30&gt; toElementsInDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+You should see aax\tz below:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;a&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;ax&lt;#selection-caret&gt;&quot;
+|   &lt;span&gt;
+|     class=&quot;Apple-tab-span&quot;
+|     style=&quot;white-space:pre&quot;
+|     &quot;                        &quot;
+|   &quot;z&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextattabspan002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cf387e0&gt; toElementsInDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+You should see a\tax\t\tz below:
+| &quot;
+&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
+|   &quot;a&quot;
+|   &lt;span&gt;
+|     class=&quot;Apple-tab-span&quot;
+|     style=&quot;white-space:pre&quot;
+|     &quot;        &quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;ax&lt;#selection-caret&gt;&quot;
+|   &lt;span&gt;
+|     class=&quot;Apple-tab-span&quot;
+|     style=&quot;white-space:pre&quot;
+|     &quot;                &quot;
+|   &quot;z&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextattabspan003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-at-tabspan-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a570850&gt; toElementsInDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; FONT &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 170x28
+          RenderText {#text} at (14,15) size 11x28
+            text run at (14,15) width 11: &quot;a&quot;
+          RenderInline {SPAN} at (0,0) size 134x28
+            RenderText {#text} at (24,15) size 134x28
+              text run at (24,15) width 134: &quot;\x{9}\x{9}\x{9}&quot;
+          RenderInline {FONT} at (0,0) size 16x19
+            RenderInline {SPAN} at (0,0) size 16x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (158,22) size 16x19
+                text run at (158,22) width 16: &quot;ax&quot;
+          RenderText {#text} at (173,15) size 11x28
+            text run at (173,15) width 11: &quot;z&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 2 of child 0 {#text} of child 0 {SPAN} of child 2 {FONT} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetexteventsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-events-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-events-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-events-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+This tests that Paste commands fires textInput events.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL event.data should be PlainHello. Was a.
+FAIL testTargetTextarea.value should be PlainHello. Was a.
+FAIL event.data should be PlainHello. Was a.
+FAIL testTargetInput.value should be PlainHello. Was a.
+PASS event.data is ''
+FAIL testTargetEditable.innerHTML should be PlainHello. Was &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;a&lt;/span&gt;.
+PASS event.data is 'RichHello'
+PASS testTargetTextarea.value is 'RichHello'
+PASS event.data is 'RichHello'
+PASS testTargetInput.value is 'RichHello'
+PASS event.data is ''
+FAIL testTargetEditable.innerHTML should be &lt;b&gt;Rich&lt;/b&gt;Hello. Was &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;&lt;b&gt;Rich&lt;/b&gt;Hello&lt;/span&gt;.
+PASS textInputCount is proceedingTestCases.length
+FAIL event.data should be PlainHello. Was RichHello.
+PASS testTargetTextarea.value is ''
+FAIL event.data should be PlainHello. Was RichHello.
+PASS testTargetInput.value is ''
+PASS event.data is ''
+PASS testTargetEditable.innerHTML is ''
+PASS event.data is 'RichHello'
+PASS testTargetTextarea.value is ''
+PASS event.data is 'RichHello'
+PASS testTargetInput.value is ''
+PASS event.data is ''
+PASS testTargetEditable.innerHTML is ''
+PASS textInputCount is cancelingTestCases.length
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+This tests copying and pasting text does not result in nested style elements such as b, em, and font.
+To manually test, copy and paste &quot;hello world&quot; below. WebKit should not nest b, i, u, and font.
+
+Before copy-paste:
+| &lt;b&gt;
+|   &lt;i&gt;
+|     &lt;u&gt;
+|       &lt;font&gt;
+|         color=&quot;red&quot;
+|         &quot;&lt;#selection-caret&gt;hello world&quot;
+
+After copy-paste:
+| &lt;b&gt;
+|   &lt;i&gt;
+|     &lt;u&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;hello world&lt;#selection-caret&gt;&quot;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+This tests copying and pasting text does not result in nested style elements such as b, em, and font.
+To manually test, copy &quot;hello world&quot; below and paste it in the box below. WebKit should not nest b, i, u, and font.
+
+Before copy:
+| &lt;i&gt;
+|   &quot;hello&quot;
+
+After paste:
+| &lt;i&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;hello&lt;#selection-caret&gt;&quot;
+| &lt;font&gt;
+|   size=&quot;5&quot;
+|   &lt;u&gt;
+|     &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+This tests copying and pasting text does not remove non-editing style in the destination.
+To manually test, copy &quot;hello world&quot; below and paste it in the box below. The blue border should stay after the paste.
+
+Before copy:
+| &lt;b&gt;
+|   style=&quot;border: solid 5px blue;padding: 5px;&quot;
+|   &lt;br&gt;
+
+After paste:
+| &lt;b&gt;
+|   style=&quot;border: solid 5px blue;padding: 5px;&quot;
+|   &lt;i&gt;
+|     style=&quot;font-weight: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;hello&lt;#selection-caret&gt;&quot;
+|   &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyle5expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-5-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-5-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-5-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+This tests copying and pasting text does not strip inline styles that overrides UA style rules.
+To manually test, copy and paste &quot;hello world&quot; below. The pasted text should not be bolded.
+
+Before copy-paste:
+| &lt;b&gt;
+|   style=&quot;font-weight: normal&quot;
+|   &quot;&lt;#selection-caret&gt;hello world&quot;
+
+After copy-paste:
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;hello world&lt;#selection-caret&gt;&quot;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastetextwithstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-text-with-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c982580&gt; toElementsInDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; FONT &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+
+Markup before:
+| &quot;
+&quot;
+| &lt;b&gt;
+|   &lt;i&gt;
+|     &quot;&lt;#selection-caret&gt;hello bold and italic&quot;
+| &lt;div&gt;
+|   &lt;i&gt;
+|     &quot;hello italic&quot;
+| &lt;div&gt;
+|   &lt;font&gt;
+|     color=&quot;#ff0000&quot;
+|     &quot;hello red&quot;
+| &quot;
+&quot;
+
+Markup after:
+| &lt;b&gt;
+|   &lt;i&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &quot;hello bold and italic&quot;
+| &lt;div&gt;
+|   &lt;i&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &quot;hello italic&quot;
+| &lt;div&gt;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;hello red&lt;#selection-caret&gt;&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpasteunrenderedselectexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-unrendered-select-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-unrendered-select-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-unrendered-select-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests copy/paste of an unrendered select.  The options inside of it should not be pasted.
+| &lt;span&gt;
+|   style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;Hello World&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastevisiblescriptexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-visible-script-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-visible-script-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-visible-script-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Hello
+function sayHello() { alert(&quot;Hello&quot;); }
+World
+Hello
+World
+&lt;div id=&quot;pastehere&quot; contenteditable=&quot;true&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/span&gt;&lt;div id=&quot;test2&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;World&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastewithoutnestingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-without-nesting-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-without-nesting-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-without-nesting-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+This test checks that copy a selection and paste over the same selection does not create nested divs.
+
+FAIL confirmedMarkup should be Hello. Was &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/span&gt;.
+FAIL confirmedMarkup should be Hello&lt;br&gt;world. Was &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;br&gt;world&lt;/span&gt;.
+FAIL confirmedMarkup should be &lt;div&gt;Hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;. Was &lt;div&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/span&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;div&gt;Hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;. Was &lt;div&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/span&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;div&gt;&lt;b&gt;&lt;i&gt;Hello&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;world&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;. Was &lt;div&gt;&lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;Hello&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;.
+FAIL confirmedMarkup should be &lt;div style=&quot;text-align: center;&quot;&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;&lt;i&gt;hello&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;&lt;i&gt;world&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;. Was &lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;text-align: start;&quot;&gt;&lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: start;&quot;&gt;&lt;b&gt;&lt;i style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastewrappedblockquoteintononblockquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-wrapped-blockquote-into-nonblockquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-wrapped-blockquote-into-nonblockquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-wrapped-blockquote-into-nonblockquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+This test ensures the copied the newline is NOT inside the blockquote -- a '&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;' should be appended as the next sibling of the blockquote. 
+
+| &lt;div&gt;
+|   id=&quot;copyDiv&quot;
+|   &lt;blockquote&gt;
+|     type=&quot;cite&quot;
+|     &lt;div&gt;
+|       &lt;font&gt;
+|         color=&quot;#000000&quot;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;line 1&quot;
+|     &lt;div&gt;
+|       &lt;font&gt;
+|         color=&quot;#000000&quot;
+|         &lt;span&gt;
+|           style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|           &quot;line 2&quot;
+|   &lt;div&gt;
+|     &lt;div&gt;
+|       &lt;#selection-caret&gt;
+|       &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastexmlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-xml-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-xml-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/paste-xml-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of div &gt; body &gt; html &gt; #document to 3 of div &gt; body &gt; html &gt; #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: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document to 7 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document to 14 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document toDOMRange:range from 7 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document to 10 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cb73540&gt; toElementsInDOMRange:range from 7 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document to 10 of #text &gt; span &gt; div &gt; body &gt; html &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; span &gt; font &gt; span &gt; div &gt; body &gt; html &gt; #document to 3 of #text &gt; span &gt; font &gt; span &gt; div &gt; body &gt; html &gt; #document toDOMRange:range from 0 of #text &gt; span &gt; font &gt; span &gt; div &gt; body &gt; html &gt; #document to 3 of #text &gt; span &gt; font &gt; span &gt; div &gt; body &gt; html &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+foo barbar baz
+execCopyCommand: &lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;test&quot;&gt;foo bar baz&lt;/span&gt;
+execPasteCommand: &lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;test&quot;&gt;foo bar&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;bar&lt;/span&gt;&lt;/font&gt; baz&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingemptyhtmlfallsbacktotextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-empty-html-falls-back-to-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-empty-html-falls-back-to-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-empty-html-falls-back-to-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+This test requires DRT. It verifies that pasting in a richly editable area falls back to text if the HTML content is an empty string.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingintopshouldnotnestpexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-into-p-should-not-nest-p-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-into-p-should-not-nest-p-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-into-p-should-not-nest-p-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+This tests copying and pasting a p element into another p element doesn't end up in a nested p elements.
+
+After paste:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   style=&quot;font-size: 12px; color: blue;&quot;
+|   &lt;span&gt;
+|     id=&quot;source&quot;
+|     &quot;Copy this line&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   style=&quot;font-size: 12px;&quot;
+|   &lt;strong&gt;
+|     &quot;Paste it below in the empty line below. The font size should be 12px and the text should be in blue.&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &lt;span&gt;
+|     id=&quot;source&quot;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;Copy this line&quot;
+| &lt;div&gt;
+|   &lt;span&gt;
+|     &lt;#selection-caret&gt;
+|     &lt;br&gt;
+| &quot;
+&quot;
+
+After innerHTML = innerHTML:
+| &quot;
+&quot;
+| &lt;p&gt;
+|   style=&quot;font-size: 12px; color: blue;&quot;
+|   &lt;span&gt;
+|     id=&quot;source&quot;
+|     &quot;Copy this line&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   style=&quot;font-size: 12px;&quot;
+|   &lt;strong&gt;
+|     &quot;Paste it below in the empty line below. The font size should be 12px and the text should be in blue.&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   &lt;span&gt;
+|     id=&quot;source&quot;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;Copy this line&quot;
+| &lt;div&gt;
+|   &lt;span&gt;
+|     &lt;br&gt;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingobjectexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-object-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-object-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-object-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 775: &quot;This tests for a bug where attachments dragged into Mail documents blew all content after the position being pasted into.&quot;
+          text run at (0,20) width 322: &quot;You should see \&quot;Hello[black box] World!\&quot; below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x157
+        RenderText {#text} at (0,137) size 40x19
+          text run at (0,137) width 40: &quot;Hello &quot;
+        RenderEmbeddedObject {OBJECT} at (39,0) size 303x152 [border: (1px solid #AAAAAA)]
+        RenderText {#text} at (341,137) size 47x19
+          text run at (341,137) width 47: &quot;World!&quot;
+caret: position 1 of child 1 {OBJECT} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpastingtabsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-tabs-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-tabs-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/pasting-tabs-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; #document-fragment to 0 of DIV &gt; #document-fragment toDOMRange:range from 0 of #text &gt; DIV &gt; #document-fragment to 11 of #text &gt; DIV &gt; #document-fragment affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldInsertText:Tab-&gt;        &lt;-Tab replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 783x39
+          text run at (0,0) width 663: &quot;This tests copying plain text with tabs and pasting it into an editable region using paste and match tyle. &quot;
+          text run at (662,0) width 121: &quot;The tabs should be&quot;
+          text run at (0,20) width 67: &quot;preserved.&quot;
+      RenderBlock (anonymous) at (0,56) size 784x38
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,94) size 784x20
+        RenderText {#text} at (0,0) size 40x19
+          text run at (0,0) width 40: &quot;Tab-&gt;&quot;
+        RenderInline {SPAN} at (0,0) size 25x19
+          RenderText {#text} at (39,0) size 25x19
+            text run at (39,0) width 25: &quot;\x{9}&quot;
+        RenderText {#text} at (64,0) size 40x19
+          text run at (64,0) width 40: &quot;&lt;-Tab&quot;
+layer at (10,66) size 135x34 clip at (11,67) size 133x32
+  RenderTextControl {TEXTAREA} at (2,2) size 135x34 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+    RenderBlock {DIV} at (3,3) size 129x14
+      RenderText {#text} at (3,0) size 78x14
+        text run at (3,0) width 78: &quot;Tab-&gt;\x{9}&lt;-Tab&quot;
+caret: position 5 of child 2 {#text} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpreservelinebreakatendofpastedcontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-line-break-at-end-of-pasted-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-line-break-at-end-of-pasted-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-line-break-at-end-of-pasted-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+This tests for a bug where newlines would not be preserved during copy/paste. Below you should see two paragraphs containing &quot;Hello World!&quot; and an empty third paragraph with the caret in it.
+
+Before copy and paste:
+| &quot;&lt;#selection-anchor&gt;Hello World!&quot;
+| &lt;div&gt;
+|   id=&quot;div&quot;
+|   &lt;#selection-focus&gt;
+|   &lt;br&gt;
+
+After copy and paste:
+| &quot;Hello World!&quot;
+| &lt;div&gt;
+|   id=&quot;div&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;Hello World!&quot;
+|     &lt;br&gt;
+| &lt;div&gt;
+|   &lt;#selection-caret&gt;
+|   &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardpreserveunderlinecolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-underline-color-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-underline-color-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/preserve-underline-color-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This test for a bug copy/pasting underlined text. The color of the underline should be the color of the element that has the text-decoration property.
+| &lt;span&gt;
+|   style=&quot;text-decoration: underline; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|   &quot;This should be underlined.&lt;#selection-caret&gt;&quot;
+| &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardquirksmodebr1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/quirks-mode-br-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/quirks-mode-br-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/quirks-mode-br-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 61 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 61 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 777x39
+          text run at (0,0) width 777: &quot;This is a test to make sure that the final &lt;br&gt; in an incoming fragment is interpretted strictly in quirks mode (where brs at&quot;
+          text run at (0,20) width 212: &quot;the end of blocks are collapsed). &quot;
+          text run at (211,20) width 521: &quot;This test used to fail because of unrendered content to the left of the collapsed br.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 379x19
+            text run at (0,0) width 379: &quot;The test should add a single blank line after this paragraph.&quot;
+          RenderInline {SPAN} at (0,0) size 1x19
+          RenderBR {BR} at (378,15) size 1x0
+        RenderBlock (anonymous) at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 1 {BR} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardselectelement1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/select-element-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/select-element-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/select-element-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c8a47b0&gt; toElementsInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests copy/paste of select elements. All the options should be included.
+
+
+
+Passed
+Passed
+Passed
+Passed
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsimplfiyingmarkupshouldnotstripcontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+This tests copying and pasting doesn't strip content.
+To manually test, copy the content in the first box and paste it into the second box.
+
+Original content:
+| &quot;
+&quot;
+| &lt;font&gt;
+|   face=&quot;Verdana&quot;
+|   &quot;hello &quot;
+| &lt;br&gt;
+| &quot;
+&quot;
+| &lt;font&gt;
+|   face=&quot;Verdana&quot;
+|   &lt;div&gt;
+|     style=&quot;-webkit-line-break: after-white-space;&quot;
+|     &lt;div&gt;
+|       &lt;font&gt;
+|         face=&quot;Verdana&quot;
+|         &quot;world&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       style=&quot;-webkit-line-break: after-white-space; &quot;
+|       &lt;font&gt;
+|         face=&quot;Verdana&quot;
+|         &quot;WebKit&quot;
+|   &quot;
+&quot;
+
+Pasted content:
+| &lt;font&gt;
+|   face=&quot;Helvetica&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;hello &quot;
+|     &lt;br&gt;
+|     &quot;worldWebKit&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartdragdropexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-drag-drop-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-drag-drop-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-drag-drop-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x39
+          text run at (0,0) width 767: &quot;Tests that drag/drop after double-click does a smart drag. Specifically the end result should have a space: \&quot;world hello\&quot;.&quot;
+          text run at (0,20) width 464: &quot;To test manually double click on the \&quot;hello\&quot; and drag it to after \&quot;world\&quot;.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderInline {SPAN} at (0,0) size 32x19
+          RenderText {#text} at (0,0) size 32x19
+            text run at (0,0) width 32: &quot;hello&quot;
+        RenderText {#text} at (31,0) size 43x19
+          text run at (31,0) width 43: &quot; world&quot;
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c961570&gt; toElementsInDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+thello 
+world
+WebKitest
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; test &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; t&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;-webkit-line-break: after-white-space;&quot;&gt;&lt;div&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;WebKit&lt;/span&gt;&lt;/font&gt;est &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c89b030&gt; toElementsInDOMRange:range from 0 of #text &gt; FONT &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+hello 
+world
+WebKittest
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; test &lt;/div&gt;
+execPasteCommand: &lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello&amp;nbsp;&lt;br&gt;&lt;/span&gt;&lt;div style=&quot;-webkit-line-break: after-white-space;&quot;&gt;&lt;div&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;world&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;WebKit&lt;/span&gt;&lt;/font&gt;test &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c8798e0&gt; toElementsInDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+thello est test
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; test test &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; t&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello &lt;/span&gt;&lt;/font&gt;est test&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste003trailingwhitespaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-003-trailing-whitespace-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</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 &quot;hello &quot; (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: &lt;div id=&quot;test&quot; class=&quot;editing&quot; style=&quot;font-size: 24px;&quot;&gt; hello world &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt; hello &lt;/span&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello &lt;/span&gt;&lt;font size=&quot;5&quot;&gt;world&lt;/font&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 16 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cb7e080&gt; toElementsInDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+tehello st test
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; test test &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; te&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello &lt;/span&gt;&lt;/font&gt;st test&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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 &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61cf22ef0&gt; toElementsInDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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
+tehello st
+execCopyCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; test &lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt; te&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;hello &lt;/span&gt;&lt;/font&gt;st&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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 &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c960f60&gt; toElementsInDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+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: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;-&lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;--&lt;/div&gt;
+execPasteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;-&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;&gt;test&lt;/span&gt;&lt;/font&gt;-&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #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 &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61a6b4410&gt; toElementsInDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 68x28
+            text run at (0,1) width 68: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 457x28
+            text run at (0,31) width 457: &quot;Smart paste when pasting between two periods.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 739x58
+            text run at (0,31) width 739: &quot;A space should be added before, but not after the pasted word. It should look&quot;
+            text run at (0,61) width 90: &quot;like this: &quot;
+          RenderBR {BR} at (89,83) size 1x0
+          RenderText {#text} at (0,91) size 52x28
+            text run at (0,91) width 52: &quot;. test.&quot;
+      RenderBlock {DIV} at (0,248) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 6x28
+            text run at (2,3) width 6: &quot;.&quot;
+          RenderInline {FONT} at (0,0) size 23x19
+            RenderInline {SPAN} at (0,0) size 23x19 [bgcolor=#FFFFFF00]
+              RenderText {#text} at (8,10) size 23x19
+                text run at (8,10) width 23: &quot;test&quot;
+          RenderText {#text} at (30,3) size 40x28
+            text run at (30,3) width 40: &quot;.test&quot;
+        RenderBlock (anonymous) at (0,34) size 784x0
+caret: position 4 of child 0 {#text} of child 0 {SPAN} of child 1 {FONT} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpaste008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c88e800&gt; toElementsInDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x39
+          text run at (0,0) width 401: &quot;There was a bug in paste's smart replace whitespace handling. &quot;
+          text run at (400,0) width 367: &quot;In some cases, it used information gathered at the start of&quot;
+          text run at (0,20) width 759: &quot;the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 561: &quot;A smart paste is performed into a selection starting in one block and ending in another. &quot;
+          text run at (560,0) width 221: &quot;Spaces should surround the pasted&quot;
+          text run at (0,20) width 37: &quot;word.&quot;
+      RenderBlock {DIV} at (0,112) size 784x20
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 6x19
+            text run at (0,0) width 6: &quot;f&quot;
+          RenderInline {SPAN} at (0,0) size 23x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (5,0) size 23x19
+              text run at (5,0) width 23: &quot;test&quot;
+          RenderText {#text} at (27,0) size 25x19
+            text run at (27,0) width 25: &quot; bar&quot;
+        RenderBlock (anonymous) at (0,20) size 784x0
+caret: position 4 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 4 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsmartpasteintextcontrolexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-in-text-control-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-in-text-control-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/smart-paste-in-text-control-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests smart pasting in a text control. To manually test, double click the middle word in the text area below. Then cut and paste. It should result in the original text. The space before the middle word should not be lost.
+
+FAIL: Smart cutting and pasting do not result in the original text.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardstylefromrulesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/style-from-rules-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/style-from-rules-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/style-from-rules-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+This test ensures WebKit does not duplicate styles from matched rules in inline style declarations when copying and pasting contents.
+To manually test, copy &quot;hello world WebKit&quot; and paste it in the box blow.
+Each element should have exact properties stated in its title attribute
+
+Original:
+| &lt;blockquote&gt;
+|   title=&quot;none&quot;
+|   &quot;hello&quot;
+| &quot;
+&quot;
+| &lt;p&gt;
+|   title=&quot;none&quot;
+|   &lt;span&gt;
+|     class=&quot;red&quot;
+|     style=&quot;font-size: 1em; font-weight: bold;&quot;
+|     title=&quot;font-size: 1em; font-weight: bold;&quot;
+|     &quot;world&quot;
+|   &quot;
+&quot;
+|   &lt;em&gt;
+|     style=&quot;color: blue;&quot;
+|     title=&quot;font-weight: bold; color: blue;&quot;
+|     &quot;WebKit&quot;
+
+Pasted:
+| &lt;blockquote&gt;
+|   title=&quot;none&quot;
+|   &lt;span&gt;
+|     style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|     &quot;hello&quot;
+| &lt;p&gt;
+|   title=&quot;none&quot;
+|   &lt;font&gt;
+|     color=&quot;#000000&quot;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &lt;span&gt;
+|         class=&quot;red&quot;
+|         style=&quot;font-weight: bold;&quot;
+|         title=&quot;font-size: 1em; font-weight: bold;&quot;
+|         &quot;world&quot;
+|       &quot; &quot;
+|       &lt;span&gt;
+|         style=&quot;font-weight: bold;&quot;
+|         title=&quot;font-weight: bold; color: blue;&quot;
+|         &quot;WebKit&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardstyledelementmarkupexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/styled-element-markup-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/styled-element-markup-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/styled-element-markup-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of CENTER &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of CENTER &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of CENTER &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of CENTER &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c8a1ca0&gt; toElementsInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 762x39
+          text run at (0,0) width 344: &quot;This tests copy/paste of styled elements, like images. &quot;
+          text run at (343,0) width 419: &quot;The image in the region below should be centered after its copied&quot;
+          text run at (0,20) width 72: &quot;and pasted.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderInline {B} at (0,0) size 764x39
+          RenderText {#text} at (0,0) size 764x39
+            text run at (0,0) width 764: &quot;This demonstrates a bug: createMarkup puts the text-align property on the image, which doesn't center it, so its&quot;
+            text run at (0,20) width 141: &quot;left aligned on paste.&quot;
+      RenderBlock {DIV} at (0,112) size 784x103
+        RenderBlock {CENTER} at (0,0) size 784x103
+          RenderImage {IMG} at (354,0) size 76x103
+      RenderBlock {DIV} at (0,215) size 784x103
+        RenderInline {SPAN} at (0,0) size 76x19 [bgcolor=#FFFFFF00]
+          RenderImage {IMG} at (0,0) size 76x103
+caret: position 1 of child 0 {IMG} of child 0 {SPAN} of child 6 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardsubframedragndrop1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/subframe-dragndrop-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/subframe-dragndrop-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/subframe-dragndrop-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x584
+      RenderBlock (anonymous) at (0,0) size 800x304
+        RenderPartObject {IFRAME} at (0,0) size 304x304 [border: (2px inset #000000)]
+          layer at (0,0) size 300x300
+            RenderView at (0,0) size 300x300
+          layer at (0,0) size 300x300
+            RenderBlock {HTML} at (0,0) size 300x300
+              RenderBody {BODY} at (8,8) size 284x284 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 72x19
+                  text run at (0,0) width 72: &quot;foo bar baz&quot;
+                RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {P} at (0,320) size 800x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 775: &quot;This test uses the eventSender to do drag and drop. To run it manually, drag the word selected in the above subframe and&quot;
+          text run at (0,20) width 116: &quot;drop it after 'baz'. &quot;
+          text run at (115,20) width 217: &quot;The result should be 'foo baz bar'.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardtestcase9507expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/testcase-9507-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/testcase-9507-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/testcase-9507-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty &lt;font&gt; tag after 'foo' and before 'bar'.
+
+After copy:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &quot;
+&lt;#selection-anchor&gt;foo
+&quot;
+|   &lt;div&gt;
+|     style=&quot;color: rgb(255, 0, 0);&quot;
+|     &quot;
+&quot;
+|     &lt;div&gt;
+|       &quot;bar&lt;#selection-focus&gt;&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+
+After paste:
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;editing&quot;
+|   id=&quot;test&quot;
+|   &lt;font&gt;
+|     size=&quot;3&quot;
+|     &lt;span&gt;
+|       style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|       &quot;foo&quot;
+|   &lt;div&gt;
+|     &lt;font&gt;
+|       size=&quot;3&quot;
+|       &lt;span&gt;
+|         style=&quot;-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);&quot;
+|         &quot;bar&lt;#selection-caret&gt;&quot;
+|   &lt;div&gt;
+|     style=&quot;color: rgb(255, 0, 0);&quot;
+|     &quot;
+&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardundoablefragmentremovesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/undoable-fragment-removes-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/undoable-fragment-removes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/undoable-fragment-removes-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fc61c86f990&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 763x39
+          text run at (0,0) width 583: &quot;This is a testcase for 8193, hitting an assert inside RemoveNodeCommand on Undo Paste. &quot;
+          text run at (582,0) width 181: &quot;Both editable regions below&quot;
+          text run at (0,20) width 223: &quot;should look the same after the test.&quot;
+      RenderBlock {HR} at (0,56) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,66) size 784x42 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (1,1) size 782x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (1,21) size 782x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
+      RenderBlock {DIV} at (0,108) size 784x42 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (1,1) size 782x20
+          RenderInline {SPAN} at (0,0) size 22x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (0,0) size 22x19
+              text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (1,21) size 782x20
+          RenderInline {SPAN} at (0,0) size 21x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (0,0) size 21x19
+              text run at (0,0) width 21: &quot;bar&quot;
+        RenderBlock (anonymous) at (1,41) size 782x0
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of child 6 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingpasteboardunrenderedbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/unrendered-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/unrendered-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/pasteboard/unrendered-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 17 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 17 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 779x39
+          text run at (0,0) width 779: &quot;This is a test to make sure that an unrendered br at the end of the selection being pasted into doesn't become rendered as a&quot;
+          text run at (0,20) width 118: &quot;result of the paste.&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;First paragraph.&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 120x19
+            text run at (0,0) width 120: &quot;Second paragraph.&quot;
+        RenderBlock (anonymous) at (0,40) size 784x0
+caret: position 17 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingsecureinputpasswordinputchangedtypeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-changed-type-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-changed-type-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-changed-type-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+Verify that changing a password input's type updates secure input state.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+A password input is focused:
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+
+After changing the type to text:
+PASS testRunner.secureEventInputIsEnabled is false
+
+After changing the type back to password:
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingsecureinputpasswordinputfocusingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Verify that basic focusing/unfocusing updates secure input state.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Initial state, no selection:
+PASS testRunner.secureEventInputIsEnabled is false
+
+A password input is focused:
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+
+A regular text input is focused:
+PASS testRunner.secureEventInputIsEnabled is false
+
+A password input is focused again:
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE

</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingsecureinputpasswordinputfocusingtodifferentframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-to-different-frame-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-to-different-frame-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/secure-input/password-input-focusing-to-different-frame-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+Verify that changing focus to a different frame updates secure input state.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Initial state, no selection:
+PASS testRunner.secureEventInputIsEnabled is false
+
+A password input is focused:
+FAIL document.activeElement should be [object HTMLInputElement]. Was [object HTMLBodyElement].
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+
+A regular text input is focused with a mouse click:
+FAIL frames[0].document.activeElement should be [object HTMLInputElement]. Was [object HTMLBodyElement].
+PASS testRunner.secureEventInputIsEnabled is false
+
+A password input is focused again with a mouse click:
+FAIL document.activeElement should be [object HTMLInputElement]. Was [object HTMLBodyElement].
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+
+A regular text input is focused with a tab:
+FAIL frames[0].document.activeElement should be [object HTMLInputElement]. Was [object HTMLBodyElement].
+PASS testRunner.secureEventInputIsEnabled is false
+
+A password input is focused again with a tab:
+FAIL document.activeElement should be [object HTMLInputElement]. Was [object HTMLBodyElement].
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+
+Focus is made empty:
+PASS document.activeElement is document.body
+PASS testRunner.secureEventInputIsEnabled is false
+PASS successfullyParsed is true
+
+TEST COMPLETE

</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingsecureinputremovedpasswordinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/secure-input/removed-password-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/secure-input/removed-password-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/secure-input/removed-password-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+Verify that removing a password input from DOM tree disables secure input state.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+A password input is focused:
+FAIL testRunner.secureEventInputIsEnabled should be true. Was false.
+
+After deleting the input:
+PASS testRunner.secureEventInputIsEnabled is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingsecureinputresetstateonnavigationexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/secure-input/reset-state-on-navigation-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/secure-input/reset-state-on-navigation-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/secure-input/reset-state-on-navigation-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+ALERT: FAIL: Secure event input is not enabled after focusing a password input
+Verify that secure input state is disabled when navigating away from a page with a focused password field.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS testRunner.secureEventInputIsEnabled is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection14971expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/14971-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/14971-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/14971-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 773x39
+          text run at (0,0) width 613: &quot;This tests to make sure that a drag-selecting through a -webkit-user-select:ignore region works. &quot;
+          text run at (612,0) width 161: &quot;The selection should end&quot;
+          text run at (0,20) width 271: &quot;somewhere inside the word 'World' below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderInline {SPAN} at (0,0) size 36x19
+          RenderText {#text} at (0,0) size 36x19
+            text run at (0,0) width 36: &quot;Hello&quot;
+        RenderText {#text} at (35,0) size 5x19
+          text run at (35,0) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 41x19
+          RenderText {#text} at (39,0) size 41x19
+            text run at (39,0) width 41: &quot;World&quot;
+caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection36907032expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,153 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,3) size 784x581 [bgcolor=#FFFFFF]
+      RenderBlock {CENTER} at (0,0) size 784x278
+        RenderTable {TABLE} at (0,0) size 784x20
+          RenderTableSection {TBODY} at (0,0) size 784x20
+            RenderTableRow {TR} at (0,0) size 784x16
+              RenderTableCell {TD} at (0,0) size 784x16 [r=0 c=0 rs=1 cs=1]
+                RenderInline {FONT} at (0,0) size 102x15
+                  RenderInline {A} at (0,0) size 102x15 [color=#0000CC]
+                    RenderText {#text} at (682,0) size 102x15
+                      text run at (682,0) width 102: &quot;Personalized Home&quot;
+            RenderTableRow {TR} at (0,16) size 784x4
+              RenderTableCell {TD} at (0,17) size 784x1 [r=1 c=0 rs=1 cs=1]
+                RenderImage {IMG} at (0,0) size 1x1
+        RenderBlock (anonymous) at (0,20) size 784x40
+          RenderBR {BR} at (392,0) size 0x19
+          RenderBR {BR} at (392,20) size 0x19
+        RenderBlock {DIV} at (0,60) size 784x113 [border: (2px solid #AAAAFF)]
+          RenderTable {TABLE} at (215,2) size 354x24
+            RenderTableSection {TBODY} at (0,0) size 354x24
+              RenderTableRow {TR} at (0,0) size 354x24
+                RenderTableCell {TD} at (0,0) size 354x24 [r=0 c=0 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 346x15
+                    RenderInline {B} at (0,0) size 26x15
+                      RenderText {#text} at (4,4) size 26x15
+                        text run at (4,4) width 26: &quot;Web&quot;
+                    RenderText {#text} at (29,4) size 14x15
+                      text run at (29,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 38x15 [color=#0000CC]
+                      RenderText {#text} at (42,4) size 38x15
+                        text run at (42,4) width 38: &quot;Images&quot;
+                    RenderText {#text} at (79,4) size 14x15
+                      text run at (79,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 40x15 [color=#0000CC]
+                      RenderText {#text} at (92,4) size 40x15
+                        text run at (92,4) width 40: &quot;Groups&quot;
+                    RenderText {#text} at (131,4) size 14x15
+                      text run at (131,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 30x15 [color=#0000CC]
+                      RenderText {#text} at (144,4) size 30x15
+                        text run at (144,4) width 30: &quot;News&quot;
+                    RenderText {#text} at (173,4) size 14x15
+                      text run at (173,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 42x15 [color=#0000CC]
+                      RenderText {#text} at (186,4) size 42x15
+                        text run at (186,4) width 42: &quot;Froogle&quot;
+                    RenderText {#text} at (227,4) size 14x15
+                      text run at (227,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 30x15 [color=#0000CC]
+                      RenderText {#text} at (240,4) size 30x15
+                        text run at (240,4) width 30: &quot;Local&quot;
+                      RenderInline {SUP} at (0,0) size 1x13
+                    RenderInline {A} at (0,0) size 30x15
+                      RenderInline {FONT} at (0,0) size 30x15 [color=#FF0000]
+                        RenderText {#text} at (269,4) size 30x15
+                          text run at (269,4) width 30: &quot;New!&quot;
+                    RenderText {#text} at (298,4) size 14x15
+                      text run at (298,4) width 14: &quot;    &quot;
+                    RenderInline {B} at (0,0) size 39x15
+                      RenderInline {A} at (0,0) size 39x15 [color=#0000CC]
+                        RenderText {#text} at (311,4) size 39x15
+                          text run at (311,4) width 39: &quot;more \x{BB}&quot;
+          RenderTable {TABLE} at (38,26) size 708x49
+            RenderTableSection {TBODY} at (0,0) size 708x49
+              RenderTableRow {TR} at (0,0) size 708x49
+                RenderTableCell {TD} at (0,14) size 177x20 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (0,0) size 4x19
+                    text run at (0,0) width 4: &quot; &quot;
+                RenderTableCell {TD} at (177,0) size 354x49 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+                  RenderBR {BR} at (353,16) size 1x0
+                  RenderButton {INPUT} at (71,27) size 99x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+                    RenderBlock (anonymous) at (12,3) size 74x14
+                      RenderText at (0,0) size 74x14
+                        text run at (0,0) width 74: &quot;Google Search&quot;
+                  RenderButton {INPUT} at (173,27) size 110x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+                    RenderBlock (anonymous) at (12,3) size 86x14
+                      RenderText at (0,0) size 86x14
+                        text run at (0,0) width 86: &quot;I'm Feeling Lucky&quot;
+                RenderTableCell {TD} at (531,0) size 177x39 [r=0 c=2 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 76x38
+                    RenderText {#text} at (0,0) size 5x12
+                      text run at (0,0) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 71x12 [color=#0000CC]
+                      RenderText {#text} at (5,0) size 71x12
+                        text run at (5,0) width 71: &quot;Advanced Search&quot;
+                    RenderBR {BR} at (75,9) size 1x0
+                    RenderText {#text} at (0,13) size 5x12
+                      text run at (0,13) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 47x12 [color=#0000CC]
+                      RenderText {#text} at (5,13) size 47x12
+                        text run at (5,13) width 47: &quot;Preferences&quot;
+                    RenderBR {BR} at (51,22) size 1x0
+                    RenderText {#text} at (0,26) size 5x12
+                      text run at (0,26) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 65x12 [color=#0000CC]
+                      RenderText {#text} at (5,26) size 65x12
+                        text run at (5,26) width 65: &quot;Language Tools&quot;
+          RenderBlock (anonymous) at (2,75) size 780x36
+            RenderBR {BR} at (390,0) size 0x19
+            RenderInline {FONT} at (0,0) size 146x15
+              RenderInline {FONT} at (0,0) size 30x15 [color=#FF0000]
+                RenderText {#text} at (317,20) size 30x15
+                  text run at (317,20) width 30: &quot;New!&quot;
+              RenderText {#text} at (346,20) size 4x15
+                text run at (346,20) width 4: &quot; &quot;
+              RenderInline {A} at (0,0) size 111x15 [color=#0000CC]
+                RenderText {#text} at (349,20) size 111x15
+                  text run at (349,20) width 111: &quot;Personalize this page&quot;
+              RenderText {#text} at (459,20) size 4x15
+                text run at (459,20) width 4: &quot;.&quot;
+            RenderText {#text} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,173) size 784x76
+          RenderBR {BR} at (392,0) size 0x19
+          RenderBR {BR} at (392,20) size 0x19
+          RenderBR {BR} at (392,40) size 0x19
+          RenderInline {FONT} at (0,0) size 310x15
+            RenderInline {A} at (0,0) size 116x15 [color=#0000CC]
+              RenderText {#text} at (237,60) size 116x15
+                text run at (237,60) width 116: &quot;Advertising Programs&quot;
+            RenderText {#text} at (352,60) size 11x15
+              text run at (352,60) width 11: &quot; - &quot;
+            RenderInline {A} at (0,0) size 100x15 [color=#0000CC]
+              RenderText {#text} at (362,60) size 100x15
+                text run at (362,60) width 100: &quot;Business Solutions&quot;
+            RenderText {#text} at (461,60) size 12x15
+              text run at (461,60) width 12: &quot; - &quot;
+            RenderInline {A} at (0,0) size 75x15 [color=#0000CC]
+              RenderText {#text} at (472,60) size 75x15
+                text run at (472,60) width 75: &quot;About Google&quot;
+        RenderBlock {P} at (0,265) size 784x13
+          RenderInline {FONT} at (0,0) size 60x12
+            RenderText {#text} at (362,0) size 60x12
+              text run at (362,0) width 60: &quot;\x{A9}2005 Google&quot;
+layer at (232,94) size 336x14
+  RenderBlock {DIV} at (6,3) size 337x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection3690703expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/3690703-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,155 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,3) size 784x581 [bgcolor=#FFFFFF]
+      RenderBlock {CENTER} at (0,0) size 784x278
+        RenderTable {TABLE} at (0,0) size 784x20
+          RenderTableSection {TBODY} at (0,0) size 784x20
+            RenderTableRow {TR} at (0,0) size 784x16
+              RenderTableCell {TD} at (0,0) size 784x16 [r=0 c=0 rs=1 cs=1]
+                RenderInline {FONT} at (0,0) size 102x15
+                  RenderInline {A} at (0,0) size 102x15 [color=#0000CC]
+                    RenderText {#text} at (682,0) size 102x15
+                      text run at (682,0) width 102: &quot;Personalized Home&quot;
+            RenderTableRow {TR} at (0,16) size 784x4
+              RenderTableCell {TD} at (0,17) size 784x1 [r=1 c=0 rs=1 cs=1]
+                RenderImage {IMG} at (0,0) size 1x1
+        RenderBlock (anonymous) at (0,20) size 784x40
+          RenderBR {BR} at (392,0) size 0x19
+          RenderBR {BR} at (392,20) size 0x19
+        RenderBlock {DIV} at (0,60) size 784x113 [border: (2px solid #AAAAFF)]
+          RenderTable {TABLE} at (215,2) size 354x24
+            RenderTableSection {TBODY} at (0,0) size 354x24
+              RenderTableRow {TR} at (0,0) size 354x24
+                RenderTableCell {TD} at (0,0) size 354x24 [r=0 c=0 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 346x15
+                    RenderInline {B} at (0,0) size 26x15
+                      RenderText {#text} at (4,4) size 26x15
+                        text run at (4,4) width 26: &quot;Web&quot;
+                    RenderText {#text} at (29,4) size 14x15
+                      text run at (29,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 38x15 [color=#0000CC]
+                      RenderText {#text} at (42,4) size 38x15
+                        text run at (42,4) width 38: &quot;Images&quot;
+                    RenderText {#text} at (79,4) size 14x15
+                      text run at (79,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 40x15 [color=#0000CC]
+                      RenderText {#text} at (92,4) size 40x15
+                        text run at (92,4) width 40: &quot;Groups&quot;
+                    RenderText {#text} at (131,4) size 14x15
+                      text run at (131,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 30x15 [color=#0000CC]
+                      RenderText {#text} at (144,4) size 30x15
+                        text run at (144,4) width 30: &quot;News&quot;
+                    RenderText {#text} at (173,4) size 14x15
+                      text run at (173,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 42x15 [color=#0000CC]
+                      RenderText {#text} at (186,4) size 42x15
+                        text run at (186,4) width 42: &quot;Froogle&quot;
+                    RenderText {#text} at (227,4) size 14x15
+                      text run at (227,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 30x15 [color=#0000CC]
+                      RenderText {#text} at (240,4) size 30x15
+                        text run at (240,4) width 30: &quot;Local&quot;
+                      RenderInline {SUP} at (0,0) size 1x13
+                    RenderInline {A} at (0,0) size 30x15
+                      RenderInline {FONT} at (0,0) size 30x15 [color=#FF0000]
+                        RenderText {#text} at (269,4) size 30x15
+                          text run at (269,4) width 30: &quot;New!&quot;
+                    RenderText {#text} at (298,4) size 14x15
+                      text run at (298,4) width 14: &quot;    &quot;
+                    RenderInline {B} at (0,0) size 39x15
+                      RenderInline {A} at (0,0) size 39x15 [color=#0000CC]
+                        RenderText {#text} at (311,4) size 39x15
+                          text run at (311,4) width 39: &quot;more \x{BB}&quot;
+          RenderTable {TABLE} at (38,26) size 708x49
+            RenderTableSection {TBODY} at (0,0) size 708x49
+              RenderTableRow {TR} at (0,0) size 708x49
+                RenderTableCell {TD} at (0,14) size 177x20 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (0,0) size 4x19
+                    text run at (0,0) width 4: &quot; &quot;
+                RenderTableCell {TD} at (177,0) size 354x49 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+                  RenderBR {BR} at (353,16) size 1x0
+                  RenderButton {INPUT} at (71,27) size 99x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+                    RenderBlock (anonymous) at (12,3) size 74x14
+                      RenderText at (0,0) size 74x14
+                        text run at (0,0) width 74: &quot;Google Search&quot;
+                  RenderButton {INPUT} at (173,27) size 110x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+                    RenderBlock (anonymous) at (12,3) size 86x14
+                      RenderText at (0,0) size 86x14
+                        text run at (0,0) width 86: &quot;I'm Feeling Lucky&quot;
+                RenderTableCell {TD} at (531,0) size 177x39 [r=0 c=2 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 76x38
+                    RenderText {#text} at (0,0) size 5x12
+                      text run at (0,0) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 71x12 [color=#0000CC]
+                      RenderText {#text} at (5,0) size 71x12
+                        text run at (5,0) width 71: &quot;Advanced Search&quot;
+                    RenderBR {BR} at (75,9) size 1x0
+                    RenderText {#text} at (0,13) size 5x12
+                      text run at (0,13) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 47x12 [color=#0000CC]
+                      RenderText {#text} at (5,13) size 47x12
+                        text run at (5,13) width 47: &quot;Preferences&quot;
+                    RenderBR {BR} at (51,22) size 1x0
+                    RenderText {#text} at (0,26) size 5x12
+                      text run at (0,26) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 65x12 [color=#0000CC]
+                      RenderText {#text} at (5,26) size 65x12
+                        text run at (5,26) width 65: &quot;Language Tools&quot;
+          RenderBlock (anonymous) at (2,75) size 780x36
+            RenderBR {BR} at (390,0) size 0x19
+            RenderInline {FONT} at (0,0) size 146x15
+              RenderInline {FONT} at (0,0) size 30x15 [color=#FF0000]
+                RenderText {#text} at (317,20) size 30x15
+                  text run at (317,20) width 30: &quot;New!&quot;
+              RenderText {#text} at (346,20) size 4x15
+                text run at (346,20) width 4: &quot; &quot;
+              RenderInline {A} at (0,0) size 111x15 [color=#0000CC]
+                RenderText {#text} at (349,20) size 111x15
+                  text run at (349,20) width 111: &quot;Personalize this page&quot;
+              RenderText {#text} at (459,20) size 4x15
+                text run at (459,20) width 4: &quot;.&quot;
+            RenderText {#text} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,173) size 784x76
+          RenderBR {BR} at (392,0) size 0x19
+          RenderBR {BR} at (392,20) size 0x19
+          RenderBR {BR} at (392,40) size 0x19
+          RenderInline {FONT} at (0,0) size 310x15
+            RenderInline {A} at (0,0) size 116x15 [color=#0000CC]
+              RenderText {#text} at (237,60) size 116x15
+                text run at (237,60) width 116: &quot;Advertising Programs&quot;
+            RenderText {#text} at (352,60) size 11x15
+              text run at (352,60) width 11: &quot; - &quot;
+            RenderInline {A} at (0,0) size 100x15 [color=#0000CC]
+              RenderText {#text} at (362,60) size 100x15
+                text run at (362,60) width 100: &quot;Business Solutions&quot;
+            RenderText {#text} at (461,60) size 12x15
+              text run at (461,60) width 12: &quot; - &quot;
+            RenderInline {A} at (0,0) size 75x15 [color=#0000CC]
+              RenderText {#text} at (472,60) size 75x15
+                text run at (472,60) width 75: &quot;About Google&quot;
+        RenderBlock {P} at (0,265) size 784x13
+          RenderInline {FONT} at (0,0) size 60x12
+            RenderText {#text} at (362,0) size 60x12
+              text run at (362,0) width 60: &quot;\x{A9}2005 Google&quot;
+layer at (232,94) size 336x14
+  RenderBlock {DIV} at (6,3) size 337x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection3690719expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/3690719-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/3690719-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/3690719-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,148 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document to 6 of DIV &gt; CENTER &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of CENTER &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; FONT &gt; P &gt; CENTER &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,3) size 784x581 [bgcolor=#FFFFFF]
+      RenderBlock {CENTER} at (0,0) size 784x278
+        RenderTable {TABLE} at (0,0) size 784x20
+          RenderTableSection {TBODY} at (0,0) size 784x20
+            RenderTableRow {TR} at (0,0) size 784x16
+              RenderTableCell {TD} at (0,0) size 784x16 [r=0 c=0 rs=1 cs=1]
+                RenderInline {FONT} at (0,0) size 102x15
+                  RenderInline {A} at (0,0) size 102x15 [color=#0000CC]
+                    RenderText {#text} at (682,0) size 102x15
+                      text run at (682,0) width 102: &quot;Personalized Home&quot;
+            RenderTableRow {TR} at (0,16) size 784x4
+              RenderTableCell {TD} at (0,17) size 784x1 [r=1 c=0 rs=1 cs=1]
+                RenderImage {IMG} at (0,0) size 1x1
+        RenderBlock (anonymous) at (0,20) size 784x40
+          RenderBR {BR} at (392,0) size 0x19
+          RenderBR {BR} at (392,20) size 0x19
+        RenderBlock {DIV} at (0,60) size 784x113 [border: (2px solid #AAAAFF)]
+          RenderTable {TABLE} at (215,2) size 354x24
+            RenderTableSection {TBODY} at (0,0) size 354x24
+              RenderTableRow {TR} at (0,0) size 354x24
+                RenderTableCell {TD} at (0,0) size 354x24 [r=0 c=0 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 346x15
+                    RenderInline {B} at (0,0) size 26x15
+                      RenderText {#text} at (4,4) size 26x15
+                        text run at (4,4) width 26: &quot;Web&quot;
+                    RenderText {#text} at (29,4) size 14x15
+                      text run at (29,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 38x15 [color=#0000CC]
+                      RenderText {#text} at (42,4) size 38x15
+                        text run at (42,4) width 38: &quot;Images&quot;
+                    RenderText {#text} at (79,4) size 14x15
+                      text run at (79,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 40x15 [color=#0000CC]
+                      RenderText {#text} at (92,4) size 40x15
+                        text run at (92,4) width 40: &quot;Groups&quot;
+                    RenderText {#text} at (131,4) size 14x15
+                      text run at (131,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 30x15 [color=#0000CC]
+                      RenderText {#text} at (144,4) size 30x15
+                        text run at (144,4) width 30: &quot;News&quot;
+                    RenderText {#text} at (173,4) size 14x15
+                      text run at (173,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 42x15 [color=#0000CC]
+                      RenderText {#text} at (186,4) size 42x15
+                        text run at (186,4) width 42: &quot;Froogle&quot;
+                    RenderText {#text} at (227,4) size 14x15
+                      text run at (227,4) width 14: &quot;    &quot;
+                    RenderInline {A} at (0,0) size 30x15 [color=#0000CC]
+                      RenderText {#text} at (240,4) size 30x15
+                        text run at (240,4) width 30: &quot;Local&quot;
+                      RenderInline {SUP} at (0,0) size 1x13
+                    RenderInline {A} at (0,0) size 30x15
+                      RenderInline {FONT} at (0,0) size 30x15 [color=#FF0000]
+                        RenderText {#text} at (269,4) size 30x15
+                          text run at (269,4) width 30: &quot;New!&quot;
+                    RenderText {#text} at (298,4) size 14x15
+                      text run at (298,4) width 14: &quot;    &quot;
+                    RenderInline {B} at (0,0) size 39x15
+                      RenderInline {A} at (0,0) size 39x15 [color=#0000CC]
+                        RenderText {#text} at (311,4) size 39x15
+                          text run at (311,4) width 39: &quot;more \x{BB}&quot;
+          RenderTable {TABLE} at (38,26) size 708x49
+            RenderTableSection {TBODY} at (0,0) size 708x49
+              RenderTableRow {TR} at (0,0) size 708x49
+                RenderTableCell {TD} at (0,14) size 177x20 [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (0,0) size 4x19
+                    text run at (0,0) width 4: &quot; &quot;
+                RenderTableCell {TD} at (177,0) size 354x49 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+                  RenderBR {BR} at (353,16) size 1x0
+                  RenderButton {INPUT} at (71,27) size 99x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+                    RenderBlock (anonymous) at (12,3) size 74x14
+                      RenderText at (0,0) size 74x14
+                        text run at (0,0) width 74: &quot;Google Search&quot;
+                  RenderButton {INPUT} at (173,27) size 110x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+                    RenderBlock (anonymous) at (12,3) size 86x14
+                      RenderText at (0,0) size 86x14
+                        text run at (0,0) width 86: &quot;I'm Feeling Lucky&quot;
+                RenderTableCell {TD} at (531,0) size 177x39 [r=0 c=2 rs=1 cs=1]
+                  RenderInline {FONT} at (0,0) size 76x38
+                    RenderText {#text} at (0,0) size 5x12
+                      text run at (0,0) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 71x12 [color=#0000CC]
+                      RenderText {#text} at (5,0) size 71x12
+                        text run at (5,0) width 71: &quot;Advanced Search&quot;
+                    RenderBR {BR} at (75,9) size 1x0
+                    RenderText {#text} at (0,13) size 5x12
+                      text run at (0,13) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 47x12 [color=#0000CC]
+                      RenderText {#text} at (5,13) size 47x12
+                        text run at (5,13) width 47: &quot;Preferences&quot;
+                    RenderBR {BR} at (51,22) size 1x0
+                    RenderText {#text} at (0,26) size 5x12
+                      text run at (0,26) width 5: &quot;  &quot;
+                    RenderInline {A} at (0,0) size 65x12 [color=#0000CC]
+                      RenderText {#text} at (5,26) size 65x12
+                        text run at (5,26) width 65: &quot;Language Tools&quot;
+          RenderBlock (anonymous) at (2,75) size 780x36
+            RenderBR {BR} at (390,0) size 0x19
+            RenderInline {FONT} at (0,0) size 146x15
+              RenderInline {FONT} at (0,0) size 30x15 [color=#FF0000]
+                RenderText {#text} at (317,20) size 30x15
+                  text run at (317,20) width 30: &quot;New!&quot;
+              RenderText {#text} at (346,20) size 4x15
+                text run at (346,20) width 4: &quot; &quot;
+              RenderInline {A} at (0,0) size 111x15 [color=#0000CC]
+                RenderText {#text} at (349,20) size 111x15
+                  text run at (349,20) width 111: &quot;Personalize this page&quot;
+              RenderText {#text} at (459,20) size 4x15
+                text run at (459,20) width 4: &quot;.&quot;
+            RenderText {#text} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,173) size 784x76
+          RenderBR {BR} at (392,0) size 0x19
+          RenderBR {BR} at (392,20) size 0x19
+          RenderBR {BR} at (392,40) size 0x19
+          RenderInline {FONT} at (0,0) size 310x15
+            RenderInline {A} at (0,0) size 116x15 [color=#0000CC]
+              RenderText {#text} at (237,60) size 116x15
+                text run at (237,60) width 116: &quot;Advertising Programs&quot;
+            RenderText {#text} at (352,60) size 11x15
+              text run at (352,60) width 11: &quot; - &quot;
+            RenderInline {A} at (0,0) size 100x15 [color=#0000CC]
+              RenderText {#text} at (362,60) size 100x15
+                text run at (362,60) width 100: &quot;Business Solutions&quot;
+            RenderText {#text} at (461,60) size 12x15
+              text run at (461,60) width 12: &quot; - &quot;
+            RenderInline {A} at (0,0) size 75x15 [color=#0000CC]
+              RenderText {#text} at (472,60) size 75x15
+                text run at (472,60) width 75: &quot;About Google&quot;
+        RenderBlock {P} at (0,265) size 784x13
+          RenderInline {FONT} at (0,0) size 60x12
+            RenderText {#text} at (362,0) size 60x12
+              text run at (362,0) width 60: &quot;\x{A9}2005 Google&quot;
+layer at (232,94) size 336x14
+  RenderBlock {DIV} at (6,3) size 337x15
+selection start: position 0 of child 0 {TABLE} of child 0 {CENTER} of body
+selection end:   position 12 of child 0 {#text} of child 0 {FONT} of child 10 {P} of child 0 {CENTER} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4397952expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4397952-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4397952-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4397952-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 578x19
+          text run at (0,0) width 271: &quot;This tests caret movement across buttons. &quot;
+          text run at (270,0) width 308: &quot;The caret should be just after the second button.&quot;
+      RenderBlock {DIV} at (0,36) size 784x24
+        RenderButton {INPUT} at (2,2) size 43x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (12,3) size 19x14
+            RenderText at (0,0) size 19x14
+              text run at (0,0) width 19: &quot;Foo&quot;
+        RenderButton {INPUT} at (48,2) size 43x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (12,3) size 18x14
+            RenderText at (0,0) size 18x14
+              text run at (0,0) width 18: &quot;Bar&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4402375expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4402375-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4402375-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4402375-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 135x19
+          text run at (0,0) width 135: &quot;This is a testcase for &quot;
+        RenderInline {A} at (0,0) size 154x19 [color=#0000EE]
+          RenderText {#text} at (134,0) size 154x19
+            text run at (134,0) width 154: &quot;rdar://problem/4402375&quot;
+        RenderText {#text} at (287,0) size 775x39
+          text run at (287,0) width 488: &quot; \&quot;REGRESSION (417.8-TOT): finding text sometimes also selects previous&quot;
+          text run at (0,20) width 139: &quot;image (5127) (6451)\&quot;&quot;
+      RenderBlock {HR} at (0,56) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,74) size 784x40
+        RenderText {#text} at (0,0) size 759x39
+          text run at (0,0) width 424: &quot;This test uses a right aligned image next to some left aligned text. &quot;
+          text run at (423,0) width 336: &quot;The image should not be selected, and should not be&quot;
+          text run at (0,20) width 612: &quot;included in the selection rect (you won't see the selection rect when you run this test manually).&quot;
+      RenderBlock {DIV} at (0,130) size 784x20
+        RenderImage {IMG} at (708,0) size 76x103
+        RenderText {#text} at (0,0) size 182x19
+          text run at (0,0) width 182: &quot;This text should be selected.&quot;
+selection start: position 0 of child 1 {#text} of child 6 {DIV} of body
+selection end:   position 29 of child 1 {#text} of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4776665expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4776665-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4776665-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4776665-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 595x19
+          text run at (0,0) width 223: &quot;This tests for a caret painting bug. &quot;
+          text run at (222,0) width 373: &quot;You should not see a caret in the editable subframe below.&quot;
+      RenderBlock (anonymous) at (0,36) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4818145expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4818145-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4818145-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4818145-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 751x39
+          text run at (0,0) width 522: &quot;This tries to select a table inside an editable region whose content is not editable. &quot;
+          text run at (521,0) width 230: &quot;The table and its contents should be&quot;
+          text run at (0,20) width 56: &quot;selected.&quot;
+      RenderBlock {DIV} at (0,56) size 784x30
+        RenderTable {TABLE} at (0,0) size 32x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 30x28
+            RenderTableRow {TR} at (0,2) size 30x24
+              RenderTableCell {TD} at (2,2) size 26x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 22x19
+                  text run at (2,2) width 22: &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4866671expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4866671-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4866671-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4866671-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 625x19
+          text run at (0,0) width 443: &quot;This tests caret movement through -webkit-user-select:none content. &quot;
+          text run at (442,0) width 183: &quot;The caret should move over &quot;
+        RenderInline {B} at (0,0) size 25x19
+          RenderText {#text} at (624,0) size 25x19
+            text run at (624,0) width 25: &quot;yyy&quot;
+        RenderText {#text} at (648,0) size 5x19
+          text run at (648,0) width 5: &quot;.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 8x19
+          text run at (0,0) width 8: &quot;x&quot;
+        RenderInline {SPAN} at (0,0) size 24x19
+          RenderText {#text} at (8,0) size 24x19
+            text run at (8,0) width 24: &quot;yyy&quot;
+        RenderText {#text} at (32,0) size 8x19
+          text run at (32,0) width 8: &quot;x&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4889598expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4889598-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4889598-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4889598-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 749x39
+          text run at (0,0) width 749: &quot;This tests for a bug moving down by a line from a line just above a ToDo, and moving up by a line from just below a&quot;
+          text run at (0,20) width 41: &quot;ToDo.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 283x19
+            text run at (0,0) width 283: &quot;Click anywhere in this line and move down.&quot;
+        RenderTable {TABLE} at (0,20) size 342x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 340x28
+            RenderTableRow {TR} at (0,2) size 340x24
+              RenderTableCell {TD} at (2,2) size 336x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 64x19
+                  text run at (2,2) width 64: &quot;The caret &quot;
+                RenderInline {SPAN} at (0,0) size 44x19 [color=#0000FF]
+                  RenderText {#text} at (65,2) size 44x19
+                    text run at (65,2) width 44: &quot;should&quot;
+                RenderText {#text} at (108,2) size 226x19
+                  text run at (108,2) width 226: &quot; always go into the editable region.&quot;
+        RenderBlock {DIV} at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 264x19
+            text run at (0,0) width 264: &quot;Click anywhere in this line and move up.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection48954281expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+This tests dragging a selected table by mousing down on the contents of one of its cells. It should be in the red bordered area.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;source&quot;
+|   style=&quot;border: 1px solid blue;&quot;
+|   &lt;table&gt;
+|     border=&quot;1&quot;
+|     &lt;tbody&gt;
+|       &lt;tr&gt;
+|         &lt;td&gt;
+|           id=&quot;cell&quot;
+|           &quot;fo&lt;#selection-caret&gt;o&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;destination&quot;
+|   style=&quot;border: 1px solid red;&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection48954282expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 743x59
+          text run at (0,0) width 743: &quot;This tests to see if a mouse click inside an editable, focusable node focuses that node. Normally, we focus a node on&quot;
+          text run at (0,20) width 738: &quot;mouse down, but to make it easier to drag selections containing editable pieces we delay focus until mouse up. The&quot;
+          text run at (0,40) width 535: &quot;editable table cell should be focused and you should see a 'Success' message below.&quot;
+      RenderBlock {DIV} at (0,76) size 784x30
+        RenderTable {TABLE} at (0,0) size 147x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 145x28
+            RenderTableRow {TR} at (0,2) size 145x24
+              RenderTableCell {TD} at (2,2) size 84x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 80x19
+                  text run at (2,2) width 80: &quot;non-editable&quot;
+              RenderTableCell {TD} at (88,2) size 55x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 51x19
+                  text run at (2,2) width 51: &quot;editable&quot;
+      RenderBlock {DIV} at (0,106) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+      RenderBlock {UL} at (0,142) size 784x40
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;Success&quot;
+        RenderListItem {LI} at (40,20) size 744x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;Success&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection48954283expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 768x59
+          text run at (0,0) width 768: &quot;We delay focus until mouse up if the mouse down occurs inside a focusable node that is inside an already focused node.&quot;
+          text run at (0,20) width 568: &quot;But we shouldn't delay focus unless the mouse down occurs in an already focused node. &quot;
+          text run at (567,20) width 196: &quot;The text field below should be&quot;
+          text run at (0,40) width 58: &quot;focused. &quot;
+        RenderInline {B} at (0,0) size 662x19
+          RenderText {#text} at (57,40) size 662x19
+            text run at (57,40) width 662: &quot;To run manually, select everything from 'foo' though 'baz', then mouse down inside the text field.&quot;
+      RenderBlock {DIV} at (0,76) size 784x65
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock (anonymous) at (0,20) size 784x25
+          RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderBlock {DIV} at (0,45) size 784x20
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: &quot;baz&quot;
+layer at (17,109) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection48954284expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4895428-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+This tests to see if an editable selection containing a focusable node is draggable by content inside that focusable node. To achieve this we delay focus of such nodes until mouse up. Below, the table should be inside the red bordered div.
+| &quot;
+&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;div&quot;
+|   style=&quot;border: 1px solid blue;&quot;
+|   &quot;
+&quot;
+|   &lt;table&gt;
+|     border=&quot;1&quot;
+|     contenteditable=&quot;false&quot;
+|     &lt;tbody&gt;
+|       &lt;tr&gt;
+|         &lt;td&gt;
+|           contenteditable=&quot;true&quot;
+|           id=&quot;cell&quot;
+|           &quot;editable&quot;
+|   &quot;
+&quot;
+| &quot;
+&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;true&quot;
+|   id=&quot;destination&quot;
+|   style=&quot;border: 1px solid red;&quot;
+|   &lt;br&gt;
+| &quot;
+&quot;
+| &lt;ul&gt;
+|   id=&quot;console&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection49322601expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 437x19
+          text run at (0,0) width 437: &quot;This tests for a bug where images would act as sentence boundaries.&quot;
+      RenderBlock {DIV} at (0,36) size 784x108
+        RenderText {#text} at (0,88) size 130x19
+          text run at (0,88) width 130: &quot;The caret should be &quot;
+        RenderImage {IMG} at (129,0) size 77x103
+        RenderText {#text} at (205,88) size 212x19
+          text run at (205,88) width 212: &quot;at the beginning of this sentence.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection49322602expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 415x19
+          text run at (0,0) width 415: &quot;This tests for a bug where images would act as word boundaries.&quot;
+      RenderBlock {DIV} at (0,36) size 784x108
+        RenderText {#text} at (0,88) size 25x19
+          text run at (0,88) width 25: &quot;The&quot;
+        RenderImage {IMG} at (24,0) size 77x103
+        RenderText {#text} at (100,88) size 374x19
+          text run at (100,88) width 374: &quot;caret should be just after the second word in this sentence.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection49322603expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4932260-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 415x19
+          text run at (0,0) width 415: &quot;This tests for a bug where images would act as word boundaries.&quot;
+      RenderBlock {DIV} at (0,36) size 784x108
+        RenderText {#text} at (0,88) size 393x19
+          text run at (0,88) width 393: &quot;The caret should be just before the second to last word in this&quot;
+        RenderImage {IMG} at (392,0) size 77x103
+        RenderText {#text} at (468,88) size 60x19
+          text run at (468,88) width 60: &quot;sentence.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4947387expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4947387-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4947387-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4947387-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 27 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 51 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 776x79
+          text run at (0,0) width 423: &quot;This tests moveTo{Beginning, End}OfLineAndModifySelection. &quot;
+          text run at (422,0) width 350: &quot;It should operate on line boundaries and not paragraph&quot;
+          text run at (0,20) width 79: &quot;boundaries. &quot;
+          text run at (78,20) width 698: &quot;To run it manually, click inside the first line of the editable region below and do Command+Shift+Left/Right&quot;
+          text run at (0,40) width 619: &quot;Arrow, the selection should extend to the start/end of the line, not the start/end of the paragraph. &quot;
+          text run at (618,40) width 35: &quot;Also,&quot;
+          text run at (0,60) width 473: &quot;moveTo{Beginning, End}OfParagraphAndModifySelection should work.&quot;
+      RenderBlock {DIV} at (0,96) size 200x40
+        RenderText {#text} at (0,0) size 191x39
+          text run at (0,0) width 187: &quot;The quick brown fox jumped&quot;
+          text run at (186,0) width 5: &quot; &quot;
+          text run at (0,20) width 160: &quot;over the lazy brown dog.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4960116expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4960116-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4960116-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4960116-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 781x59
+          text run at (0,0) width 781: &quot;This tests for a crash when performing a selection modification, when a node containing the selection was made invisible,&quot;
+          text run at (0,20) width 370: &quot;and when there is nowhere visible for the selection to go. &quot;
+          text run at (369,20) width 392: &quot;For example, set the caret inside of an editable div, and make&quot;
+          text run at (0,40) width 526: &quot;the div invisible, then try to move the selection forward/backward by a paragraph.&quot;
+      RenderBlock {DIV} at (0,76) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4960137expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4960137-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4960137-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4960137-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 671x19
+          text run at (0,0) width 671: &quot;This tests for an ASSERTion failure when setting the main frame's selection inside a node in a subframe.&quot;
+      RenderBlock (anonymous) at (0,36) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134
+                RenderText {#text} at (0,0) size 74x19
+                  text run at (0,0) width 74: &quot;hello world&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4975120expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4975120-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4975120-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4975120-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 770x59
+          text run at (0,0) width 768: &quot;This tests for a bug that caused the parent of an active frame to paint as though it were active when its window becomes&quot;
+          text run at (0,20) width 31: &quot;key. &quot;
+          text run at (30,20) width 740: &quot;To run manually, make another window active and then make this window active. Only the subframe should appear&quot;
+          text run at (0,40) width 43: &quot;active.&quot;
+      RenderBlock (anonymous) at (0,76) size 784x179
+        RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderBR {BR} at (139,16) size 1x0
+        RenderPartObject {IFRAME} at (0,25) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,89) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
+    RenderText {#text} at (0,0) size 16x14
+      text run at (0,0) width 16: &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection4983858expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/4983858-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/4983858-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/4983858-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50071432expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests for a bug when moving the caret forward by a line from a range selection with a horizontal position for vertical&quot;
+          text run at (0,20) width 139: &quot;arrow navigation set. &quot;
+          text run at (138,20) width 610: &quot;To match TextEdit, the caret should be between the second and third 'x's in the forth paragraph.&quot;
+      RenderBlock {DIV} at (0,56) size 784x80
+        RenderText {#text} at (0,0) size 24x19
+          text run at (0,0) width 24: &quot;xxx&quot;
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 24x19
+          text run at (0,20) width 24: &quot;xxx&quot;
+        RenderBR {BR} at (24,35) size 0x0
+        RenderText {#text} at (0,40) size 8x19
+          text run at (0,40) width 8: &quot;x&quot;
+        RenderBR {BR} at (8,55) size 0x0
+        RenderText {#text} at (0,60) size 24x19
+          text run at (0,60) width 24: &quot;xxx&quot;
+        RenderBR {BR} at (24,75) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5007143expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5007143-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 775x59
+          text run at (0,0) width 530: &quot;This tests for a bug when moving the caret forward/backward by a line/paragraph. &quot;
+          text run at (529,0) width 226: &quot;The horizontal position of the caret&quot;
+          text run at (0,20) width 592: &quot;would be lost when moving the caret into an empty paragraph, when it should be preserved. &quot;
+          text run at (591,20) width 184: &quot;The caret should be between&quot;
+          text run at (0,40) width 296: &quot;the first and second 'x's in the third paragraph.&quot;
+      RenderBlock {DIV} at (0,76) size 784x80
+        RenderText {#text} at (0,0) size 24x19
+          text run at (0,0) width 24: &quot;xxx&quot;
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 24x19
+          text run at (0,20) width 24: &quot;xxx&quot;
+        RenderBR {BR} at (24,35) size 0x0
+        RenderBR {BR} at (0,40) size 0x19
+        RenderText {#text} at (0,60) size 24x19
+          text run at (0,60) width 24: &quot;xxx&quot;
+        RenderBR {BR} at (24,75) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50575062expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+ALERT: 36
+ALERT: 117.5
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 763x79
+          text run at (0,0) width 505: &quot;This tests triple clicking after the last character in the last cell of a block table. &quot;
+          text run at (504,0) width 259: &quot;The paragraph break (the space between&quot;
+          text run at (0,20) width 526: &quot;the last character and the first character in the next paragraph) should be selected. &quot;
+          text run at (525,20) width 222: &quot;Selection painting problems might&quot;
+          text run at (0,40) width 473: &quot;prevent the paragraph break from appearing as selected even though it is. &quot;
+          text run at (472,40) width 284: &quot;To test manually, triple click inside the table&quot;
+          text run at (0,60) width 275: &quot;cell, after the last character, and hit delete. &quot;
+          text run at (274,60) width 294: &quot;Afterward, the table should contain only 'bar'.&quot;
+      RenderBlock {DIV} at (0,96) size 784x50
+        RenderTable {TABLE} at (0,0) size 110x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 108x28
+            RenderTableRow {TR} at (0,2) size 108x24
+              RenderTableCell {TD} at (2,2) size 104x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 22x19
+                  RenderText {#text} at (2,2) size 22x19
+                    text run at (2,2) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (0,30) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5057506expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5057506-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+ALERT: 36
+ALERT: 117.5
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x80
+        RenderText {#text} at (0,0) size 773x79
+          text run at (0,0) width 515: &quot;This tests double clicking after the last character in the last cell of a block table. &quot;
+          text run at (514,0) width 259: &quot;The paragraph break (the space between&quot;
+          text run at (0,20) width 526: &quot;the last character and the first character in the next paragraph) should be selected. &quot;
+          text run at (525,20) width 222: &quot;Selection painting problems might&quot;
+          text run at (0,40) width 473: &quot;prevent the paragraph break from appearing as selected even though it is. &quot;
+          text run at (472,40) width 294: &quot;To test manually, double click inside the table&quot;
+          text run at (0,60) width 275: &quot;cell, after the last character, and hit delete. &quot;
+          text run at (274,60) width 282: &quot;Afterward, the table should contain 'foobar'.&quot;
+      RenderBlock {DIV} at (0,96) size 784x50
+        RenderTable {TABLE} at (0,0) size 110x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 108x28
+            RenderTableRow {TR} at (0,2) size 108x24
+              RenderTableCell {TD} at (2,2) size 104x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 22x19
+                  RenderText {#text} at (2,2) size 22x19
+                    text run at (2,2) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (0,30) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50763231expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 775: &quot;This tests for a bug where moving the selection to the end of the document would move it outside of an editable region if&quot;
+          text run at (0,20) width 250: &quot;the selection started just before a table.&quot;
+      RenderBlock {DIV} at (0,56) size 784x28
+        RenderTable {TABLE} at (0,0) size 30x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 28x26
+            RenderTableRow {TR} at (0,2) size 28x22
+              RenderTableCell {TD} at (2,2) size 24x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x19
+                  text run at (1,1) width 22: &quot;foo&quot;
+      RenderBlock {P} at (0,100) size 784x20
+        RenderText {#text} at (0,0) size 574x19
+          text run at (0,0) width 574: &quot;In the above editable region, you should see 'foo' in the bordered table and 'bar' outside it.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50763232expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 646x19
+          text run at (0,0) width 646: &quot;This tests caret painting before a table, you should see a caret before the table containing 'foo' above.&quot;
+      RenderBlock {DIV} at (0,36) size 784x28
+        RenderTable {TABLE} at (0,0) size 30x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 28x26
+            RenderTableRow {TR} at (0,2) size 28x22
+              RenderTableCell {TD} at (2,2) size 24x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x19
+                  text run at (1,1) width 22: &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50763233expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5076323-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 622x19
+          text run at (0,0) width 622: &quot;This tests caret painting after a table, you should see a caret after the table containing 'foo' above.&quot;
+      RenderBlock {DIV} at (0,36) size 784x28
+        RenderTable {TABLE} at (0,0) size 30x28 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 28x26
+            RenderTableRow {TR} at (0,2) size 28x22
+              RenderTableCell {TD} at (2,2) size 24x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x19
+                  text run at (1,1) width 22: &quot;foo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50812571expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 784x59
+          text run at (0,0) width 744: &quot;This tests for setting the selection at a position inside the document when the document node is non-editable and the&quot;
+          text run at (743,0) width 5: &quot; &quot;
+          text run at (0,20) width 257: &quot;document's body element *is* editable. &quot;
+          text run at (256,20) width 526: &quot;The expected behavior is to create a selection at [body, 0]. There should be a caret&quot;
+          text run at (781,20) width 3: &quot; &quot;
+          text run at (0,40) width 184: &quot;at the start of this paragraph.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection50812572expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5081257-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 784x39
+          text run at (0,0) width 525: &quot;This tests for setting the selection at a position inside a document in designMode. &quot;
+          text run at (524,0) width 256: &quot;You should see a caret at the start of the&quot;
+          text run at (779,0) width 5: &quot; &quot;
+          text run at (0,20) width 35: &quot;body.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5099303expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5099303-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5099303-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5099303-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 774x19
+          text run at (0,0) width 450: &quot;This tests extending an editable selection across non-editable content. &quot;
+          text run at (449,0) width 325: &quot;Everything in the region below should be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 8x19
+          text run at (0,0) width 8: &quot;x&quot;
+        RenderInline {SPAN} at (0,0) size 16x19
+          RenderText {#text} at (8,0) size 16x19
+            text run at (8,0) width 16: &quot;xx&quot;
+        RenderText {#text} at (24,0) size 8x19
+          text run at (24,0) width 8: &quot;x&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51317161expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 742x39
+          text run at (0,0) width 457: &quot;This tests clicking to place a caret in the padding of an editable region. &quot;
+          text run at (456,0) width 286: &quot;The eventSender clicks to the left of the first&quot;
+          text run at (0,20) width 665: &quot;paragraph in the left padding of the editable region and the caret should be at the start of that paragraph.&quot;
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 100x19
+            text run at (0,0) width 100: &quot;Paragraph One.&quot;
+        RenderTable {TABLE} at (26,46) size 91x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 89x28
+            RenderTableRow {TR} at (0,2) size 89x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x19
+                  text run at (2,2) width 4: &quot; &quot;
+              RenderTableCell {TD} at (12,2) size 75x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 71x19
+                  text run at (2,2) width 71: &quot;ToDo One.&quot;
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;Paragraph Two.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51317162expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 769x39
+          text run at (0,0) width 457: &quot;This tests clicking to place a caret in the padding of an editable region. &quot;
+          text run at (456,0) width 313: &quot;The eventSender clicks to the left of the ToDo in&quot;
+          text run at (0,20) width 537: &quot;the left padding of the editable region and the caret should be just before that ToDo.&quot;
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 100x19
+            text run at (0,0) width 100: &quot;Paragraph One.&quot;
+        RenderTable {TABLE} at (26,46) size 91x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 89x28
+            RenderTableRow {TR} at (0,2) size 89x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x19
+                  text run at (2,2) width 4: &quot; &quot;
+              RenderTableCell {TD} at (12,2) size 75x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 71x19
+                  text run at (2,2) width 71: &quot;ToDo One.&quot;
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;Paragraph Two.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51317163expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 767x39
+          text run at (0,0) width 457: &quot;This tests clicking to place a caret in the padding of an editable region. &quot;
+          text run at (456,0) width 311: &quot;The eventSender clicks in the left padding to the&quot;
+          text run at (0,20) width 504: &quot;left of the third paragraph and the caret should be at the start of that paragraph.&quot;
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 100x19
+            text run at (0,0) width 100: &quot;Paragraph One.&quot;
+        RenderTable {TABLE} at (26,46) size 91x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 89x28
+            RenderTableRow {TR} at (0,2) size 89x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x19
+                  text run at (2,2) width 4: &quot; &quot;
+              RenderTableCell {TD} at (12,2) size 75x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 71x19
+                  text run at (2,2) width 71: &quot;ToDo One.&quot;
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;Paragraph Two.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51317164expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5131716-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 768x39
+          text run at (0,0) width 457: &quot;This tests clicking to place a caret in the padding of an editable region. &quot;
+          text run at (456,0) width 312: &quot;The eventSender clicks in the bottom padding of&quot;
+          text run at (0,20) width 477: &quot;the editable region and the caret should be placed at the end of that region.&quot;
+      RenderBlock {DIV} at (0,56) size 784x122 [border: (1px solid #000000)]
+        RenderBlock {DIV} at (26,26) size 732x20
+          RenderText {#text} at (0,0) size 100x19
+            text run at (0,0) width 100: &quot;Paragraph One.&quot;
+        RenderTable {TABLE} at (26,46) size 91x30 [border: (1px solid #BBBBBB)]
+          RenderTableSection {TBODY} at (1,1) size 89x28
+            RenderTableRow {TR} at (0,2) size 89x24 [border: (1px solid #BBBBBB)]
+              RenderTableCell {TD} at (2,2) size 8x24 [border: (1px solid #BBBBBB)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 4x19
+                  text run at (2,2) width 4: &quot; &quot;
+              RenderTableCell {TD} at (12,2) size 75x24 [border: (1px solid #BBBBBB)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 71x19
+                  text run at (2,2) width 71: &quot;ToDo One.&quot;
+        RenderBlock {DIV} at (26,76) size 732x20
+          RenderText {#text} at (0,0) size 102x19
+            text run at (0,0) width 102: &quot;Paragraph Two.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51344expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/51344-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/51344-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/51344-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+Test for bug 51344: move left/right by character should not hang.
+
+Success
+Failure
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5136696expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5136696-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5136696-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5136696-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+FAIL (text field was not selected)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51951661expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests for a bug where extending a selection created with the mouse would blow it away before extending it.
+
+There should be six characters selected in this sentence on Mac and four characters selected on Win/Linux.
+Failure: Selected text was &quot;&quot; and should be &quot;should be s&quot;
+Failure: Selected text was &quot;&quot; and should be &quot;hould be &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection51951662expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5195166-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 665x19
+          text run at (0,0) width 665: &quot;This tests for a bug where selection change notifications would post the wrong proposed selected range.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 363x19
+          text run at (0,0) width 363: &quot;There should be five characters selected in this sentence.&quot;
+      RenderBlock {UL} at (0,72) size 784x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5232159expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5232159-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5232159-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5232159-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 769x39
+          text run at (0,0) width 769: &quot;This tests for a bug where autoscroll code would prevent text from being selected. To run manually create a selection by&quot;
+          text run at (0,20) width 573: &quot;clicking somewhere in the first sentence of the paragraph below and dragging downward.&quot;
+layer at (0,60) size 800x540
+  RenderBlock (positioned) {DIV} at (0,60) size 800x540
+layer at (0,60) size 800x100
+  RenderBlock (positioned) {DIV} at (0,0) size 800x100
+    RenderBlock {DIV} at (11,0) size 778x100
+      RenderText {#text} at (0,0) size 47x19
+        text run at (0,0) width 47: &quot;Lorem &quot;
+      RenderInline {SPAN} at (0,0) size 40x19
+        RenderText {#text} at (46,0) size 40x19
+          text run at (46,0) width 40: &quot;ipsum&quot;
+      RenderText {#text} at (85,0) size 772x99
+        text run at (85,0) width 687: &quot; dolor sit amet, consectetuer adipiscing elit. Integer vehicula accumsan massa. Quisque elementum. Cras id&quot;
+        text run at (0,20) width 741: &quot;neque a mi rutrum scelerisque. Nulla sed dui a massa sodales posuere. Nulla libero. Nulla posuere, felis id tincidunt&quot;
+        text run at (0,40) width 760: &quot;tincidunt, ipsum metus tristique risus, et convallis turpis elit eget massa. Nunc consectetuer dolor vel nunc. Cum sociis&quot;
+        text run at (0,60) width 771: &quot;natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque dapibus ante et nulla. Cras nec velit.&quot;
+        text run at (0,80) width 661: &quot;Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer ut tortor.&quot;
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection52343831expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 665x19
+          text run at (0,0) width 330: &quot;This tests moving forward by sentence boundaries. &quot;
+          text run at (329,0) width 336: &quot;The caret should be at the start of the third sentence.&quot;
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderText {#text} at (0,0) size 777x59
+          text run at (0,0) width 773: &quot;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et&quot;
+          text run at (772,0) width 5: &quot; &quot;
+          text run at (0,20) width 738: &quot;netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit.&quot;
+          text run at (737,20) width 5: &quot; &quot;
+          text run at (0,40) width 667: &quot;Vestibulum arcu lacus, blandit ac, condimentum sed, commodo in, arcu. Curabitur suscipit pede eu sem.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection52343832expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5234383-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 733x19
+          text run at (0,0) width 342: &quot;This tests moving backward by sentence boundaries. &quot;
+          text run at (341,0) width 392: &quot;The caret should be at the start of the second to last sentence.&quot;
+      RenderBlock {DIV} at (0,36) size 784x60
+        RenderText {#text} at (0,0) size 777x59
+          text run at (0,0) width 773: &quot;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et&quot;
+          text run at (772,0) width 5: &quot; &quot;
+          text run at (0,20) width 738: &quot;netus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ipsum. Phasellus tristique leo eu velit.&quot;
+          text run at (737,20) width 5: &quot; &quot;
+          text run at (0,40) width 667: &quot;Vestibulum arcu lacus, blandit ac, condimentum sed, commodo in, arcu. Curabitur suscipit pede eu sem.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5240265expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5240265-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5240265-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5240265-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 775x59
+          text run at (0,0) width 775: &quot;This tests to see that clicking on content outside of an editable region with -webkit-user-select: ignore doesn't remove the&quot;
+          text run at (0,20) width 476: &quot;selection from the editable region. To run it manually, click on the button. &quot;
+          text run at (475,20) width 298: &quot;The editable region should not be focused, but&quot;
+          text run at (0,40) width 246: &quot;the text inside of it should be selected.&quot;
+      RenderBlock (anonymous) at (0,76) size 784x24
+        RenderButton {INPUT} at (2,2) size 82x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (12,3) size 58x14
+            RenderText at (0,0) size 58x14
+              text run at (0,0) width 58: &quot;Click on me&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,100) size 784x20
+        RenderText {#text} at (0,0) size 182x19
+          text run at (0,0) width 182: &quot;This text should be selected.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection5333725expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5333725-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5333725-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5333725-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderInline {SPAN} at (0,0) size 32x19
+          RenderText {#text} at (0,0) size 32x19
+            text run at (0,0) width 32: &quot;0123&quot;
+        RenderText {#text} at (32,0) size 16x19
+          text run at (32,0) width 16: &quot;45&quot;
+        RenderInline {SPAN} at (0,0) size 32x19
+          RenderText {#text} at (48,0) size 32x19
+            text run at (48,0) width 32: &quot;6789&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection53544551expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests whether right clicking on a paragraph break in editable content selects it. The break should be selected on OS X, but not on Windows or Unix. To run it manually, right click on the paragraph break after the first paragraph below.
+
+The following paragraph break should be selected on OS X.
+
+Mac: None
+
+Win: None
+
+Unix: None
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection53544552expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5354455-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+layer at (8,8) size 612x151
+  RenderBody {BODY} at (8,8) size 612x152 [border: (1px solid #000000)]
+    RenderBlock {H1} at (6,6) size 600x38
+      RenderText {#text} at (0,1) size 449x36
+        text run at (0,1) width 449: &quot;Word selection on right click test&quot;
+    RenderBlock (anonymous) at (6,65) size 600x81
+      RenderText {#text} at (0,0) size 590x39
+        text run at (0,0) width 590: &quot;This tests to make sure that right clicking non-editable content only creates a word selection&quot;
+        text run at (0,20) width 129: &quot;for clicks over text. &quot;
+      RenderInline {SPAN} at (0,0) size 18x19
+        RenderText {#text} at (128,20) size 18x19
+          text run at (128,20) width 18: &quot;To&quot;
+      RenderText {#text} at (145,20) size 599x59
+        text run at (145,20) width 418: &quot; run manually, right click on text, and a word should be selected. &quot;
+        text run at (562,20) width 37: &quot;Right&quot;
+        text run at (0,40) width 589: &quot;click on the empty space outside and to the right of the black border, the selection should be&quot;
+        text run at (0,60) width 60: &quot;removed.&quot;
+      RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection58253501expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+CONSOLE MESSAGE: line 14: ReferenceError: Can't find variable: textInputController
+This tests for a bug where moving the caret left towards a non-editable pocket of an editable region would make the caret disappear. The caret should be just before the 'B' in &quot;Bob&quot;.
+Bob ; Sally
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection58253502expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/5825350-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+CONSOLE MESSAGE: line 14: ReferenceError: Can't find variable: textInputController
+This tests for a bug where moving the caret right towards a non-editable pocket of an editable region would make the caret disappear. The caret should be just after the 'y' in &quot;Sally&quot;.
+Bob ; Sally
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection6476expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/6476-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/6476-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/6476-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 250x40
+        RenderText {#text} at (0,0) size 209x19
+          text run at (0,0) width 209: &quot;Try to create a caret after this lin&quot;
+        RenderInline {SPAN} at (0,0) size 8x19
+          RenderText {#text} at (208,0) size 8x19
+            text run at (208,0) width 8: &quot;e&quot;
+        RenderText {#text} at (215,0) size 5x19
+          text run at (215,0) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 1x19
+        RenderText {#text} at (0,20) size 185x19
+          text run at (0,20) width 185: &quot;thisshouldbeonthesecondline&quot;
+      RenderBlock {HR} at (0,48) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,66) size 784x40
+        RenderText {#text} at (0,0) size 135x19
+          text run at (0,0) width 135: &quot;This is a testcase for &quot;
+        RenderInline {A} at (0,0) size 350x19 [color=#0000EE]
+          RenderText {#text} at (134,0) size 350x19
+            text run at (134,0) width 350: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=6476&quot;
+        RenderText {#text} at (483,0) size 765x39
+          text run at (483,0) width 9: &quot;. &quot;
+          text run at (491,0) width 274: &quot;Creating an upstream caret with the mouse&quot;
+          text run at (0,20) width 632: &quot;was impossible if the upstream and downstream carets were separated only by unrendered content.&quot;
+      RenderBlock {P} at (0,122) size 784x40
+        RenderText {#text} at (0,0) size 783x39
+          text run at (0,0) width 325: &quot;This test uses the eventSender to do mouse clicks. &quot;
+          text run at (324,0) width 459: &quot;To run it manually, click in the space after all the text on the first line in&quot;
+          text run at (0,20) width 170: &quot;the above editable region. &quot;
+          text run at (169,20) width 395: &quot;Clicking should create a caret after the first space after the 'e'.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection71521expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P &gt; BODY &gt; HTML &gt; #document to 0 of P &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 135x19
+          text run at (0,0) width 135: &quot;This is a testcase for &quot;
+        RenderInline {A} at (0,0) size 350x19 [color=#0000EE]
+          RenderText {#text} at (134,0) size 350x19
+            text run at (134,0) width 350: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=7152&quot;
+        RenderText {#text} at (483,0) size 784x59
+          text run at (483,0) width 9: &quot;. &quot;
+          text run at (491,0) width 261: &quot;Adding visible candidates after tables, at&quot;
+          text run at (751,0) width 5: &quot; &quot;
+          text run at (0,20) width 782: &quot;[table, numberOfChildren], threw RenderView::setSelection for a loop because it assumed the end of a selection would be&quot;
+          text run at (781,20) width 3: &quot; &quot;
+          text run at (0,40) width 144: &quot;inside an atomic node.&quot;
+      RenderBlock {HR} at (0,76) size 784x2 [border: (1px inset #000000)]
+      RenderTable {TABLE} at (0,86) size 164x56 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 162x54
+          RenderTableRow {TR} at (0,2) size 162x24
+            RenderTableCell {TD} at (2,2) size 158x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (2,2) size 154x19
+                text run at (2,2) width 154: &quot;This should be selected.&quot;
+          RenderTableRow {TR} at (0,28) size 162x24
+            RenderTableCell {TD} at (2,28) size 158x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              RenderText {#text} at (2,2) size 154x19
+                text run at (2,2) width 154: &quot;This should be selected.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselection71522expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/7152-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of BODY &gt; HTML &gt; #document to 1 of BODY &gt; HTML &gt; #document toDOMRange:range from 1 of BODY &gt; HTML &gt; #document to 341 of #text &gt; P &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 7 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderTable {TABLE} at (0,0) size 164x56 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 162x54
+          RenderTableRow {TR} at (0,2) size 162x24
+            RenderTableCell {TD} at (2,2) size 158x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (2,2) size 154x19
+                text run at (2,2) width 154: &quot;This should be selected.&quot;
+          RenderTableRow {TR} at (0,28) size 162x24
+            RenderTableCell {TD} at (2,28) size 158x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              RenderText {#text} at (2,2) size 154x19
+                text run at (2,2) width 154: &quot;This should be selected.&quot;
+      RenderBlock {HR} at (0,64) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,82) size 784x80
+        RenderText {#text} at (0,0) size 135x19
+          text run at (0,0) width 135: &quot;This is a testcase for &quot;
+        RenderInline {A} at (0,0) size 350x19 [color=#0000EE]
+          RenderText {#text} at (134,0) size 350x19
+            text run at (134,0) width 350: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=7152&quot;
+        RenderText {#text} at (483,0) size 784x79
+          text run at (483,0) width 9: &quot;. &quot;
+          text run at (491,0) width 261: &quot;Adding visible candidates after tables, at&quot;
+          text run at (751,0) width 5: &quot; &quot;
+          text run at (0,20) width 782: &quot;[table, numberOfChildren], threw RenderView::setSelection for a loop because it assumed the end of a selection would be&quot;
+          text run at (781,20) width 3: &quot; &quot;
+          text run at (0,40) width 148: &quot;inside an atomic node. &quot;
+          text run at (147,40) width 626: &quot;It didn't make the same assumption about start of a selection, but for good measure, we also test a&quot;
+          text run at (772,40) width 5: &quot; &quot;
+          text run at (0,60) width 300: &quot;selection that starts at a position before a table.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionaddRangeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/addRange-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/addRange-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/addRange-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 777x39
+          text run at (0,0) width 216: &quot;This tests Selection::addRange(). &quot;
+          text run at (215,0) width 562: &quot;It should have no effect if the range passed to it does not intersect the currently selected&quot;
+          text run at (0,20) width 44: &quot;range. &quot;
+          text run at (43,20) width 164: &quot;'3456' should be selected.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 72x19
+          text run at (0,0) width 72: &quot;123456789&quot;
+selection start: position 2 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 6 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionafterlinebreakexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-break-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-break-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-break-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Test for rdar://problem/5973313 REGRESSION (r32508): Down arrow doesn't change caret with non-user entered newlines in textareas.
+
+To test manually, click to the right of the first word on the first line to place the caret at the end of the line, then press the down arrow. The caret should move to the next (empty) line. Then click somewhere on that line. The caret should not stay there.
+
+Lorem
+
+ipsum
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionafterlinewrapexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-wrap-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-wrap-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/after-line-wrap-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderInline {B} at (0,0) size 306x19
+          RenderText {#text} at (0,0) size 306x19
+            text run at (0,0) width 306: &quot;Make sure that your window is small enough&quot;
+        RenderText {#text} at (305,0) size 777x39
+          text run at (305,0) width 472: &quot; so that 'don't select this line' and 'try to select just this line' appear on two&quot;
+          text run at (0,20) width 98: &quot;different lines. &quot;
+          text run at (97,20) width 623: &quot;The two phrases are actually in the same paragraph, there are just lots of spaces in between them.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 108x19
+          text run at (0,0) width 108: &quot;This is a test for &quot;
+        RenderInline {A} at (0,0) size 373x19 [color=#0000EE]
+          RenderText {#text} at (107,0) size 373x19
+            text run at (107,0) width 373: &quot;REGRESSION: Selection includes spaces that it shouldn't&quot;
+        RenderText {#text} at (479,0) size 768x39
+          text run at (479,0) width 289: &quot;. The test makes sure that a word that is right&quot;
+          text run at (0,20) width 291: &quot;after a line wrap can be selected successfully.&quot;
+      RenderBlock {P} at (0,112) size 784x0
+      RenderBlock {DIV} at (16,112) size 752x42 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 750x19
+          text run at (1,1) width 96: &quot;don't select me&quot;
+          text run at (96,1) width 655: &quot;                                                                                                                                                                                                                                                                                                                                                             &quot;
+        RenderInline {I} at (0,0) size 156x19
+          RenderText {#text} at (1,21) size 156x19
+            text run at (1,21) width 156: &quot;try to select just this text&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionanchorfocus1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests the anchorNode, anchorOffset, focusNode and focusOffset properties of the Selection object. These properties are part of Mozilla's Selection object API, and so their values should be consistent in both browsers.
+
+
+text
+Test Failed. Error was: Anchor ([object Text], 2) is incorrect.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionanchorfocus2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests the anchorNode, anchorOffset, focusNode and focusOffset properties of the Selection object. These properties are part of Mozilla's Selection object API, and so their values should be consistent in both browsers.
+
+
+text
+Anchor ([object Text], 0) is correct.
+Test Failed. Error was: Focus ([object Text], 0) is incorrect.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionanchorfocus3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/anchor-focus3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests the anchorNode, anchorOffset, focusNode and focusOffset properties of the Selection object. These properties are part of Mozilla's Selection object API, and so their values should be consistent in both browsers.
+
+
+text
+Anchor ([object Text], 4) is correct.
+Test Failed. Error was: Focus ([object Text], 4) is incorrect.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionblockcursorovertypemodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/block-cursor-overtype-mode-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/block-cursor-overtype-mode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/block-cursor-overtype-mode-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,156 @@
</span><ins>+This test checks that the cursor covers the next character to be overwritten in overtype mode instead of being painted as a caret (1px width bar)
+
+ABC
+ABC
+שדן
+שדן
+שדןABC
+שדןABC
+Verifying block cursor position and width for each position in 'ABC' in a ltr block
+getSelection().collapse(textNode, 0)
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 1)
+FAIL blockCursorStartPosition[0] &lt; blockCursorStartPosition[1] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 2)
+FAIL blockCursorStartPosition[1] &lt; blockCursorStartPosition[2] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 3)
+PASS blockCursor.width is 0
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+
+Verifying block cursor position and width for each position in 'ABC' in a rtl block
+getSelection().collapse(textNode, 0)
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 1)
+FAIL blockCursorStartPosition[0] &lt; blockCursorStartPosition[1] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 2)
+FAIL blockCursorStartPosition[1] &lt; blockCursorStartPosition[2] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 3)
+PASS blockCursor.width is 0
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+
+Verifying block cursor position and width for each position in 'שדן' in a ltr block
+getSelection().collapse(textNode, 0)
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 1)
+FAIL blockCursorStartPosition[0] &gt; blockCursorStartPosition[1] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 2)
+FAIL blockCursorStartPosition[1] &gt; blockCursorStartPosition[2] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 3)
+PASS blockCursor.width is 0
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+
+Verifying block cursor position and width for each position in 'שדן' in a rtl block
+getSelection().collapse(textNode, 0)
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 1)
+FAIL blockCursorStartPosition[0] &gt; blockCursorStartPosition[1] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 2)
+FAIL blockCursorStartPosition[1] &gt; blockCursorStartPosition[2] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 3)
+PASS blockCursor.width is 0
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+
+Verifying block cursor position and width for each position in 'שדןABC' in a ltr block
+getSelection().collapse(textNode, 0)
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 1)
+FAIL blockCursorStartPosition[0] &gt; blockCursorStartPosition[1] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 2)
+FAIL blockCursorStartPosition[1] &gt; blockCursorStartPosition[2] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 3)
+FAIL blockCursorStartPosition[2] &lt; blockCursorStartPosition[3] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 4)
+FAIL blockCursorStartPosition[3] &lt; blockCursorStartPosition[4] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 5)
+FAIL blockCursorStartPosition[4] &lt; blockCursorStartPosition[5] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+getSelection().collapse(textNode, 6)
+PASS blockCursor.width is 0
+FAIL internals.absoluteCaretBounds().width should be 1. Was 0.
+
+Verifying block cursor position and width for each position in 'שדןABC' in a rtl block
+getSelection().collapse(textNode, 0)
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 1)
+FAIL blockCursorStartPosition[0] &gt; blockCursorStartPosition[1] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 2)
+FAIL blockCursorStartPosition[1] &gt; blockCursorStartPosition[2] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 3)
+FAIL blockCursorStartPosition[2] &gt; blockCursorStartPosition[3] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 4)
+FAIL blockCursorStartPosition[3] &lt; blockCursorStartPosition[4] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 5)
+FAIL blockCursorStartPosition[4] &lt; blockCursorStartPosition[5] should be true. Was false.
+PASS getSelection().isCollapsed is true
+FAIL blockCursor.width &gt; 1 should be true. Was false.
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+getSelection().collapse(textNode, 6)
+PASS blockCursor.width is 0
+FAIL internals.absoluteCaretBounds().width should be 1. Was 2.
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionblockwithpositionedlastchildexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/block-with-positioned-lastchild-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/block-with-positioned-lastchild-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/block-with-positioned-lastchild-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+Click on the left of this line.
+Caret should NOT be placed in this line,
+FAIL - caret was not in the first line
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionblockquotecrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/blockquote-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/blockquote-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/blockquote-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+
+        &lt;div&gt;This test should not crash&lt;/div&gt;
+        &lt;blockquote type=&quot;cite&quot; id=&quot;qt&quot;&gt;triple click me! then hit enter
+            &lt;blockquote type=&quot;cite&quot;&gt;&lt;div style=&quot;min-height: 14px;&quot;&gt;&lt;/div&gt;&lt;/blockquote&gt;
+        &lt;/blockquote&gt;
+    
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretafterkeypressexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-after-keypress-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-after-keypress-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-after-keypress-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+This tests that 'input' event listener gets correct caret position after keypress.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS test.value is &quot;&quot;
+PASS test.selectionStart is 0
+PASS test.selectionEnd is 0
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretandfocusringexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-and-focus-ring-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-and-focus-ring-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-and-focus-ring-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: &quot;This tests that the caret and the focus halo are not displayed when the WebView is not focused (using the pixel output&quot;
+          text run at (0,20) width 160: &quot;from DumpRenderTree).&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 67x19
+          text run at (0,0) width 67: &quot;This is an &quot;
+        RenderInline {SPAN} at (0,0) size 51x19
+          RenderText {#text} at (66,0) size 51x19
+            text run at (66,0) width 51: &quot;editable&quot;
+        RenderText {#text} at (116,0) size 414x19
+          text run at (116,0) width 414: &quot; region. No caret or focus ring should appear in the pixel results.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretatbidiboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-at-bidi-boundary-expected.txt ( => )</h4>
<pre class="diff"><span>
<span class="info">Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-before-select-expected.txt
===================================================================
</span><del>--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-before-select-expected.txt                                (rev 0)
</del><ins>+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-before-select-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</ins><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x98 [border: (5px solid #FF0000)]
+        RenderMenuList {SELECT} at (39,39) size 53x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (6,3) size 41x14
+            RenderText at (0,0) size 21x14
+              text run at (0,0) width 21: &quot;One&quot;
+        RenderText {#text} at (94,38) size 27x19
+          text run at (94,38) width 27: &quot;blaa&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretbidifirstandlastlettersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-bidi-first-and-last-letters-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-bidi-first-and-last-letters-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-bidi-first-and-last-letters-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+CONSOLE MESSAGE: line 42: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
+This tests that clicking in a contenteditable div will set the caret in the right position for LTR/RTL text in a RTL/LTR block.
+
+Clicking the first letter of RTL text in a LTR block
+שדה בור
+Clicking the last letter of RTL text in a LTR block
+שדה בור
+Clicking the first letter of LTR text in a RTL block
+WebKitW
+Clicking the last letter of LTR text in a RTL block
+WebKitW
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretinemptyinline1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Bug 85793: Caret is not rendered in empty inline contenteditable elements
+
+This test verifies that an empty inline contenteditable element gets a valid caret rect.
+
+
+PASS caretRect.left is 8
+PASS caretRect.top is 160
+FAIL caretRect.width should be 1. Was 2.
+PASS caretRect.height is 20
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretinemptyinline2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-in-empty-inline-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Bug 85793: Caret is not rendered in empty inline contenteditable elements
+
+This test verifies that an empty inline contenteditable element, placed after another inline element, gets a valid caret rect.
+
+Previous span
+PASS caretRect.left is 268
+PASS caretRect.top is 180
+FAIL caretRect.width should be 1. Was 2.
+PASS caretRect.height is 20
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretltr2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for LTR text in a RTL block. To test&quot;
+          text run at (0,20) width 475: &quot;manually, click the right of the text. The caret should be on the right edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (116,11) size 74x23
+          text run at (116,11) width 74: &quot;WebKit2&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 39x19
+          text run at (0,0) width 39: &quot;PASS&quot;
+        RenderBR {BR} at (38,0) size 1x19
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretltr2leftexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-left-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-left-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-2-left-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for LTR text in a RTL block. To test&quot;
+          text run at (0,20) width 458: &quot;manually, click the left of the text. The caret should be on the left edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (116,11) size 74x23
+          text run at (116,11) width 74: &quot;WebKit2&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 215x19
+          text run at (0,0) width 215: &quot;FAIL: wrong offset 0, expected 7&quot;
+        RenderBR {BR} at (214,0) size 1x19
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretltrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for LTR text in a LTR block. To test&quot;
+          text run at (0,20) width 458: &quot;manually, click the left of the text. The caret should be on the left edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (11,11) size 74x23
+          text run at (11,11) width 74: &quot;WebKit2&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 39x19
+          text run at (0,0) width 39: &quot;PASS&quot;
+        RenderBR {BR} at (38,0) size 1x19
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretltrrightexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-right-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-right-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-ltr-right-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for LTR text in a LTR block. To test&quot;
+          text run at (0,20) width 475: &quot;manually, click the right of the text. The caret should be on the right edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (11,11) size 74x23
+          text run at (11,11) width 74: &quot;WebKit2&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 39x19
+          text run at (0,0) width 39: &quot;PASS&quot;
+        RenderBR {BR} at (38,0) size 1x19
+caret: position 7 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretmodeparagraphkeysnavigationexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-mode-paragraph-keys-navigation-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-mode-paragraph-keys-navigation-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-mode-paragraph-keys-navigation-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+This tests that arrow keys navigate through a paragraph as expected when in caret browsing mode, also with shift and ctrl modifiers.
+
+This tests that keys navigation through a paragraph work as expected when in caret mode, also with shift and ctrl modifiers.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS getSelection().baseOffset is 15
+FAIL getSelection().baseOffset should be 16. Was 15.
+PASS getSelection().baseOffset is 15
+PASS getSelection().baseOffset is 15
+FAIL getSelection().extentOffset should be 18. Was 15.
+PASS getSelection().baseOffset is 15
+FAIL getSelection().extentOffset should be 17. Was 15.
+FAIL getSelection().baseOffset should be 21. Was 15.
+FAIL getSelection().baseOffset should be 16. Was 15.
+FAIL getSelection().baseOffset should be 16. Was 15.
+FAIL getSelection().extentOffset should be 26. Was 15.
+FAIL getSelection().baseOffset should be 22. Was 15.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtl2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for RTL text in a RTL block. To test&quot;
+          text run at (0,20) width 475: &quot;manually, click the right of the text. The caret should be on the right edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (11,11) size 60x23
+          text run at (11,11) width 60 RTL: &quot;\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 39x19
+          text run at (0,0) width 39: &quot;PASS&quot;
+        RenderBR {BR} at (38,0) size 1x19
+caret: position 7 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtl2leftexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-left-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-left-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-2-left-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for RTL text in a LTR block. To test&quot;
+          text run at (0,20) width 458: &quot;manually, click the left of the text. The caret should be on the left edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (11,11) size 60x23
+          text run at (11,11) width 60 RTL: &quot;\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 215x19
+          text run at (0,0) width 215: &quot;FAIL: wrong offset 7, expected 0&quot;
+        RenderBR {BR} at (214,0) size 1x19
+caret: position 7 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for RTL text in a RTL block. To test&quot;
+          text run at (0,20) width 458: &quot;manually, click the left of the text. The caret should be on the left edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (130,11) size 60x23
+          text run at (130,11) width 60 RTL: &quot;\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 39x19
+          text run at (0,0) width 39: &quot;PASS&quot;
+        RenderBR {BR} at (38,0) size 1x19
+caret: position 7 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncaretrtlrightexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-right-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-right-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/caret-rtl-right-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x146
+  RenderBlock {HTML} at (0,0) size 800x146
+    RenderBody {BODY} at (8,16) size 784x122
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;This tests that clicking in a contenteditable div will set the caret in the right position for RTL text in a RTL block. To test&quot;
+          text run at (0,20) width 475: &quot;manually, click the right of the text. The caret should be on the right edge.&quot;
+      RenderBlock {DIV} at (0,56) size 201x46 [border: (1px solid #000000)]
+        RenderText {#text} at (130,11) size 60x23
+          text run at (130,11) width 60 RTL: &quot;\x{5E9}\x{5D3}\x{5D4} \x{5D1}\x{5D5}\x{5E8}&quot;
+      RenderBlock (anonymous) at (0,102) size 784x20
+        RenderText {#text} at (0,0) size 39x19
+          text run at (0,0) width 39: &quot;PASS&quot;
+        RenderBR {BR} at (38,0) size 1x19
+caret: position 0 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionclearselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/clear-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/clear-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/clear-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 777x39
+          text run at (0,0) width 777: &quot;This tests that window.getSelection().clear() clears the selection correctly. If this test is successful, this text should not be&quot;
+          text run at (0,20) width 56: &quot;selected.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionclickinfocusablelinkshouldnotclearselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/click-in-focusable-link-should-not-clear-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/click-in-focusable-link-should-not-clear-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/click-in-focusable-link-should-not-clear-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+Ensures that the selection is not cleared when the user does a mousedown on a mouse focusable link.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL String(window.getSelection()) should be Select. Was .
+FAIL String(window.getSelection()) should be Select. Was .
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionclickoutsideeditabledivexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/click-outside-editable-div-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/click-outside-editable-div-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/click-outside-editable-div-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Ensure that clicking in the margins around editable divs does not grant focus.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL Click @ 10, 10 caused innerdiv to focus!
+FAIL Click @ 170, 10 caused innerdiv to focus!
+FAIL Click @ 10, 170 caused innerdiv to focus!
+FAIL Click @ 70, 70 caused innerdiv to focus!
+FAIL Click @ 170, 70 caused innerdiv to focus!
+FAIL Click @ 270, 70 caused innerdiv to focus!
+FAIL Click @ 70, 170 caused innerdiv to focus!
+FAIL Click @ 270, 170 caused innerdiv to focus!
+FAIL Click @ 70, 270 caused innerdiv to focus!
+FAIL Click @ 170, 270 caused innerdiv to focus!
+FAIL Click @ 270, 270 caused innerdiv to focus!
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionclickstartoflineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/click-start-of-line-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/click-start-of-line-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/click-start-of-line-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 108x19
+          text run at (0,0) width 108: &quot;This is a test for &quot;
+        RenderInline {I} at (0,0) size 759x39
+          RenderInline {A} at (0,0) size 354x19 [color=#0000EE]
+            RenderText {#text} at (107,0) size 354x19
+              text run at (107,0) width 354: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=9978&quot;
+          RenderText {#text} at (460,0) size 759x39
+            text run at (460,0) width 5: &quot; &quot;
+            text run at (464,0) width 295: &quot;REGRESSION (r12949-r12988): Clicking the&quot;
+            text run at (0,20) width 424: &quot;first letter on a line places the caret at the end of the previous line&quot;
+        RenderText {#text} at (423,20) size 5x19
+          text run at (423,20) width 5: &quot;.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 748x19
+          text run at (0,0) width 564: &quot;To test interactively, click the left side of the W on the second line. The caret should be &quot;
+          text run at (563,0) width 185: &quot;move to the start of that line.&quot;
+      RenderBlock {HR} at (0,92) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,102) size 250x114
+        RenderText {#text} at (0,1) size 238x111
+          text run at (0,1) width 154: &quot;Alice in&quot;
+          text run at (153,1) width 13: &quot; &quot;
+          text run at (0,58) width 238: &quot;Wonderland&quot;
+caret: position 10 of child 0 {#text} of child 7 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncollapseselectioninbidiexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/collapse-selection-in-bidi-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/collapse-selection-in-bidi-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/collapse-selection-in-bidi-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This tests collapsing directionless selection on text in a block with the opposite text direction. To manually test, on Mac, select text below by mouse and use arrow keys (without pressing shift) to collapse the selection. The selection should collapse to the left if you pressed the left arrow key and to the right if you pressed the right arrow key.
+
+FAIL Selection is [anchorNode: [object Text](אבגדה) anchorOffset: 4 focusNode: [object Text](אבגדה) focusOffset: 4 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 3 focusNode: [object Text] focusOffset: 3
+FAIL Selection is [anchorNode: [object Text](אבגדה) anchorOffset: 2 focusNode: [object Text](אבגדה) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 3 focusNode: [object Text] focusOffset: 3
+FAIL Selection is [anchorNode: [object Text](hello) anchorOffset: 1 focusNode: [object Text](hello) focusOffset: 1 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 2 focusNode: [object Text] focusOffset: 2
+FAIL Selection is [anchorNode: [object Text](hello) anchorOffset: 3 focusNode: [object Text](hello) focusOffset: 3 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 2 focusNode: [object Text] focusOffset: 2
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncontainsboundariesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/contains-boundaries-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/contains-boundaries-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/contains-boundaries-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 55x19
+          text run at (0,0) width 55: &quot;Test for &quot;
+        RenderInline {I} at (0,0) size 754x39
+          RenderInline {A} at (0,0) size 306x19 [color=#0000EE]
+            RenderText {#text} at (54,0) size 306x19
+              text run at (54,0) width 306: &quot;http://bugs.webkit.org/show_bug.cgi?id=14347&quot;
+          RenderText {#text} at (359,0) size 754x39
+            text run at (359,0) width 5: &quot; &quot;
+            text run at (363,0) width 391: &quot;REGRESSION (r21291): Initiating a drag near the edge of a&quot;
+            text run at (0,20) width 132: &quot;selection deselects it&quot;
+        RenderText {#text} at (131,20) size 5x19
+          text run at (131,20) width 5: &quot;.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 334x19
+          text run at (0,0) width 334: &quot;Drag the selected letter W into the yellow rectangle.&quot;
+      RenderBlock {DIV} at (0,92) size 784x85
+        RenderText {#text} at (0,2) size 68x81
+          text run at (0,2) width 68: &quot;W&quot;
+      RenderBlock {DIV} at (0,177) size 784x85 [bgcolor=#FFFFCC]
+caret: position 0 of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncontenteditableclickinsideexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/contenteditable-click-inside-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/contenteditable-click-inside-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/contenteditable-click-inside-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {DIV} at (0,0) size 425x75 [bgcolor=#FFFF00]
+        RenderBlock {DIV} at (25,25) size 100x20 [bgcolor=#FFFFFF]
+      RenderBlock {P} at (0,91) size 784x40
+        RenderText {#text} at (0,0) size 747x39
+          text run at (0,0) width 747: &quot;This test clicks inside an editable div element, and must result in the element receiving focus. If the test succeeds the&quot;
+          text run at (0,20) width 216: &quot;element should have a focus ring.&quot;
+caret: position 0 of child 0 {DIV} of child 0 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncontextmenuontextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-on-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-on-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-on-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 24: TypeError: undefined is not an object (evaluating 'items.length')
+This test checks that the context menu is shown over a simple non-editable text.
+
+Lorem ipsum
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioncontextmenutextselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-text-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-text-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/context-menu-text-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This test checks that triggering the context menu selects/doesn't select as platform-appropriate.
+
+Lorem ipsum
+FAILURE: There should be a selection.
+SUCCESS
+SUCCESS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondesignmodenocaretexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/designmode-no-caret-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/designmode-no-caret-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/designmode-no-caret-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 778x59
+          text run at (0,0) width 778: &quot;This tests to see that a caret is placed inside an editable document that is entirely editable even when no caret is requested&quot;
+          text run at (0,20) width 122: &quot;programmatically. &quot;
+          text run at (121,20) width 191: &quot;We do this as a convenience. &quot;
+          text run at (311,20) width 425: &quot;Right now, we only do this convenience when a document's frame&quot;
+          text run at (0,40) width 443: &quot;becomes first responder or when a document's window becomes key.&quot;
+      RenderBlock {PRE} at (0,73) size 784x28
+        RenderText {#text} at (0,0) size 289x28
+          text run at (0,0) width 289: &quot;Test Failed - there should be a caret&quot;
+          text run at (288,0) width 1: &quot; &quot;
+          text run at (0,14) width 0: &quot; &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondirectionalityafterundoreplaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/directionality-after-undo-replace-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/directionality-after-undo-replace-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/directionality-after-undo-replace-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This tests WebKit preserves non-directional selection after unapplying replacement on Mac. To manually test on Mac,
+
+Select &quot;world&quot; by double-clicking the word
+Replace &quot;world&quot; by a character by pressing a key
+Undo
+Extend selection to the left
+&quot; world&quot; should be selected.
+
+hello worald WebKit
+FAIL - expected &quot; world&quot; but got &quot;a&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondisplaytabletextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/display-table-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/display-table-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/display-table-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderTable {DIV} at (0,0) size 355x20
+        RenderTableSection (anonymous) at (0,0) size 355x20
+          RenderTableRow (anonymous) at (0,0) size 355x20
+            RenderTableCell (anonymous) at (0,0) size 355x20 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 355x19
+                text run at (0,0) width 355: &quot;Only the third word in this sentence should be selected.&quot;
+selection start: position 9 of child 0 {#text} of child 1 {DIV} of body
+selection end:   position 14 of child 0 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickselectionwithdommutationexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/double-click-selection-with-dom-mutation-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/double-click-selection-with-dom-mutation-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/double-click-selection-with-dom-mutation-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+This test is for bug where selection vanishes when selection is created by Double-Click on text and then DOM is modified. Expected Output is that selected text should remain selected
+
+Before::
+| &quot;Double-click to select &quot;
+| &lt;span&gt;
+|   id=&quot;target&quot;
+|   &quot;→this←&quot;
+| &quot; text.&quot;
+
+After::
+| &quot;Double-click to select &quot;
+| &lt;span&gt;
+|   id=&quot;target&quot;
+|   &quot;→th&quot;
+|   &quot;&lt;#selection-caret&gt;is←&quot;
+| &quot; text.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickbesidecrspanexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-beside-cr-span-expected.txt ( => )</h4>
<pre class="diff"><span>
<span class="info">Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-crash-expected.txt
===================================================================
</span><del>--- trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-crash-expected.txt                                (rev 0)
</del><ins>+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</ins><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text &gt; PRE &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; PRE &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x587
+      RenderBlock {PRE} at (0,0) size 800x70
+        RenderText {#text} at (0,0) size 40x56
+          text run at (0,0) width 40: &quot;Test.&quot;
+          text run at (39,0) width 1: &quot; &quot;
+          text run at (0,14) width 40: &quot;Test.&quot;
+          text run at (39,14) width 1: &quot; &quot;
+          text run at (0,28) width 0: &quot; &quot;
+          text run at (0,42) width 0: &quot; &quot;
+        RenderText {#text} at (0,56) size 0x14
+          text run at (0,56) width 0: &quot; &quot;
+caret: position 5 of child 0 {#text} of child 1 {PRE} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickinlinefirstlastcontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-inline-first-last-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-inline-first-last-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-inline-first-last-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+Test to check if last and first word can be selected when they double-clicked (Bug 36359)
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL window.getSelection().toString() should be selectme1. Was .
+FAIL window.selectedByModify should be selectme1. Was .
+FAIL window.getSelection().toString() should be selectme2. Was .
+PASS window.selectedByModify is 'selectme2'
+FAIL window.getSelection().toString() should be selectme3. Was .
+PASS window.selectedByModify is 'selectme3'
+FAIL window.getSelection().toString() should be selectme4. Was .
+PASS window.selectedByModify is 'selectme4'
+FAIL window.getSelection().toString() should be selectme5. Was .
+PASS window.selectedByModify is 'selectme5'
+FAIL window.getSelection().toString() should be selectme6. Was .
+PASS window.selectedByModify is 'selectme6'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickjapanesetextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-japanese-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-japanese-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-japanese-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+This tests that double-clicking on Japanese text.
+
+例えばオーストラリア
+Failed for offset 55
+  Expected: オーストラリア
+  Actual: 
+Failed for offset 70
+  Expected: オーストラリア
+  Actual: 
+Failed for offset 85
+  Expected: オーストラリア
+  Actual: 
+Failed for offset 100
+  Expected: オーストラリア
+  Actual: 
+Failed for offset 115
+  Expected: オーストラリア
+  Actual: 
+Failed for offset 130
+  Expected: オーストラリア
+  Actual: 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondoubleclickwhitespaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-whitespace-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-whitespace-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/doubleclick-whitespace-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+This tests that double-clicking a word on the Windows platform selects the whitespace after the word.
+
+Doubleclickme     |END|
+Doubleclickme|END|
+Doubleclickme    |END|
+Doubleclickme
+   |(Should not have been extended into this line)|
+Doubleclickme      
+Doubleclickme                            |END|
+
+Failed test1
+  Expected: Doubleclickme     
+  Actual: 
+Failed test2
+  Expected: Doubleclickme
+  Actual: 
+Failed test3
+  Expected: Doubleclickme    
+  Actual: 
+Failed test4
+  Expected: Doubleclickme
+  Actual: 
+Failed test5
+  Expected: Doubleclickme    
+  Actual: 
+Failed test6
+  Expected: Doubleclickme                            
+  Actual: 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondraginiframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-in-iframe-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-in-iframe-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-in-iframe-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 773x39
+          text run at (0,0) width 554: &quot;This is an automatic pixel test. To test interactively, drag selected text onto the iframe &quot;
+          text run at (553,0) width 216: &quot;below and verify that a drag caret&quot;
+          text run at (768,0) width 5: &quot; &quot;
+          text run at (0,20) width 160: &quot;appears inside the frame.&quot;
+      RenderBlock (anonymous) at (0,56) size 784x152
+        RenderPartObject {IFRAME} at (0,0) size 302x152 [border: (1px solid #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134
+                RenderInline {SPAN} at (0,0) size 38x19
+                  RenderText {#text} at (0,0) size 38x19
+                    text run at (0,0) width 38: &quot;There&quot;
+                RenderText {#text} at (37,0) size 172x19
+                  text run at (37,0) width 172: &quot; should be a caret here --&gt; &quot;
+                RenderBR {BR} at (208,15) size 1x0
+                RenderText {#text} at (0,20) size 44x19
+                  text run at (0,20) width 44: &quot;See it?&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondragselect1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+ALERT: 0.1724137931034483
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 222x19
+          text run at (0,0) width 222: &quot;This tests for a drag select crasher.&quot;
+      RenderBlock {DIV} at (0,36) size 784x25
+        RenderInline {SPAN} at (0,0) size 66x19
+          RenderText {#text} at (0,1) size 66x19
+            text run at (0,1) width 66: &quot;Start here.&quot;
+        RenderText {#text} at (65,1) size 5x19
+          text run at (65,1) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (71,2) size 137x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+      RenderBlock {UL} at (0,77) size 784x0
+layer at (86,49) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
+caret: position 4 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondragselectrapidlyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-rapidly-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-rapidly-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-select-rapidly-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This test verifies that selection begins at the mouse-down position. Select rapidly inside the box blow. The first letter should be selected.
+
+The first part of this text should be selected.
+FAIL
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondragstarteventclientxyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-start-event-client-x-y-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-start-event-client-x-y-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-start-event-client-x-y-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+Test for WebKit bug 26723: clientX,Y , screenX , Y always (0, 0) in dragstart event
+
+DRAG ME!
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondragtextdelayexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-text-delay-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-text-delay-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-text-delay-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+On most platforms, if you click and move the mouse on selected text, it will always initiate a drag. On Mac, there must be a delay between the click and the mouse move before a drag starts. Otherwise, it will just change the selection.
+
+To manually test, select &quot;hello&quot; and rapidly drag. You should see &quot;hello world&quot; on Mac and &quot;worldhello&quot; on all other platforms.
+
+hello world
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiondragtocontenteditableiframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-to-contenteditable-iframe-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-to-contenteditable-iframe-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/drag-to-contenteditable-iframe-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x584
+      RenderBlock (anonymous) at (0,0) size 800x213
+        RenderPartObject {IFRAME} at (0,0) size 208x208 [border: (4px solid #000000)]
+          layer at (0,0) size 200x200
+            RenderView at (0,0) size 200x200
+          layer at (0,0) size 200x200
+            RenderBlock {HTML} at (0,0) size 200x200
+              RenderBody {BODY} at (8,8) size 184x184 [bgcolor=#FFFFE0]
+        RenderText {#text} at (208,193) size 4x19
+          text run at (208,193) width 4: &quot; &quot;
+        RenderImage {IMG} at (212,105) size 76x103
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {UL} at (0,229) size 800x20
+        RenderListItem {LI} at (40,0) size 760x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 294x19
+            text run at (0,0) width 294: &quot;Abe should be outside the frame and inside it.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioneditabledivclearonkeydownexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-div-clear-on-keydown-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-div-clear-on-keydown-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-div-clear-on-keydown-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+Tests behavior of code that clears the text from a focused editable div. 
+
+To run manually press any key to clear the text in the div.
+The key that was typed should replace the text in the editable div and div should still have the focus and a blinking caret.
+
+a
+FAIL: editable div content is '' and it should be 'a'
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioneditablehtmlelementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-html-element-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-html-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-html-element-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML &gt; #document to 2 of HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML &gt; #document to 2 of HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 1 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 77 of #text &gt; BODY &gt; HTML &gt; #document to 77 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 77 of #text &gt; BODY &gt; HTML &gt; #document to 77 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 153 of #text &gt; BODY &gt; HTML &gt; #document to 153 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderInline {SPAN} at (0,0) size 32x19
+        RenderText {#text} at (0,0) size 32x19
+          text run at (0,0) width 32: &quot;\x{9}&quot;
+      RenderText {#text} at (32,0) size 484x19
+        text run at (32,0) width 484: &quot;This tests to see where the selection is set when an html element is focused.&quot;
+      RenderBR {BR} at (515,15) size 1x0
+      RenderText {#text} at (0,20) size 753x39
+        text run at (0,20) width 529: &quot;We set it inside the body because we don't want to allow editing outside the body. &quot;
+        text run at (528,20) width 221: &quot;This test also does some editing to&quot;
+        text run at (748,20) width 5: &quot; &quot;
+        text run at (0,40) width 215: &quot;make sure it happens in the body.&quot;
+caret: position 153 of child 3 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioneditablelinksexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-links-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-links-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-links-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; A &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; A &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderText {#text} at (0,0) size 67x19
+        text run at (0,0) width 67: &quot;This is an &quot;
+      RenderInline {A} at (0,0) size 80x19 [color=#0000EE]
+        RenderText {#text} at (66,0) size 80x19
+          text run at (66,0) width 80: &quot;editable link&quot;
+      RenderText {#text} at (145,0) size 5x19
+        text run at (145,0) width 5: &quot;.&quot;
+caret: position 6 of child 0 {#text} of child 3 {A} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioneditablenoneditablecrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-non-editable-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-non-editable-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/editable-non-editable-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x50
+        RenderTable {TABLE} at (0,0) size 784x50 [border: (1px solid #AAAAAA)]
+          RenderTableSection {TBODY} at (1,1) size 782x48
+            RenderTableRow {TR} at (0,2) size 782x44
+              RenderTableCell {TD} at (2,2) size 778x44 [border: (1px solid #AAAAAA)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 765x39
+                  text run at (2,2) width 761: &quot;This tests for a Mail crasher that happened when a selection was created with one endpoint in non-editable content and&quot;
+                  text run at (762,2) width 5: &quot; &quot;
+                  text run at (2,22) width 183: &quot;the other in editable content.&quot;
+caret: position 0 of child 0 {TABLE} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionendofdocumentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/end-of-document-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/end-of-document-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/end-of-document-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,81 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x352
+        RenderBlock {DIV} at (0,0) size 784x316
+          RenderBlock {DIV} at (0,0) size 784x20
+            RenderText {#text} at (0,0) size 311x19
+              text run at (0,0) width 311: &quot;On Feb 1, 2006, at 7:37 PM, David Hyatt wrote:&quot;
+          RenderBlock (anonymous) at (0,20) size 784x20
+            RenderBR {BR} at (0,0) size 0x19
+          RenderBlock {BLOCKQUOTE} at (40,56) size 704x260 [color=#0000FF]
+            RenderBlock {DIV} at (0,0) size 704x100
+              RenderText {#text} at (0,0) size 449x19
+                text run at (0,0) width 449: &quot;While reworking images I ran into something that really concerns me.&quot;
+              RenderInline {SPAN} at (0,0) size 5x19
+                RenderText {#text} at (448,0) size 5x19
+                  text run at (448,0) width 5: &quot; &quot;
+              RenderText {#text} at (452,0) size 702x39
+                text run at (452,0) width 246: &quot;WebElementImageKey is a key added&quot;
+                text run at (697,0) width 5: &quot; &quot;
+                text run at (0,20) width 437: &quot;to the elementAtPoint dictionary and the key's value is an NSImage.&quot;
+              RenderInline {SPAN} at (0,0) size 4x19
+                RenderText {#text} at (437,20) size 4x19
+                  text run at (437,20) width 4: &quot; &quot;
+              RenderText {#text} at (441,20) size 263x19
+                text run at (441,20) width 263: &quot;Unfortunately we use CGImageRef now.&quot;
+              RenderInline {SPAN} at (0,0) size 1x19
+                RenderText {#text} at (703,20) size 1x19
+                  text run at (703,20) width 1: &quot; &quot;
+              RenderText {#text} at (0,40) size 701x59
+                text run at (0,40) width 697: &quot;What this means is that as you move the mouse around a web page we are aggressively mallocing NSImages&quot;
+                text run at (696,40) width 5: &quot; &quot;
+                text run at (0,60) width 674: &quot;that then move into our image cache and stay around until the CGImageRef goes away (which could be a&quot;
+                text run at (673,60) width 5: &quot; &quot;
+                text run at (0,80) width 71: &quot;long time).&quot;
+            RenderBlock {DIV} at (0,100) size 704x20
+              RenderBR {BR} at (0,0) size 0x19
+            RenderBlock {DIV} at (0,120) size 704x60
+              RenderText {#text} at (0,0) size 324x19
+                text run at (0,0) width 324: &quot;I think this is terrible but am not sure how to fix it.&quot;
+              RenderInline {SPAN} at (0,0) size 5x19
+                RenderText {#text} at (323,0) size 5x19
+                  text run at (323,0) width 5: &quot; &quot;
+              RenderText {#text} at (327,0) size 205x19
+                text run at (327,0) width 205: &quot;I assume this key is public API.&quot;
+              RenderInline {SPAN} at (0,0) size 5x19
+                RenderText {#text} at (531,0) size 5x19
+                  text run at (531,0) width 5: &quot; &quot;
+              RenderText {#text} at (535,0) size 674x39
+                text run at (535,0) width 135: &quot;Could we change the&quot;
+                text run at (669,0) width 5: &quot; &quot;
+                text run at (0,20) width 264: &quot;key's value to be a CGImageRef instead?&quot;
+              RenderInline {SPAN} at (0,0) size 5x19
+                RenderText {#text} at (263,20) size 5x19
+                  text run at (263,20) width 5: &quot; &quot;
+              RenderText {#text} at (267,20) size 664x39
+                text run at (267,20) width 393: &quot;Could we just eliminate the key in favor of a DOM extension&quot;
+                text run at (659,20) width 5: &quot; &quot;
+                text run at (0,40) width 227: &quot;method for accessing an NSImage?&quot;
+            RenderBlock {DIV} at (0,180) size 704x20
+              RenderBR {BR} at (0,0) size 0x19
+            RenderBlock {DIV} at (0,200) size 704x20
+              RenderText {#text} at (0,0) size 31x19
+                text run at (0,0) width 31: &quot;dave&quot;
+            RenderBlock {DIV} at (0,220) size 704x20
+              RenderText {#text} at (0,0) size 124x19
+                text run at (0,0) width 124: &quot;(hyatt@apple.com)&quot;
+            RenderBlock {DIV} at (0,240) size 704x20
+              RenderBR {BR} at (0,0) size 0x19
+        RenderBlock (anonymous) at (0,332) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 0 {BR} of child 6 {DIV} of child 2 {BLOCKQUOTE} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionexpandingselectionsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 770x39
+          text run at (0,0) width 424: &quot;This tests double clicking inside and at the end of an editable div. &quot;
+          text run at (423,0) width 347: &quot;The selection that is created should not extend outside&quot;
+          text run at (0,20) width 124: &quot;the editable region.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 212x19
+          text run at (0,0) width 212: &quot;This text is inside an editable div&quot;
+        RenderInline {SPAN} at (0,0) size 5x19
+          RenderText {#text} at (211,0) size 5x19
+            text run at (211,0) width 5: &quot; &quot;
+layer at (8,100) size 784x20
+  RenderBlock {P} at (0,92) size 784x20
+    RenderText {#text} at (0,0) size 155x19
+      text run at (0,0) width 155: &quot;This text is not editable.&quot;
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionexpandingselections2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/expanding-selections2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 770x39
+          text run at (0,0) width 424: &quot;This tests double clicking inside and at the end of an editable div. &quot;
+          text run at (423,0) width 347: &quot;The selection that is created should not extend outside&quot;
+          text run at (0,20) width 124: &quot;the editable region.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 186x19
+          text run at (0,0) width 186: &quot;This text is in an editable div&quot;
+        RenderInline {SPAN} at (0,0) size 5x19
+          RenderText {#text} at (185,0) size 5x19
+            text run at (185,0) width 5: &quot;.&quot;
+      RenderBlock (anonymous) at (0,76) size 784x20
+        RenderText {#text} at (0,0) size 249x19
+          text run at (0,0) width 249: &quot;This text is outside the editable region.&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendaftermouseselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-after-mouse-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-after-mouse-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-after-mouse-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+a bc 
+d ef 
+ghi
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 2
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 2 focusNode: [object Text] focusOffset: 1
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 2 focusNode: [object Text] focusOffset: 0
+FAIL Selection is [anchorNode: [object Text](bc) anchorOffset: 0 focusNode: [object Text]( ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 1 focusNode: [object Text] focusOffset: 0
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 0 focusNode: [object Text]( ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 1 focusNode: [object Text] focusOffset: 0
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 2
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 1
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 2
+FAIL Selection is [anchorNode: [object Text](bc) anchorOffset: 0 focusNode: [object Text]( ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 1
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 0 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object HTMLSpanElement] focusOffset: 4
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 2
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 1
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 2 isCollapsed: true] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 2
+FAIL Selection is [anchorNode: [object Text](bc) anchorOffset: 0 focusNode: [object Text]( ) focusOffset: 1 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 1
+FAIL Selection is [anchorNode: [object Text](a ) anchorOffset: 2 focusNode: [object Text](a ) focusOffset: 0 isCollapsed: false] should be at anchorNode: [object Text] anchorOffset: 0 focusNode: [object HTMLSpanElement] focusOffset: 4
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 114x28
+          RenderText {#text} at (14,15) size 114x28
+            text run at (14,15) width 14: &quot;f &quot;
+            text run at (27,15) width 31: &quot;oo &quot;
+            text run at (57,15) width 38: &quot;bar &quot;
+            text run at (94,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 14 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 252x248
+          RenderText {#text} at (14,95) size 11x28
+            text run at (14,95) width 11: &quot;a&quot;
+          RenderImage {IMG} at (24,14) size 77x103
+          RenderText {#text} at (100,95) size 47x28
+            text run at (100,95) width 47: &quot;new &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,205) size 66x28
+            text run at (14,205) width 66: &quot;nation &quot;
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (79,124) size 77x103
+          RenderText {#text} at (155,205) size 111x28
+            text run at (155,205) width 7: &quot; &quot;
+            text run at (161,205) width 105: &quot;conceived &quot;
+          RenderBR {BR} at (265,227) size 1x0
+          RenderText {#text} at (14,315) size 60x28
+            text run at (14,315) width 60: &quot;nation&quot;
+          RenderImage {IMG} at (73,234) size 77x103
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,190 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: 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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 660x88
+          RenderInline {I} at (0,0) size 116x28
+            RenderText {#text} at (14,15) size 116x28
+              text run at (14,15) width 21: &quot;F &quot;
+              text run at (34,15) width 96: &quot;and seven&quot;
+          RenderText {#text} at (129,15) size 64x28
+            text run at (129,15) width 64: &quot; years &quot;
+          RenderInline {B} at (0,0) size 28x28
+            RenderText {#text} at (192,15) size 28x28
+              text run at (192,15) width 28: &quot;as &quot;
+          RenderText {#text} at (219,15) size 660x58
+            text run at (219,15) width 111: &quot;our fathers &quot;
+            text run at (329,15) width 339: &quot;f upon this continent, a new nation,&quot;
+            text run at (667,15) width 7: &quot; &quot;
+            text run at (14,45) width 229: &quot;conceived    in Liberty, &quot;
+            text run at (242,45) width 387: &quot;and dedicated to the proposition that all &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,75) size 216x28
+            text run at (14,75) width 216: &quot;men are created equal.&quot;
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 5 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,94 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 252x248
+          RenderText {#text} at (14,95) size 11x28
+            text run at (14,95) width 11: &quot;a&quot;
+          RenderImage {IMG} at (24,14) size 77x103
+          RenderText {#text} at (100,95) size 47x28
+            text run at (100,95) width 47: &quot;new &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,205) size 66x28
+            text run at (14,205) width 66: &quot;nation &quot;
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (79,124) size 77x103
+          RenderText {#text} at (155,205) size 111x28
+            text run at (155,205) width 111: &quot; conceived &quot;
+          RenderBR {BR} at (265,227) size 1x0
+          RenderText {#text} at (14,315) size 60x28
+            text run at (14,315) width 60: &quot;nation&quot;
+          RenderImage {IMG} at (73,234) size 77x103
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 1 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,348 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: 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: 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: 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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 660x88
+          RenderInline {I} at (0,0) size 116x28
+            RenderText {#text} at (14,15) size 116x28
+              text run at (14,15) width 21: &quot;F &quot;
+              text run at (34,15) width 96: &quot;and seven&quot;
+          RenderText {#text} at (129,15) size 64x28
+            text run at (129,15) width 64: &quot; years &quot;
+          RenderInline {B} at (0,0) size 28x28
+            RenderText {#text} at (192,15) size 28x28
+              text run at (192,15) width 28: &quot;as &quot;
+          RenderText {#text} at (219,15) size 660x58
+            text run at (219,15) width 111: &quot;our fathers &quot;
+            text run at (329,15) width 339: &quot;f upon this continent, a new nation,&quot;
+            text run at (667,15) width 7: &quot; &quot;
+            text run at (14,45) width 229: &quot;conceived    in Liberty, &quot;
+            text run at (242,45) width 387: &quot;and dedicated to the proposition that all &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,75) size 216x28
+            text run at (14,75) width 216: &quot;men are created equal.&quot;
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbycharacter006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-character-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 1 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbysentence001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-sentence-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-sentence-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-sentence-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock {FRIJOLE} at (14,14) size 756x60
+          RenderBlock (anonymous) at (0,0) size 756x30
+            RenderText {#text} at (0,1) size 131x28
+              text run at (0,1) width 131: &quot;one two three&quot;
+            RenderInline {FRIJOLE} at (0,0) size 1x28
+              RenderText {#text} at (0,0) size 0x0
+          RenderBlock (anonymous) at (0,30) size 756x30
+            RenderBlock {DOODAD} at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 118x28
+                text run at (0,1) width 118: &quot;four five six&quot;
+          RenderBlock (anonymous) at (0,60) size 756x0
+            RenderInline {FRIJOLE} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {DOODAD} of child 1 {FRIJOLE} of child 1 {FRIJOLE} of child 1 {DIV} of body
+selection end:   position 13 of child 0 {#text} of child 1 {DOODAD} of child 1 {FRIJOLE} of child 1 {FRIJOLE} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbyword001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 32x28
+            text run at (0,1) width 32: &quot;foo&quot;
+          RenderInline {SPAN} at (0,0) size 17x28
+            RenderText {#text} at (31,1) size 17x28
+              text run at (31,1) width 17: &quot;\x{9}&quot;
+          RenderText {#text} at (48,1) size 31x28
+            text run at (48,1) width 31: &quot;bar&quot;
+selection start: position 0 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 3 of child 2 {#text} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendbyword002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-by-word-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,74 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 148x174 [border: (2px solid #FF0000)]
+        RenderBlock {UL} at (14,14) size 120x146
+          RenderListItem {LI} at (0,0) size 120x22
+            RenderListMarker at (-15,5) size 6x14: bullet
+            RenderInline (generated) at (0,0) size 15x26
+              RenderText {#text} at (5,-5) size 15x26
+                text run at (5,-5) width 15: &quot;\x{B7} &quot;
+            RenderText {#text} at (0,0) size 0x0
+            RenderInline {A} at (0,0) size 53x14 [color=#0000EE]
+              RenderText {#text} at (19,5) size 53x14
+                text run at (19,5) width 53: &quot;Appetizers&quot;
+          RenderListItem {LI} at (0,22) size 120x22
+            RenderListMarker at (-15,5) size 6x14: bullet
+            RenderInline (generated) at (0,0) size 15x26
+              RenderText {#text} at (5,-5) size 15x26
+                text run at (5,-5) width 15: &quot;\x{B7} &quot;
+            RenderText {#text} at (0,0) size 0x0
+            RenderInline {A} at (0,0) size 79x14 [color=#0000EE]
+              RenderText {#text} at (19,5) size 79x14
+                text run at (19,5) width 79: &quot;Soups &amp; Salads&quot;
+          RenderListItem {LI} at (0,44) size 120x36
+            RenderListMarker at (-15,5) size 6x14: bullet
+            RenderInline (generated) at (0,0) size 15x26
+              RenderText {#text} at (5,-5) size 15x26
+                text run at (5,-5) width 15: &quot;\x{B7} &quot;
+            RenderText {#text} at (0,0) size 0x0
+            RenderInline {A} at (0,0) size 77x28 [color=#0000EE]
+              RenderText {#text} at (19,5) size 77x28
+                text run at (19,5) width 71: &quot;Sandwiches &amp;&quot;
+                text run at (89,5) width 4: &quot; &quot;
+                text run at (16,19) width 40: &quot;Burgers&quot;
+          RenderListItem {LI} at (0,80) size 120x22
+            RenderListMarker at (-15,5) size 6x14: bullet
+            RenderInline (generated) at (0,0) size 15x26
+              RenderText {#text} at (5,-5) size 15x26
+                text run at (5,-5) width 15: &quot;\x{B7} &quot;
+            RenderText {#text} at (0,0) size 0x0
+            RenderInline {A} at (0,0) size 65x14 [color=#0000EE]
+              RenderText {#text} at (19,5) size 65x14
+                text run at (19,5) width 65: &quot;Steak &amp; Ribs&quot;
+          RenderListItem {LI} at (0,102) size 120x22
+            RenderListMarker at (-15,5) size 6x14: bullet
+            RenderInline (generated) at (0,0) size 15x26
+              RenderText {#text} at (5,-5) size 15x26
+                text run at (5,-5) width 15: &quot;\x{B7} &quot;
+            RenderText {#text} at (0,0) size 0x0
+            RenderInline {A} at (0,0) size 41x14 [color=#0000EE]
+              RenderText {#text} at (19,5) size 41x14
+                text run at (19,5) width 41: &quot;Seafood&quot;
+          RenderListItem {LI} at (0,124) size 120x22
+            RenderListMarker at (-15,5) size 6x14: bullet
+            RenderInline (generated) at (0,0) size 15x26
+              RenderText {#text} at (5,-5) size 15x26
+                text run at (5,-5) width 15: &quot;\x{B7} &quot;
+            RenderText {#text} at (0,0) size 0x0
+            RenderInline {A} at (0,0) size 41x14 [color=#0000EE]
+              RenderText {#text} at (19,5) size 41x14
+                text run at (19,5) width 41: &quot;Combos&quot;
+selection start: position 0 of child 0 {#text} of child 1 {A} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of body
+selection end:   position 13 of child 0 {#text} of child 1 {A} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendforwardbywordovernoneditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-forward-by-word-over-non-editable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-forward-by-word-over-non-editable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-forward-by-word-over-non-editable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL for LTR, selection is &quot;baz &quot; but should be &quot;baz&quot;
+FAIL for RTL, selection is &quot;שוּרה &quot; but should be &quot;שוּרה&quot;
+PASS for LTR-multi
+PASS for RTL-multi
+foo bar baz qux quux
+שוּרה שוּרה שוּרה שוּרה שוּרה
+foo bar baz baz baz qux quux
+שוּרה שוּרה שוּרה שוּרה שוּרה שוּרה שוּרה
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendinsidetransformsbackwardexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-backward-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-backward-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-backward-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x216
+  RenderBlock {HTML} at (0,0) size 800x216
+    RenderBody {BODY} at (8,8) size 784x200
+layer at (8,8) size 200x200
+  RenderBlock {DIV} at (0,0) size 200x200
+    RenderBlock {P} at (0,0) size 200x51
+      RenderText {#text} at (0,0) size 151x51
+        text run at (0,0) width 151: &quot;hello&quot;
+    RenderBlock {P} at (0,51) size 200x51
+      RenderText {#text} at (0,0) size 151x51
+        text run at (0,0) width 151: &quot;world&quot;
+selection start: position 3 of child 0 {#text} of child 1 {P} of child 1 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 3 {P} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendinsidetransformsforwardexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-forward-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-forward-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-inside-transforms-forward-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x216
+  RenderBlock {HTML} at (0,0) size 800x216
+    RenderBody {BODY} at (8,8) size 784x200
+layer at (8,8) size 200x200
+  RenderBlock {DIV} at (0,0) size 200x200
+    RenderBlock {P} at (0,0) size 200x51
+      RenderText {#text} at (0,0) size 151x51
+        text run at (0,0) width 151: &quot;hello&quot;
+    RenderBlock {P} at (0,51) size 200x51
+      RenderText {#text} at (0,0) size 151x51
+        text run at (0,0) width 151: &quot;world&quot;
+selection start: position 2 of child 0 {#text} of child 1 {P} of child 1 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 3 {P} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionafterdoubleclickexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-after-double-click-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-after-double-click-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-after-double-click-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+This tests modifying a selection created with a double click with shift arrow key.
+
+This test does not run interactively. It uses the event sender to do mouse clicks. To run it manually, double click on the blue &quot;g&quot;, then press shift-left-arrow twice. Then repeat those steps again. The selection should include the words &quot;a paragraph&quot; on mac and &quot;paragra&quot; on win/linux..
+
+This is a paragraph.
+
+FAILURE: The selected text is &quot;ra&quot; and should be &quot;a paragraph&quot;.
+FAILURE: The selected text is &quot;ra&quot; and should be &quot;paragra&quot;.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionbidiexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-bidi-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-bidi-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-bidi-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 369x19
+          text run at (0,0) width 369: &quot;The selection range in the red box should look like this:   &quot;
+        RenderInline {SPAN} at (0,0) size 98x19 [bgcolor=#AFDAFF]
+          RenderText {#text} at (368,0) size 98x19
+            text run at (368,0) width 27: &quot;abc &quot;
+            text run at (417,0) width 9: &quot;1&quot;
+            text run at (441,0) width 25 RTL: &quot;\x{5D0}\x{5D1}\x{5D2} &quot;
+        RenderText {#text} at (394,0) size 101x19
+          text run at (394,0) width 24 RTL: &quot; \x{5D3}\x{5D4}\x{5D5}&quot;
+          text run at (425,0) width 17: &quot;23&quot;
+          text run at (465,0) width 30: &quot; def &quot;
+        RenderBR {BR} at (494,15) size 1x0
+        RenderBR {BR} at (0,20) size 0x19
+      RenderBlock {DIV} at (0,40) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 183x28
+          RenderText {#text} at (14,15) size 183x28
+            text run at (14,15) width 40: &quot;abc &quot;
+            text run at (53,15) width 35 RTL: &quot; \x{5D3}\x{5D4}\x{5D5}&quot;
+            text run at (87,15) width 37: &quot;123&quot;
+            text run at (123,15) width 37 RTL: &quot;\x{5D0}\x{5D1}\x{5D2} &quot;
+            text run at (159,15) width 38: &quot; def&quot;
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 6 {DIV} of body
+selection end:   position 9 of child 0 {#text} of child 1 {SPAN} of child 6 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionenclosingblockmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+
+
+
+Extending by character
+Test 1, LTR:
+  Extending right: &quot;Lorem &quot;[(0,0), (0,1), (0,2), (0,3), (0,4), (0,5)], &quot;ipsum dolor sit&quot;[(0,0), (0,1), (0,2), (0,3), (0,4), (0,5), (0,6), (0,7), (0,8), (0,9), (0,10), (0,11), (0,12), (0,13), (0,14), (0,15)], &quot; amett&quot;[(0,1), (0,2), (0,3), (0,4), (0,5)]
+  Extending left:  &quot; amett&quot;[(0,6), (0,5), (0,4), (0,3), (0,2), (0,1)], &quot;ipsum dolor sit&quot;[(0,15), (0,14), (0,13), (0,12), (0,11), (0,10), (0,9), (0,8), (0,7), (0,6), (0,5), (0,4), (0,3), (0,2), (0,1), (0,0)], &quot;Lorem &quot;[(0,5), (0,4), (0,3), (0,2), (0,1)]
+
+
+
+
+
+Extending by word
+Test 1, LTR:
+  Extending right: &quot;Lorem &quot;[(0,0)], &quot;ipsum dolor sit&quot;[(0,0)], &quot;Lorem &quot;[(0,5), (0,0), (0,0), (0,0), (0,0)]
+  Extending left:  &quot;ipsum dolor sit&quot;[(0,0), (0,6), (0,12), (0,6), (0,0)], &quot;Lorem &quot;[(0,5)], &quot;ipsum dolor sit&quot;[(0,0)]
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionenclosingblockwinexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-win-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-win-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-enclosing-block-win-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+
+
+
+Extending by character
+Test 1, LTR:
+  Extending right: &quot;Lorem &quot;[(0,0), (0,1), (0,2), (0,3), (0,4), (0,5)], &quot;ipsum dolor sit&quot;[(0,0), (0,1), (0,2), (0,3), (0,4), (0,5), (0,6), (0,7), (0,8), (0,9), (0,10), (0,11), (0,12), (0,13), (0,14), (0,15)], &quot; amett&quot;[(0,1), (0,2), (0,3), (0,4), (0,5)]
+  Extending left:  &quot; amett&quot;[(0,6), (0,5), (0,4), (0,3), (0,2), (0,1)], &quot;ipsum dolor sit&quot;[(0,15), (0,14), (0,13), (0,12), (0,11), (0,10), (0,9), (0,8), (0,7), (0,6), (0,5), (0,4), (0,3), (0,2), (0,1), (0,0)], &quot;Lorem &quot;[(0,5), (0,4), (0,3), (0,2), (0,1)]
+
+
+
+
+
+Extending by word
+Test 1, LTR:
+  Extending right: &quot;Lorem &quot;[(0,0)], &quot;ipsum dolor sit&quot;[(0,0), (0,6)], &quot; amett&quot;[(0,1), (0,1), (0,6)]
+  Extending left:  &quot; amett&quot;[(0,6), (0,1), (0,1), (0,6), (0,6)]
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionhomeendexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-home-end-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-home-end-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-home-end-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,467 @@
</span><ins>+
+
+
+Extending by lineboundary
+Test 1, LTR:
+  Extending right:    &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,20)]
+  Extending left:     &quot;\nabc ABC xyz DEF def\n&quot;[(1,20)]
+  Extending forward:  &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,20)]
+  Extending backward: &quot;\nabc ABC xyz DEF def\n&quot;[(1,20)]
+Test 1, RTL:
+  Extending left:     &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,20)]
+  Extending right:    &quot;\nabc ABC xyz DEF def\n&quot;[(1,20)]
+  Extending forward:  &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,20)]
+  Extending backward: &quot;\nabc ABC xyz DEF def\n&quot;[(1,20)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 2, LTR:
+  Extending right:    &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,20)]
+  Extending left:     &quot;\nABC xyz DEF def GHI\n&quot;[(1,20)]
+  Extending forward:  &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,20)]
+  Extending backward: &quot;\nABC xyz DEF def GHI\n&quot;[(1,20)]
+Test 2, RTL:
+  Extending left:     &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,20)]
+  Extending right:    &quot;\nABC xyz DEF def GHI\n&quot;[(1,20)]
+  Extending forward:  &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,20)]
+  Extending backward: &quot;\nABC xyz DEF def GHI\n&quot;[(1,20)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 3, LTR:
+  Extending right:    &quot;\nABC DEF ABC\n&quot;[(1,1), (1,12)]
+  Extending left:     &quot;\nABC DEF ABC\n&quot;[(1,12)]
+  Extending forward:  &quot;\nABC DEF ABC\n&quot;[(1,1), (1,12)]
+  Extending backward: &quot;\nABC DEF ABC\n&quot;[(1,12)]
+Test 3, RTL:
+  Extending left:     &quot;\nABC DEF ABC\n&quot;[(1,1), (1,12)]
+  Extending right:    &quot;\nABC DEF ABC\n&quot;[(1,12)]
+  Extending forward:  &quot;\nABC DEF ABC\n&quot;[(1,1), (1,12)]
+  Extending backward: &quot;\nABC DEF ABC\n&quot;[(1,12)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 4, LTR:
+  Extending right:    &quot;\nabc efd dabeb\n&quot;[(1,1), (1,14)]
+  Extending left:     &quot;\nabc efd dabeb\n&quot;[(1,14)]
+  Extending forward:  &quot;\nabc efd dabeb\n&quot;[(1,1), (1,14)]
+  Extending backward: &quot;\nabc efd dabeb\n&quot;[(1,14)]
+Test 4, RTL:
+  Extending left:     &quot;\nabc efd dabeb\n&quot;[(1,1), (1,14)]
+  Extending right:    &quot;\nabc efd dabeb\n&quot;[(1,14)]
+  Extending forward:  &quot;\nabc efd dabeb\n&quot;[(1,1), (1,14)]
+  Extending backward: &quot;\nabc efd dabeb\n&quot;[(1,14)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 5, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending left:     &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+Test 5, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending right:    &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 6, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending left:     &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+Test 6, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending right:    &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 7, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending left:     &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+Test 7, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending right:    &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 8, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending left:     &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+Test 8, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending right:    &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 9, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending left:     &quot;Lorem &quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending backward: &quot;Lorem &quot;[(0,5)]
+Test 9, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending right:    &quot;Lorem &quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending backward: &quot;Lorem &quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 10, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending left:     &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+Test 10, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending right:    &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 11, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot;ipsum dolor&quot;[(0,11)]
+  Extending left:     &quot;ipsum dolor&quot;[(0,11)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot;ipsum dolor&quot;[(0,11)]
+  Extending backward: &quot;ipsum dolor&quot;[(0,11)]
+Test 11, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot;ipsum dolor&quot;[(0,11)]
+  Extending right:    &quot;ipsum dolor&quot;[(0,11)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot;ipsum dolor&quot;[(0,11)]
+  Extending backward: &quot;ipsum dolor&quot;[(0,11)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 12, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending left:     &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+Test 12, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending right:    &quot; amet&quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0)], &quot; amet&quot;[(0,5)]
+  Extending backward: &quot; amet&quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 13, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending left:     &quot;Lorem &quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending backward: &quot;Lorem &quot;[(0,5)]
+Test 13, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending right:    &quot;Lorem &quot;[(0,5)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,5)]
+  Extending backward: &quot;Lorem &quot;[(0,5)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 14, LTR:
+  Extending right:    &quot;\n Just\n &quot;[(2,2)], &quot;\n BFDX\n&quot;[(2,6)]
+  Extending left:     &quot;\n BFDX\n&quot;[(2,6)]
+  Extending forward:  &quot;\n Just\n &quot;[(2,2)], &quot;\n BFDX\n&quot;[(2,6)]
+  Extending backward: &quot;\n BFDX\n&quot;[(2,6)]
+Test 14, RTL:
+  Extending left:     &quot;\n Just\n &quot;[(2,2)], &quot;\n BFDX\n&quot;[(2,6)]
+  Extending right:    &quot;\n BFDX\n&quot;[(2,6)]
+  Extending forward:  &quot;\n Just\n &quot;[(2,2)], &quot;\n BFDX\n&quot;[(2,6)]
+  Extending backward: &quot;\n BFDX\n&quot;[(2,6)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 15, LTR:
+  Extending right:    &quot;\n Just\n &quot;[(2,2)], &quot;\n ever\n&quot;[(2,6)]
+  Extending left:     &quot;\n ever\n&quot;[(2,6)]
+  Extending forward:  &quot;\n Just\n &quot;[(2,2)], &quot;\n ever\n&quot;[(2,6)]
+  Extending backward: &quot;\n ever\n&quot;[(2,6)]
+Test 15, RTL:
+  Extending left:     &quot;\n Just\n &quot;[(2,2)], &quot;\n ever\n&quot;[(2,6)]
+  Extending right:    &quot;\n ever\n&quot;[(2,6)]
+  Extending forward:  &quot;\n Just\n &quot;[(2,2)], &quot;\n ever\n&quot;[(2,6)]
+  Extending backward: &quot;\n ever\n&quot;[(2,6)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 16, LTR:
+  Extending right:    &quot;car means ABC.&quot;[(0,0), (0,14)]
+  Extending left:     &quot;car means ABC.&quot;[(0,14)]
+  Extending forward:  &quot;car means ABC.&quot;[(0,0), (0,14)]
+  Extending backward: &quot;car means ABC.&quot;[(0,14)]
+Test 16, RTL:
+  Extending left:     &quot;car means ABC.&quot;[(0,0), (0,14)]
+  Extending right:    &quot;car means ABC.&quot;[(0,14)]
+  Extending forward:  &quot;car means ABC.&quot;[(0,0), (0,14)]
+  Extending backward: &quot;car means ABC.&quot;[(0,14)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 17, LTR:
+  Extending right:    &quot;᪜car DEF ABC.᪝&quot;[(0,0), (0,14)]
+  Extending left:     &quot;᪜car DEF ABC.᪝&quot;[(0,14)]
+  Extending forward:  &quot;᪜car DEF ABC.᪝&quot;[(0,0), (0,14)]
+  Extending backward: &quot;᪜car DEF ABC.᪝&quot;[(0,14)]
+Test 17, RTL:
+  Extending left:     &quot;᪜car DEF ABC.᪝&quot;[(0,0), (0,14)]
+  Extending right:    &quot;᪜car DEF ABC.᪝&quot;[(0,14)]
+  Extending forward:  &quot;᪜car DEF ABC.᪝&quot;[(0,0), (0,14)]
+  Extending backward: &quot;᪜car DEF ABC.᪝&quot;[(0,14)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 18, LTR:
+  Extending right:    &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,0), (0,24)]
+  Extending left:     &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,24)]
+  Extending forward:  &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,0), (0,24)]
+  Extending backward: &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,24)]
+Test 18, RTL:
+  Extending left:     &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,0), (0,24)]
+  Extending right:    &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,24)]
+  Extending forward:  &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,0), (0,24)]
+  Extending backward: &quot;he said &quot;᪜car DEF ABC᪝.&quot;&quot;[(0,24)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 19, LTR:
+  Extending right:    &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,0), (0,40)]
+  Extending left:     &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,40)]
+  Extending forward:  &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,0), (0,40)]
+  Extending backward: &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,40)]
+Test 19, RTL:
+  Extending left:     &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,0), (0,40)]
+  Extending right:    &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,40)]
+  Extending forward:  &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,0), (0,40)]
+  Extending backward: &quot;GHI JKL MNO '᪛he said &quot;᪜car DEF ABC᪝&quot;᪝'?&quot;[(0,40)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 20, LTR:
+  Extending right:    &quot;ABC abc DEF&quot;[(0,0), (0,11)]
+  Extending left:     &quot;ABC abc DEF&quot;[(0,11)]
+  Extending forward:  &quot;ABC abc DEF&quot;[(0,0), (0,11)]
+  Extending backward: &quot;ABC abc DEF&quot;[(0,11)]
+Test 20, RTL:
+  Extending left:     &quot;ABC abc DEF&quot;[(0,0), (0,11)]
+  Extending right:    &quot;ABC abc DEF&quot;[(0,11)]
+  Extending forward:  &quot;ABC abc DEF&quot;[(0,0), (0,11)]
+  Extending backward: &quot;ABC abc DEF&quot;[(0,11)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 21, LTR:
+  Extending right:    &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending left:     &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+  Extending forward:  &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending backward: &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+Test 21, RTL:
+  Extending left:     &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending right:    &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+  Extending forward:  &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending backward: &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 22, LTR:
+  Extending right:    &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending left:     &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+  Extending forward:  &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending backward: &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+Test 22, RTL:
+  Extending left:     &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending right:    &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+  Extending forward:  &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,0), (0,8)]
+  Extending backward: &quot;abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg &quot;[(0,8)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendselectionwordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-selection-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,175 @@
</span><ins>+
+
+
+
+
+Extending by word
+Test 1, LTR:
+  Extending right:    &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending left:     &quot;\nabc ABC xyz DEF def\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending backward: &quot;\nabc ABC xyz DEF def\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+Test 1, RTL:
+  Extending left:     &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending right:    &quot;\nabc ABC xyz DEF def\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nabc ABC xyz DEF def\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending backward: &quot;\nabc ABC xyz DEF def\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 2, LTR:
+  Extending right:    &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending left:     &quot;\nABC xyz DEF def GHI\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending backward: &quot;\nABC xyz DEF def GHI\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+Test 2, RTL:
+  Extending left:     &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending right:    &quot;\nABC xyz DEF def GHI\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nABC xyz DEF def GHI\n&quot;[(1,1), (1,5), (1,9), (1,13), (1,17), (1,20)]
+  Extending backward: &quot;\nABC xyz DEF def GHI\n&quot;[(1,20), (1,17), (1,13), (1,9), (1,5), (1,1)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 3, LTR:
+  Extending right:    &quot;\nABC DEF ABC\n&quot;[(1,1), (1,5), (1,9), (1,12)]
+  Extending left:     &quot;\nABC DEF ABC\n&quot;[(1,12), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nABC DEF ABC\n&quot;[(1,1), (1,5), (1,9), (1,12)]
+  Extending backward: &quot;\nABC DEF ABC\n&quot;[(1,12), (1,9), (1,5), (1,1)]
+Test 3, RTL:
+  Extending left:     &quot;\nABC DEF ABC\n&quot;[(1,1), (1,5), (1,9), (1,12)]
+  Extending right:    &quot;\nABC DEF ABC\n&quot;[(1,12), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nABC DEF ABC\n&quot;[(1,1), (1,5), (1,9), (1,12)]
+  Extending backward: &quot;\nABC DEF ABC\n&quot;[(1,12), (1,9), (1,5), (1,1)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 4, LTR:
+  Extending right:    &quot;\nabc efd dabeb\n&quot;[(1,1), (1,5), (1,9), (1,14)]
+  Extending left:     &quot;\nabc efd dabeb\n&quot;[(1,14), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nabc efd dabeb\n&quot;[(1,1), (1,5), (1,9), (1,14)]
+  Extending backward: &quot;\nabc efd dabeb\n&quot;[(1,14), (1,9), (1,5), (1,1)]
+Test 4, RTL:
+  Extending left:     &quot;\nabc efd dabeb\n&quot;[(1,1), (1,5), (1,9), (1,14)]
+  Extending right:    &quot;\nabc efd dabeb\n&quot;[(1,14), (1,9), (1,5), (1,1)]
+  Extending forward:  &quot;\nabc efd dabeb\n&quot;[(1,1), (1,5), (1,9), (1,14)]
+  Extending backward: &quot;\nabc efd dabeb\n&quot;[(1,14), (1,9), (1,5), (1,1)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 5, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending left:     &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+Test 5, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending right:    &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 6, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending left:     &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+Test 6, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending right:    &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 7, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending left:     &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+Test 7, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending right:    &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+Test 8, LTR:
+  Extending right:    &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending left:     &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+Test 8, RTL:
+  Extending left:     &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending right:    &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+  Extending forward:  &quot;Lorem &quot;[(0,0), (0,6)], &quot;ipsum dolor sit&quot;[(0,6), (0,12)], &quot; amet&quot;[(0,1), (0,5)]
+  Extending backward: &quot; amet&quot;[(0,5), (0,1)], &quot;ipsum dolor sit&quot;[(0,12), (0,6)], &quot;Lorem &quot;[(0,6), (0,0)]
+
+
+  validating ltrRight and ltrLeft
+  validating ltrRight and ltrForward
+  validating ltrForward and rtlForward
+  validating ltrLeft and ltrBackward
+  validating ltrBackward and rtlBackward
+  validating ltrRight and rtlLeft
+  validating ltrLeft and rtlRight
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionextendtolineboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-to-line-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-to-line-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/extend-to-line-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+PASS for LTR
+FAIL for RTL, selection is '' but should be 'שוּרה שוּרה שוּרה '
+
+the quick brown fox jumps the quick brown fox jumps the quick brown fox jumps
+שוּרה שוּרה שוּרה שוּרה שוּרה שוּרה שוּרה שוּרה שוּרה
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionfakedoubleclickexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-doubleclick-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-doubleclick-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-doubleclick-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x600
+      RenderBlock {DIV} at (0,0) size 800x20
+        RenderText {#text} at (0,0) size 199x19
+          text run at (0,0) width 199: &quot;Select me, select me, select me&quot;
+caret: position 1 of child 0 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionfakedragexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-drag-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-drag-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/fake-drag-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Select me, select me, select me
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionfindyensignandbackslashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/find-yensign-and-backslash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/find-yensign-and-backslash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/find-yensign-and-backslash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+\-in-body
+   
+Results
+
+We can find a backslash in EUC-JP page by finding a yen sign: PASS
+We can find a backslash in EUC-JP text control by finding a yen sign: FAIL
+We can find a backslash in Shift_JIS page by finding a yen sign: PASS
+We can find a backslash in Shift_JIS text control by finding a yen sign: FAIL
+We can find a backslash in ISO-2022-JP page by finding a yen sign: PASS
+We can find a backslash in ISO-2022-JP text control by finding a yen sign: FAIL
+We can NOT find a backslash in UTF8 page by finding a yen sign: PASS
+We can NOT find a backslash in UTF8 text control by finding a yen sign: PASS
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionfocusbodyexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/focus-body-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/focus-body-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/focus-body-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderText {#text} at (0,0) size 448x19
+        text run at (0,0) width 225: &quot;This test focuses an editable body. &quot;
+        text run at (224,0) width 224: &quot;Its contents should not be selected.&quot;
+      RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionfocus_editable_htmlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/focus_editable_html-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/focus_editable_html-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/focus_editable_html-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML &gt; #document to 2 of HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML &gt; #document to 2 of HTML &gt; #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 9 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 2008x2096
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x2096
+  RenderBlock {HTML} at (0,0) size 800x2096
+    RenderBody {BODY} at (8,8) size 784x2080
+      RenderBlock (anonymous) at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 595x19
+          text run at (0,0) width 595: &quot;This test makes sure that we don't scroll unnecessarily to reveal an editable HTML Element. &quot;
+        RenderBR {BR} at (594,15) size 1x0
+        RenderText {#text} at (0,20) size 269x19
+          text run at (0,20) width 269: &quot;If the document doesn't scroll, test passes.&quot;
+        RenderBR {BR} at (268,35) size 1x0
+        RenderInline {B} at (0,0) size 538x19
+          RenderText {#text} at (0,40) size 538x19
+            text run at (0,40) width 538: &quot;This demonstrates a bug: normally, focusing an element will select its contents.&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,60) size 2000x2000
+      RenderBlock (anonymous) at (0,2060) size 784x20
+        RenderText {#text} at (0,0) size 245x19
+          text run at (0,0) width 245: &quot;If the document scrolls here, test fails.&quot;
+caret: position 1 of child 0 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionhomeendexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/home-end-expected.txt ( => )</h4>
<pre class="diff"><span>
<span class="info">Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/iframe-expected.txt
===================================================================
</span><del>--- trunk/LayoutTests/platform/ios-simulator/editing/selection/iframe-expected.txt                                (rev 0)
</del><ins>+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/iframe-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</ins><span class="lines">@@ -0,0 +1,254 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: 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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 760x39
+          text run at (0,0) width 285: &quot;This tests caret movement across an iframe. &quot;
+          text run at (284,0) width 476: &quot;The caret shouldn't enter the iframe as the user arrows across it (unless we&quot;
+          text run at (0,20) width 199: &quot;decide later that we want it to).&quot;
+      RenderBlock {DIV} at (0,56) size 784x207
+        RenderBlock {DIV} at (0,0) size 784x207
+          RenderText {#text} at (0,187) size 51x19
+            text run at (0,187) width 51: &quot;iframe: &quot;
+          RenderPartObject {IFRAME} at (50,0) size 403x202 [border: (1px solid #000000)]
+            layer at (0,0) size 400x214
+              RenderView at (0,0) size 400x200
+            layer at (0,0) size 400x214
+              RenderBlock {HTML} at (0,0) size 400x214
+                RenderBody {BODY} at (8,8) size 384x198
+                  RenderBlock {P} at (0,0) size 384x100
+                    RenderText {#text} at (0,0) size 375x99
+                      text run at (0,0) width 324: &quot;This tests caret movement through an inline table. &quot;
+                      text run at (323,0) width 39: &quot;There&quot;
+                      text run at (0,20) width 375: &quot;should be visual positions before and after the inline table,&quot;
+                      text run at (0,40) width 146: &quot;as if it were an image. &quot;
+                      text run at (145,40) width 221: &quot;The caret shouldn't skip across the&quot;
+                      text run at (0,60) width 356: &quot;table, but should enter it (unless we later decide that we&quot;
+                      text run at (0,80) width 163: &quot;don't want this behavior).&quot;
+                  RenderBlock {DIV} at (0,116) size 384x82
+                    RenderBlock {DIV} at (0,0) size 384x82
+                      RenderText {#text} at (0,10) size 83x19
+                        text run at (0,10) width 83: &quot;Inline Table:&quot;
+                      RenderTable {TABLE} at (82,0) size 136x82 [border: (1px outset #808080)]
+                        RenderTableSection {TBODY} at (1,1) size 133x80
+                          RenderTableRow {TR} at (0,2) size 133x24
+                            RenderTableCell {TD} at (2,2) size 44x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 27x19
+                                text run at (2,2) width 27: &quot;One&quot;
+                            RenderTableCell {TD} at (48,2) size 39x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 30x19
+                                text run at (2,2) width 30: &quot;Two&quot;
+                            RenderTableCell {TD} at (89,2) size 42x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 38x19
+                                text run at (2,2) width 38: &quot;Three&quot;
+                          RenderTableRow {TR} at (0,28) size 133x24
+                            RenderTableCell {TD} at (2,28) size 44x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 31x19
+                                text run at (2,2) width 31: &quot;Four&quot;
+                            RenderTableCell {TD} at (48,28) size 39x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 29x19
+                                text run at (2,2) width 29: &quot;Five&quot;
+                            RenderTableCell {TD} at (89,28) size 42x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 22x19
+                                text run at (2,2) width 22: &quot;Six&quot;
+                          RenderTableRow {TR} at (0,54) size 133x24
+                            RenderTableCell {TD} at (2,54) size 44x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 40x19
+                                text run at (2,2) width 40: &quot;Seven&quot;
+                            RenderTableCell {TD} at (48,54) size 39x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 35x19
+                                text run at (2,2) width 35: &quot;Eight&quot;
+                            RenderTableCell {TD} at (89,54) size 42x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                              RenderText {#text} at (2,2) size 32x19
+                                text run at (2,2) width 32: &quot;Nine&quot;
+                      RenderText {#text} at (217,10) size 67x19
+                        text run at (217,10) width 67: &quot;The End...&quot;
+          RenderText {#text} at (452,187) size 67x19
+            text run at (452,187) width 67: &quot; the end ...&quot;
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionimagebeforelinebreakexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/image-before-linebreak-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/image-before-linebreak-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/image-before-linebreak-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 349x19
+          text run at (0,0) width 349: &quot;Only the line break after the image should be selected.&quot;
+      RenderBlock {HR} at (0,36) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,46) size 784x123
+        RenderImage {IMG} at (0,0) size 76x103
+        RenderBR {BR} at (76,103) size 0x0
+        RenderText {#text} at (0,103) size 22x19
+          text run at (0,103) width 22: &quot;foo&quot;
+selection start: position 0 of child 1 {BR} of child 4 {DIV} of body
+selection end:   position 1 of child 1 {BR} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioninlineclosestleafchildexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-closest-leaf-child-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-closest-leaf-child-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-closest-leaf-child-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 55x19
+          text run at (0,0) width 55: &quot;Test for &quot;
+        RenderInline {I} at (0,0) size 740x39
+          RenderInline {A} at (0,0) size 306x19 [color=#0000EE]
+            RenderText {#text} at (54,0) size 306x19
+              text run at (54,0) width 306: &quot;http://bugs.webkit.org/show_bug.cgi?id=14911&quot;
+          RenderText {#text} at (359,0) size 740x39
+            text run at (359,0) width 5: &quot; &quot;
+            text run at (363,0) width 377: &quot;REGRESSION: Clicking in pasted text doesn't position the&quot;
+            text run at (0,20) width 156: &quot;insertion point correctly&quot;
+        RenderText {#text} at (155,20) size 5x19
+          text run at (155,20) width 5: &quot;.&quot;
+      RenderBlock {P} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 570x19
+          text run at (0,0) width 539: &quot;You should be able to select individual letters in \x{201C}ipsum\x{201D} by dragging in the yellow &quot;
+          text run at (539,0) width 31: &quot;area &quot;
+        RenderInline {EM} at (0,0) size 39x19
+          RenderText {#text} at (569,0) size 39x19
+            text run at (569,0) width 39: &quot;above&quot;
+        RenderText {#text} at (607,0) size 41x19
+          text run at (607,0) width 41: &quot; them.&quot;
+      RenderBlock (floating) {DIV} at (0,92) size 86x80 [bgcolor=#FFFFAA]
+        RenderInline {SPAN} at (0,0) size 86x19 [bgcolor=#FFFFFF]
+          RenderText {#text} at (0,30) size 47x19
+            text run at (0,30) width 47: &quot;Lorem &quot;
+          RenderText {#text} at (46,30) size 40x19
+            text run at (46,30) width 40: &quot;ipsum&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 5 of child 2 {#text} of child 1 {SPAN} of child 4 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioninlinetableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/inline-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,192 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: 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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 784x59
+          text run at (0,0) width 324: &quot;This tests caret movement through an inline table. &quot;
+          text run at (323,0) width 461: &quot;There should be visual positions before and after the inline table, as if it&quot;
+          text run at (0,20) width 102: &quot;were an image. &quot;
+          text run at (101,20) width 678: &quot;The caret shouldn't skip across the table, but should enter it (unless we later decide that we don't want this&quot;
+          text run at (0,40) width 66: &quot;behavior).&quot;
+      RenderBlock {DIV} at (0,76) size 784x82
+        RenderBlock {DIV} at (0,0) size 784x82
+          RenderText {#text} at (0,10) size 83x19
+            text run at (0,10) width 83: &quot;Inline Table:&quot;
+          RenderTable {TABLE} at (82,0) size 136x82 [border: (1px outset #808080)]
+            RenderTableSection {TBODY} at (1,1) size 133x80
+              RenderTableRow {TR} at (0,2) size 133x24
+                RenderTableCell {TD} at (2,2) size 44x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 27x19
+                    text run at (2,2) width 27: &quot;One&quot;
+                RenderTableCell {TD} at (48,2) size 39x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 30x19
+                    text run at (2,2) width 30: &quot;Two&quot;
+                RenderTableCell {TD} at (89,2) size 42x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 38x19
+                    text run at (2,2) width 38: &quot;Three&quot;
+              RenderTableRow {TR} at (0,28) size 133x24
+                RenderTableCell {TD} at (2,28) size 44x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 31x19
+                    text run at (2,2) width 31: &quot;Four&quot;
+                RenderTableCell {TD} at (48,28) size 39x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 29x19
+                    text run at (2,2) width 29: &quot;Five&quot;
+                RenderTableCell {TD} at (89,28) size 42x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 22x19
+                    text run at (2,2) width 22: &quot;Six&quot;
+              RenderTableRow {TR} at (0,54) size 133x24
+                RenderTableCell {TD} at (2,54) size 44x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 40x19
+                    text run at (2,2) width 40: &quot;Seven&quot;
+                RenderTableCell {TD} at (48,54) size 39x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 35x19
+                    text run at (2,2) width 35: &quot;Eight&quot;
+                RenderTableCell {TD} at (89,54) size 42x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 32x19
+                    text run at (2,2) width 32: &quot;Nine&quot;
+          RenderText {#text} at (217,10) size 67x19
+            text run at (217,10) width 67: &quot;The End...&quot;
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectioninternalcaretrectexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/internal-caret-rect-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/internal-caret-rect-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/internal-caret-rect-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+Bug 86390: Expose FrameSelection::absoluteCaretBounds via window.internals
+
+This test demonstrates the usage of window.internals.absoluteCaretBounds()
+
+abcd
+PASS caretRects[0].left is 8
+PASS caretRects[0].top is 160
+FAIL caretRects[0].width should be 1. Was 2.
+PASS caretRects[0].height is 20
+FAIL caretRects[1].left should be 28. Was 27.
+PASS caretRects[1].top is 160
+FAIL caretRects[1].width should be 1. Was 2.
+PASS caretRects[1].height is 20
+FAIL caretRects[2].left should be 48. Was 47.
+PASS caretRects[2].top is 160
+FAIL caretRects[2].width should be 1. Was 2.
+PASS caretRects[2].height is 20
+FAIL caretRects[3].left should be 68. Was 67.
+PASS caretRects[3].top is 160
+FAIL caretRects[3].width should be 1. Was 2.
+PASS caretRects[3].height is 20
+FAIL caretRects[4].left should be 88. Was 87.
+PASS caretRects[4].top is 160
+FAIL caretRects[4].width should be 1. Was 2.
+PASS caretRects[4].height is 20
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionlastemptyinlineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/last-empty-inline-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/last-empty-inline-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/last-empty-inline-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+To test this manually, press mouse button below the '!' and drag the mouse to the comma between &quot;Hello&quot; and &quot;world!&quot;. It's OK if &quot;world!&quot; is selected.
+FAILED: the selection was
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionleaverequestedblockexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/leave-requested-block-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/leave-requested-block-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/leave-requested-block-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 131x19
+          text run at (0,0) width 131: &quot;Test case for fix for &quot;
+        RenderInline {A} at (0,0) size 350x19 [color=#0000EE]
+          RenderText {#text} at (130,0) size 350x19
+            text run at (130,0) width 350: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=5354&quot;
+        RenderText {#text} at (479,0) size 5x19
+          text run at (479,0) width 5: &quot;.&quot;
+      RenderBlock {P} at (0,36) size 784x40
+        RenderText {#text} at (0,0) size 754x39
+          text run at (0,0) width 754: &quot;Changes were made to VisiblePosition's so that init() will not leave the block containing the requested position unless&quot;
+          text run at (0,20) width 273: &quot;there are no VisiblePositions in that block.&quot;
+      RenderBlock {P} at (0,92) size 784x0
+      RenderBlock {DIV} at (0,92) size 784x56 [border: (2px solid #AAAAFF)]
+        RenderBlock {P} at (2,18) size 780x20
+          RenderText {#text} at (0,0) size 699x19
+            text run at (0,0) width 699: &quot;Select All while inside this editable block should create a selection that does not extend outside of this block.&quot;
+layer at (8,172) size 784x20
+  RenderBlock {P} at (0,164) size 784x20
+    RenderText {#text} at (0,0) size 433x19
+      text run at (0,0) width 433: &quot;This is a paragraph outside the editable block with overflow:hidden&quot;
+selection start: position 0 of child 0 {#text} of child 1 {P} of child 5 {DIV} of body
+selection end:   position 113 of child 0 {#text} of child 1 {P} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionlinewrap1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 188x19
+          text run at (0,0) width 188: &quot;Only 'bar' should be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 52x42 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 48x39
+          text run at (1,1) width 46: &quot;foo bar&quot;
+          text run at (1,21) width 48: &quot;baz foo&quot;
+selection start: position 4 of child 0 {#text} of child 2 {DIV} of body
+selection end:   position 7 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionlinewrap2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/line-wrap-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 233x19
+          text run at (0,0) width 233: &quot;Only 'baz' should be selected below.&quot;
+      RenderBlock {DIV} at (50,36) size 52x42 [border: (1px solid #000000)]
+        RenderText {#text} at (1,1) size 46x19
+          text run at (1,1) width 46: &quot;foo bar&quot;
+        RenderInline {A} at (0,0) size 23x19 [color=#0000EE]
+          RenderText {#text} at (1,21) size 23x19
+            text run at (1,21) width 23: &quot;baz&quot;
+selection start: position 0 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
+selection end:   position 3 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 3 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderInline {SPAN} at (0,0) size 20x19
+        RenderText {#text} at (0,0) size 20x19
+          text run at (0,0) width 20: &quot;On&quot;
+      RenderText {#text} at (19,0) size 747x39
+        text run at (19,0) width 477: &quot;ly the first two letters of the first word in this sentence should be selected. &quot;
+        text run at (495,0) width 248: &quot;To run this test manually, double click&quot;
+        text run at (742,0) width 5: &quot; &quot;
+        text run at (0,20) width 419: &quot;between the first two letters of the first word of the first sentence.&quot;
+      RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 0 {SPAN} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability10expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-10-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-10-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-10-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+#1 DIV element with a non-editable element only align center:
+
+Hello
+#2 DIV element with a non-editable element only align left:
+
+Hello
+#3 DIV element with a non-editable element only align right:
+
+Hello
+#4 DIV element with two non-editable elementwith padding:
+
+Hello World
+#5 DIV element empty
+
+#6 non editable DIV element with an editable empty span element
+
+Hello: 
+Anchor ([object HTMLDivElement], 0 caret[0,0] refpos=40) is incorrect.
+Anchor ([object HTMLDivElement], 3 caret[0,0] refpos=76) is incorrect.
+Anchor ([object HTMLDivElement], 1 caret[0,0] refpos=44) is incorrect.
+Anchor ([object HTMLDivElement], 0 caret[0,0] refpos=8) is incorrect.
+Anchor ([object HTMLDivElement], 0 caret[0,0] refpos=72) is incorrect.
+Anchor ([object HTMLDivElement], 3 caret[0,0] refpos=48) is incorrect.
+Anchor ([object HTMLDivElement], 0 caret[0,0] refpos=58) is incorrect.
+Anchor ([object HTMLSpanElement], 0 caret[0,0] refpos=0) is correct.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 57x19
+          text run at (0,0) width 57: &quot;OnlyThe&quot;
+        RenderInline {SPAN} at (0,0) size 33x19
+          RenderText {#text} at (56,0) size 33x19
+            text run at (56,0) width 33: &quot;Bold&quot;
+        RenderText {#text} at (88,0) size 76x19
+          text run at (88,0) width 76: &quot;TextShould&quot;
+        RenderInline {SPAN} at (0,0) size 19x19
+          RenderText {#text} at (163,0) size 19x19
+            text run at (163,0) width 19: &quot;Be&quot;
+        RenderText {#text} at (181,0) size 55x19
+          text run at (181,0) width 55: &quot;Selected&quot;
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 770x39
+          text run at (0,0) width 471: &quot;This tests moving the caret forward through content of mixed editability. &quot;
+          text run at (470,0) width 300: &quot;The caret should move down one line from the&quot;
+          text run at (0,20) width 481: &quot;editable piece to the editable piece that's embedded in a non-editable piece.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+        RenderTable {TABLE} at (0,20) size 61x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 59x28
+            RenderTableRow {TR} at (0,2) size 59x24
+              RenderTableCell {TD} at (2,2) size 55x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 51x19
+                  text run at (2,2) width 51: &quot;editable&quot;
+        RenderBlock (anonymous) at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+caret: position 0 of child 0 {#text} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 770x39
+          text run at (0,0) width 471: &quot;This tests moving the caret forward through content of mixed editability. &quot;
+          text run at (470,0) width 300: &quot;The caret should move down one line from the&quot;
+          text run at (0,20) width 481: &quot;editable piece to the editable piece that's embedded in a non-editable piece.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+        RenderTable {TABLE} at (0,20) size 61x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 59x28
+            RenderTableRow {TR} at (0,2) size 59x24
+              RenderTableCell {TD} at (2,2) size 55x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 51x19
+                  text run at (2,2) width 51: &quot;editable&quot;
+        RenderBlock (anonymous) at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+caret: position 2 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability5expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-5-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-5-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-5-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 770x39
+          text run at (0,0) width 471: &quot;This tests moving the caret forward through content of mixed editability. &quot;
+          text run at (470,0) width 300: &quot;The caret should move down one line from the&quot;
+          text run at (0,20) width 481: &quot;editable piece to the editable piece that's embedded in a non-editable piece.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+        RenderTable {TABLE} at (0,20) size 61x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 59x28
+            RenderTableRow {TR} at (0,2) size 59x24
+              RenderTableCell {TD} at (2,2) size 55x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 51x19
+                  text run at (2,2) width 51: &quot;editable&quot;
+        RenderBlock (anonymous) at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+caret: position 9 of child 2 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability6expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-6-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-6-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-6-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 783x39
+          text run at (0,0) width 633: &quot;This tests Select All when the caret is inside an editable region that is inside a non editable region. &quot;
+          text run at (632,0) width 151: &quot;Whenever the selection&quot;
+          text run at (0,20) width 565: &quot;is in an editable region, Select All should select the contents of the highest editable root.&quot;
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 27x19
+            text run at (0,0) width 27: &quot;One&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 30x19
+            RenderText {#text} at (0,0) size 30x19
+              text run at (0,0) width 30: &quot;Two&quot;
+          RenderText {#text} at (29,0) size 5x19
+            text run at (29,0) width 5: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 38x19
+            RenderText {#text} at (33,0) size 38x19
+              text run at (33,0) width 38: &quot;Three&quot;
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 31x19
+            text run at (0,0) width 31: &quot;Four&quot;
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 5 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability7expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-7-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-7-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-7-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 763x39
+          text run at (0,0) width 763: &quot;This tests creating a selection based inside a nested editable region that extends out to editable content that is inside the&quot;
+          text run at (0,20) width 176: &quot;same highest editable root. &quot;
+          text run at (175,20) width 260: &quot;'One' through 'Three' should be selected.&quot;
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 27x19
+            text run at (0,0) width 27: &quot;One&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderInline {SPAN} at (0,0) size 30x19
+            RenderText {#text} at (0,0) size 30x19
+              text run at (0,0) width 30: &quot;Two&quot;
+          RenderText {#text} at (29,0) size 5x19
+            text run at (29,0) width 5: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 38x19
+            RenderText {#text} at (33,0) size 38x19
+              text run at (33,0) width 38: &quot;Three&quot;
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 31x19
+            text run at (0,0) width 31: &quot;Four&quot;
+selection start: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 2 {SPAN} of child 3 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability8expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-8-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-8-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-8-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 782x39
+          text run at (0,0) width 782: &quot;This tests moving the caret backward through content of mixed editability. The caret should end up back at the start of the&quot;
+          text run at (0,20) width 184: &quot;editable text inside the table.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+        RenderTable {TABLE} at (0,20) size 95x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 93x28
+            RenderTableRow {TR} at (0,2) size 93x24
+              RenderTableCell {TD} at (2,2) size 89x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBlock {DIV} at (2,2) size 85x20
+                  RenderInline {SPAN} at (0,0) size 34x19
+                    RenderText {#text} at (0,0) size 34x19
+                      text run at (0,0) width 34: &quot;static&quot;
+                  RenderInline {SPAN} at (0,0) size 52x19
+                    RenderText {#text} at (33,0) size 52x19
+                      text run at (33,0) width 52: &quot;editable&quot;
+        RenderBlock (anonymous) at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 0 {DIV} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmixededitability9expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-9-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-9-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/mixed-editability-9-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of SPAN &gt; DIV &gt; TD &gt; TR &gt; TBODY &gt; TABLE &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 735x39
+          text run at (0,0) width 735: &quot;This tests moving the caret backward through content of mixed editability. The caret should back to just before the&quot;
+          text run at (0,20) width 92: &quot;outlined table.&quot;
+      RenderBlock {DIV} at (0,56) size 784x70
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+        RenderTable {TABLE} at (0,20) size 95x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 93x28
+            RenderTableRow {TR} at (0,2) size 93x24
+              RenderTableCell {TD} at (2,2) size 89x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderBlock {DIV} at (2,2) size 85x20
+                  RenderInline {SPAN} at (0,0) size 34x19
+                    RenderText {#text} at (0,0) size 34x19
+                      text run at (0,0) width 34: &quot;static&quot;
+                  RenderInline {SPAN} at (0,0) size 52x19
+                    RenderText {#text} at (33,0) size 52x19
+                      text run at (33,0) width 52: &quot;editable&quot;
+        RenderBlock (anonymous) at (0,50) size 784x20
+          RenderText {#text} at (0,0) size 51x19
+            text run at (0,0) width 51: &quot;editable&quot;
+caret: position 0 of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmodifybylineboundaryininlineeditablecontextsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-by-lineboundary-in-inline-editable-contexts-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-by-lineboundary-in-inline-editable-contexts-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-by-lineboundary-in-inline-editable-contexts-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+This test ensures that modifying the selection by line boundary granularity (like home/end do) functions properly in an inline editable context.
+You can run this test manually by placing the caret in the middle of the both of the shaded editable spans below and ensuring home/end (command left/right on Mac) moves the caret to the boundaries of the shaded area.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL Modify moving forward in adjacent, editable spans resulted in an unexpected offset of 0
+PASS Modify moving backward in adjacent, editable spans
+PASS Modify moving forward in editable span in non-editable content
+PASS Modify moving backward in editable span in non-editable content
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmodifyuponrtlwrappingtextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-up-on-rtl-wrapping-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-up-on-rtl-wrapping-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/modify-up-on-rtl-wrapping-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+This tests clicking on the left of RTL text puts the caret at the end of the line.
+
+PASS: on ך לכ, caret is at 4 initially
+PASS: on ך לכ, caret is at 2 after moving upwards once
+PASS: on כ ככ כככ, caret is at 8 initially
+PASS: on כ ככ כככ, caret is at 5 after moving upwards once
+FAIL: on כ ככ כככ, caret is at 5 after moving upwards twice but expected at 8
+PASS: on גכ יגכ יגכ יגכ יגכ, caret is at 18 initially
+PASS: on גכ יגכ יגכ יגכ יגכ, caret is at 14 after moving upwards once
+PASS: on גכ יגכ יגכ יגכ יגכ, caret is at 10 after moving upwards twice
+PASS: on גכ יגכ יגכ יגכ יגכ, caret is at 6 after moving upwards 3 times
+PASS: on גכ יגכ יגכ יגכ יגכ, caret is at 3 after moving upwards 4 times
+גכ יגכ יגכ יגכ יגכ
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmove3875618fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875618-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875618-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875618-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [border: (2px solid #FF0000)]
+      RenderBlock {DIV} at (14,14) size 756x60
+        RenderText {#text} at (0,1) size 137x28
+          text run at (0,1) width 137: &quot;There is a tide&quot;
+        RenderBR {BR} at (136,23) size 1x0
+        RenderText {#text} at (0,31) size 195x28
+          text run at (0,31) width 195: &quot;in the affairs of men&quot;
+      RenderBlock {DIV} at (14,74) size 756x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
+caret: position 0 of child 2 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmove3875641fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875641-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875641-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-3875641-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584 [border: (2px solid #FF0000)]
+      RenderBlock {DIV} at (14,14) size 756x30
+        RenderText {#text} at (0,1) size 137x28
+          text run at (0,1) width 137: &quot;There is a tide&quot;
+      RenderBlock {DIV} at (14,44) size 756x30
+        RenderText {#text} at (0,1) size 195x28
+          text run at (0,1) width 195: &quot;in the affairs of men&quot;
+      RenderBlock {DIV} at (14,74) size 756x30
+        RenderText {#text} at (0,1) size 238x28
+          text run at (0,1) width 238: &quot;Which taken at the flood&quot;
+caret: position 0 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebackwordsbyword001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-backwords-by-word-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-backwords-by-word-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-backwords-by-word-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 70x58
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 70x28
+            text run at (14,45) width 70: &quot;bar baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 2 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebeginendexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-begin-end-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-begin-end-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-begin-end-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+Some text
+This tests that moving the caret and selecting using Command+Left/Right arrows work correctly. If this text is successful, the text &quot;SUCCESS&quot; will be shown below.
+Selection should be at the end. baseOffset: 0 extentOffset: 0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebetweenblocksno001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-no-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-no-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-no-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,118 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldDeleteDOMRange:range from 39 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 40 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 38 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 39 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 37 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 38 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 36 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 37 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 35 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 36 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 34 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 35 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 33 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 34 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 32 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 33 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 31 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 32 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 30 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 31 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 29 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 30 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 28 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 29 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 27 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 28 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 26 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 26 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 27 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 27 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 26 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 27 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 25 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 26 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 241x28
+          RenderText {#text} at (14,15) size 241x28
+            text run at (14,15) width 241: &quot;We hold these truths to b&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 312x28
+          text run at (14,15) width 312: &quot;that all men are created equal, ...&quot;
+caret: position 25 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebetweenblocksyes001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-yes-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-yes-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-blocks-yes-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 377x28
+          RenderText {#text} at (14,15) size 377x28
+            text run at (14,15) width 377: &quot;We hold these truths to be self-evident,&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 312x28
+          text run at (14,15) width 312: &quot;that all men are created equal, ...&quot;
+caret: position 10 of child 0 {#text} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebetweenlinesofdifferenteditabilitiesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-lines-of-different-editabilities-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-lines-of-different-editabilities-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-between-lines-of-different-editabilities-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,67 @@
</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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+This test moves caret between lines of different editabilities.
+
+Initial condition:
+| &quot;
+Line 1&lt;#selection-caret&gt; editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 1&quot;
+| &quot;
+Line 2 editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 2&quot;
+| &quot;
+Line 3 editable&quot;
+
+After moving forward by line:
+| &quot;
+Line 1 editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 1&quot;
+| &quot;
+Line 2&lt;#selection-caret&gt; editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 2&quot;
+| &quot;
+Line 3 editable&quot;
+
+After moving forward by line:
+| &quot;
+Line 1 editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 1&quot;
+| &quot;
+Line 2 editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 2&quot;
+| &quot;
+Line 3&lt;#selection-caret&gt; editable&quot;
+
+After moving forward by line:
+| &quot;
+Line 1 editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 1&quot;
+| &quot;
+Line 2 editable&quot;
+| &lt;div&gt;
+|   contenteditable=&quot;false&quot;
+|   &quot;Uneditable div 2&quot;
+| &quot;
+Line 3 editable&lt;#selection-caret&gt;&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 108x28
+          RenderText {#text} at (14,15) size 108x28
+            text run at (14,15) width 38: &quot;foo &quot;
+            text run at (51,15) width 38: &quot;bar &quot;
+            text run at (88,15) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 16 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 252x248
+          RenderText {#text} at (14,95) size 11x28
+            text run at (14,95) width 11: &quot;a&quot;
+          RenderImage {IMG} at (24,14) size 77x103
+          RenderText {#text} at (100,95) size 47x28
+            text run at (100,95) width 47: &quot;new &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,205) size 66x28
+            text run at (14,205) width 66: &quot;nation &quot;
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (79,124) size 77x103
+          RenderText {#text} at (155,205) size 111x28
+            text run at (155,205) width 111: &quot; conceived &quot;
+          RenderBR {BR} at (265,227) size 1x0
+          RenderText {#text} at (14,315) size 60x28
+            text run at (14,315) width 60: &quot;nation&quot;
+          RenderImage {IMG} at (73,234) size 77x103
+        RenderText {#text} at (0,0) size 0x0
+caret: position 6 of child 10 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,189 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: 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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 660x88
+          RenderInline {I} at (0,0) size 116x28
+            RenderText {#text} at (14,15) size 116x28
+              text run at (14,15) width 21: &quot;F &quot;
+              text run at (34,15) width 96: &quot;and seven&quot;
+          RenderText {#text} at (129,15) size 64x28
+            text run at (129,15) width 64: &quot; years &quot;
+          RenderInline {B} at (0,0) size 28x28
+            RenderText {#text} at (192,15) size 28x28
+              text run at (192,15) width 28: &quot;as &quot;
+          RenderText {#text} at (219,15) size 660x58
+            text run at (219,15) width 111: &quot;our fathers &quot;
+            text run at (329,15) width 339: &quot;f upon this continent, a new nation,&quot;
+            text run at (667,15) width 7: &quot; &quot;
+            text run at (14,45) width 229: &quot;conceived    in Liberty, &quot;
+            text run at (242,45) width 387: &quot;and dedicated to the proposition that all &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,75) size 216x28
+            text run at (14,75) width 216: &quot;men are created equal.&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 21 of child 5 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,95 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x358 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 252x248
+          RenderText {#text} at (14,95) size 11x28
+            text run at (14,95) width 11: &quot;a&quot;
+          RenderImage {IMG} at (24,14) size 77x103
+          RenderText {#text} at (100,95) size 47x28
+            text run at (100,95) width 47: &quot;new &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,205) size 66x28
+            text run at (14,205) width 66: &quot;nation &quot;
+          RenderInline {I} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+          RenderImage {IMG} at (79,124) size 77x103
+          RenderText {#text} at (155,205) size 111x28
+            text run at (155,205) width 111: &quot; conceived &quot;
+          RenderBR {BR} at (265,227) size 1x0
+          RenderText {#text} at (14,315) size 60x28
+            text run at (14,315) width 60: &quot;nation&quot;
+          RenderImage {IMG} at (73,234) size 77x103
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,347 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: 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: 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: 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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 660x88
+          RenderInline {I} at (0,0) size 116x28
+            RenderText {#text} at (14,15) size 116x28
+              text run at (14,15) width 21: &quot;F &quot;
+              text run at (34,15) width 96: &quot;and seven&quot;
+          RenderText {#text} at (129,15) size 64x28
+            text run at (129,15) width 64: &quot; years &quot;
+          RenderInline {B} at (0,0) size 28x28
+            RenderText {#text} at (192,15) size 28x28
+              text run at (192,15) width 28: &quot;as &quot;
+          RenderText {#text} at (219,15) size 660x58
+            text run at (219,15) width 111: &quot;our fathers &quot;
+            text run at (329,15) width 339: &quot;f upon this continent, a new nation,&quot;
+            text run at (667,15) width 7: &quot; &quot;
+            text run at (14,45) width 229: &quot;conceived    in Liberty, &quot;
+            text run at (242,45) width 387: &quot;and dedicated to the proposition that all &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (14,75) size 216x28
+            text run at (14,75) width 216: &quot;men are created equal.&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 0 {I} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebycharacter6expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-6-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-6-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-character-6-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x30
+        RenderInline {SPAN} at (0,0) size 108x28
+          RenderText {#text} at (0,1) size 108x28
+            text run at (0,1) width 38: &quot;foo &quot;
+            text run at (37,1) width 38: &quot;bar &quot;
+            text run at (74,1) width 34: &quot;baz&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x198 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x170
+          RenderTable {TABLE} at (0,0) size 64x170 [border: (1px outset #808080)]
+            RenderTableSection {TBODY} at (1,1) size 62x168
+              RenderTableRow {TR} at (0,2) size 62x56
+                RenderTableCell {TD} at (2,2) size 58x56 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (13,14) size 32x28
+                    text run at (13,14) width 32: &quot;foo&quot;
+              RenderTableRow {TR} at (0,60) size 62x48
+                RenderTableCell {TD} at (2,71) size 58x26 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              RenderTableRow {TR} at (0,110) size 62x56
+                RenderTableCell {TD} at (2,110) size 58x56 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                  RenderText {#text} at (13,14) size 31x28
+                    text run at (13,14) width 31: &quot;bar&quot;
+caret: position 2 of child 1 {TABLE} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x226 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,38) size 756x150
+          RenderBlock {OL} at (0,0) size 756x150
+            RenderListItem {LI} at (40,0) size 716x30
+              RenderListMarker at (-31,1) size 24x28: &quot;1&quot;
+              RenderText {#text} at (0,1) size 35x28
+                text run at (0,1) width 35: &quot;one&quot;
+            RenderListItem {LI} at (40,30) size 716x30
+              RenderListMarker at (-31,1) size 24x28: &quot;2&quot;
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;two&quot;
+            RenderListItem {LI} at (40,60) size 716x30
+              RenderListMarker at (-31,1) size 24x28: &quot;3&quot;
+              RenderBR {BR} at (0,1) size 0x28
+            RenderListItem {LI} at (40,90) size 716x30
+              RenderListMarker at (-31,1) size 24x28: &quot;4&quot;
+              RenderText {#text} at (0,1) size 40x28
+                text run at (0,1) width 40: &quot;four&quot;
+            RenderListItem {LI} at (40,120) size 716x30
+              RenderListMarker at (-31,1) size 24x28: &quot;5&quot;
+              RenderText {#text} at (0,1) size 38x28
+                text run at (0,1) width 38: &quot;five&quot;
+caret: position 0 of child 0 {BR} of child 2 {LI} of child 1 {OL} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Test that moving the caret with line granularity within the highest editable root works across non-editable content.
+
+FAIL: Did not move to the previous line
+apple pie
+pineapple
+apple juice
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebyline005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-line-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+Test for rdar://problem/6967596 Safari hung using 100% CPU when I tried to look up a word in Dictionary using command-control-d.
+
+FAIL
+
+Text and text more text
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebysentence001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 15x28
+          text run at (14,15) width 15: &quot;\x{2022} &quot;
+        RenderInline {B} at (0,0) size 241x28
+          RenderText {#text} at (28,15) size 241x28
+            text run at (28,15) width 241: &quot;This is some linked text&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+caret: position 1 of child 0 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebysentencelinebreakexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-linebreak-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-linebreak-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-sentence-linebreak-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 564x19
+          text run at (0,0) width 564: &quot;This tests for sentence boundary when there are empty line breaks between lines of text.&quot;
+        RenderBR {BR} at (563,15) size 1x0
+        RenderText {#text} at (0,20) size 501x19
+          text run at (0,20) width 501: &quot;The result insertion point should be at the end of the sentence \&quot;How are you?\&quot;&quot;
+      RenderBlock {DIV} at (0,56) size 784x120
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 32x19
+            text run at (0,0) width 32: &quot;hello&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (0,0) size 38x19
+            text run at (0,0) width 38: &quot;world&quot;
+        RenderBlock {DIV} at (0,60) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {DIV} at (0,80) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {DIV} at (0,100) size 784x20
+          RenderText {#text} at (0,0) size 270x19
+            text run at (0,0) width 89: &quot;This is a test. &quot;
+            text run at (88,0) width 95: &quot;How are you? &quot;
+            text run at (182,0) width 88: &quot;Life is sweet!&quot;
+caret: position 30 of child 0 {#text} of child 9 {DIV} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebyword001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x30
+          RenderText {#text} at (0,1) size 32x28
+            text run at (0,1) width 32: &quot;foo&quot;
+        RenderBlock (anonymous) at (14,44) size 756x30
+          RenderText {#text} at (0,1) size 31x28
+            text run at (0,1) width 31: &quot;bar&quot;
+selection start: position 0 of child 2 {#text} of child 1 {DIV} of body
+selection end:   position 3 of child 2 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallymacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,141 @@
</span><ins>+
+======== Move By Word ====
+Test 1, LTR:
+Move right by one word
+&quot;abc def hij opq rst&quot;[0, 3, 7, 11, 15, 19]
+Move left by one word
+&quot;abc def hij opq rst&quot;[19, 16, 12, 8, 4, 0]
+Test 2, RTL:
+Move left by one word
+&quot;abc def hij opq rst&quot;[0, 16, 12, 8, 4, 19]
+Move right by one word
+&quot;abc def hij opq rst&quot;[19, 3, 7, 11, 15, 0]
+Test 3, LTR:
+Move right by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[0, 16, 12, 8, 4, 19]
+Move left by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[19, 3, 7, 11, 15, 0]
+Test 4, RTL:
+Move left by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[0, 3, 7, 11, 15, 19]
+Move right by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[19, 16, 12, 8, 4, 0]
+Test 5, LTR:
+Move right by one word
+&quot;abc def hij AAA BBB WWW opr uvw xyz&quot;[0, 3, 7, 11, 20, 16, 23, 27, 31, 35]
+Move left by one word
+&quot;abc def hij AAA BBB WWW opr uvw xyz&quot;[35, 32, 28, 24, 15, 19, 12, 8, 4, 0]
+Test 6, RTL:
+Move left by one word
+&quot;abc def hij AAA BBB WWW opr uvw xyz&quot;[0, 8, 4, 11, 15, 19, 23, 32, 28, 35]
+Move right by one word
+&quot;abc def hij AAA BBB WWW opr uvw xyz&quot;[35, 27, 31, 24, 20, 16, 12, 3, 7, 0]
+Test 7, LTR:
+Move right by one word
+&quot;abc def ZQB RIG uvw xyz&quot;[0, 3, 7, 12, 15, 19, 23]
+Move left by one word
+&quot;abc def ZQB RIG uvw xyz&quot;[23, 20, 16, 11, 8, 4, 0]
+Test 8, RTL:
+Move left by one word
+&quot;abc def ZQB RIG uvw xyz&quot;[0, 4, 7, 11, 15, 20, 23]
+Move right by one word
+&quot;abc def ZQB RIG uvw xyz&quot;[23, 19, 16, 12, 8, 3, 0]
+Test 9, LTR:
+Move right by one word
+&quot;aaa AAA bbb&quot;[0, 3, 7, 11]
+Move left by one word
+&quot;aaa AAA bbb&quot;[11, 8, 4, 0]
+Test 10, RTL:
+Move left by one word
+&quot;aaa AAA bbb&quot;[0, 3, 7, 11]
+Move right by one word
+&quot;aaa AAA bbb&quot;[11, 8, 4, 0]
+Test 11, LTR:
+Move right by one word
+&quot;AAA BBB WWW aaa bbb ccc DDD SSS UUU&quot;[0, 8, 4, 11, 15, 19, 23, 32, 28, 35]
+Move left by one word
+&quot;AAA BBB WWW aaa bbb ccc DDD SSS UUU&quot;[35, 27, 31, 24, 20, 16, 12, 3, 7, 0]
+Test 12, RTL:
+Move left by one word
+&quot;AAA BBB WWW aaa bbb ccc DDD SSS UUU&quot;[0, 3, 7, 11, 20, 16, 23, 27, 31, 35]
+Move right by one word
+&quot;AAA BBB WWW aaa bbb ccc DDD SSS UUU&quot;[35, 32, 28, 24, 15, 19, 12, 8, 4, 0]
+Test 13, LTR:
+Move right by one word
+&quot;AAA BBB aaa bbb WWW DDD&quot;[0, 4, 7, 11, 15, 20, 23]
+Move left by one word
+&quot;AAA BBB aaa bbb WWW DDD&quot;[23, 19, 16, 12, 8, 3, 0]
+Test 14, RTL:
+Move left by one word
+&quot;AAA BBB aaa bbb WWW DDD&quot;[0, 3, 7, 12, 15, 19, 23]
+Move right by one word
+&quot;AAA BBB aaa bbb WWW DDD&quot;[23, 20, 16, 11, 8, 4, 0]
+Test 15, LTR:
+Move right by one word
+&quot;ZQB abc RIG&quot;[0, 3, 7, 11]
+Move left by one word
+&quot;ZQB abc RIG&quot;[11, 8, 4, 0]
+Test 16, RTL:
+Move left by one word
+&quot;ZQB abc RIG&quot;[0, 3, 7, 11]
+Move right by one word
+&quot;ZQB abc RIG&quot;[11, 8, 4, 0]
+Test 17, LTR:
+Move right by one word
+&quot;abc def ghi jkl mn &quot;[0, 3, 7, 11, 15, 18], &quot;opq rst uvw xyz&quot;[3, 7, 11, 15]
+Move left by one word
+&quot;opq rst uvw xyz&quot;[15, 12, 8, 4, 0], &quot;abc def ghi jkl mn &quot;[16, 12, 8, 4, 0]
+Test 18, RTL:
+Move left by one word
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[1, 5, 8, 12, 16, 20, 24, 28, 33, 36], &quot;AAA kj AAA mn opq AAA AAA&quot;[3, 6, 10, 13, 17, 21, 25]    FAIL expected: [&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 1,  5,  8,  12,  16,  20,  24,  28,  32,  36, ]&quot;AAA kj AAA mn opq AAA AAA&quot;[ 3,  6,  10,  13,  17,  21,  25]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[28, 33]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 32]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[29, 33]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 32]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[35, 33]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 32]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[34, 33]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 32]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[33, 36]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 32]
+Move right by one word
+&quot;AAA kj AAA mn opq AAA AAA&quot;[25, 22, 18, 14, 11, 7, 4, 0], &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[32, 29, 25, 21, 17, 13, 9, 4, 1]    FAIL expected: [&quot;AAA kj AAA mn opq AAA AAA&quot;[ 25,  22,  18,  14,  11,  7,  4,  0, ]&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33,  29,  25,  21,  17,  13,  9,  4,  1]
+&quot;AAA kj AAA mn opq AAA AAA&quot;[0], &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&lt;DIV&gt;[0], &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&lt;DIV&gt;[0], &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&lt;DIV&gt;[0], &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[37, 32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[36, 32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[30, 32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[31, 32]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[32, 29]   FAIL expected &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[ 33]
+Test 19, LTR:
+Move right by one word
+&quot;abc def    hij opq&quot;[0, 3, 7, 14, 18]
+Move left by one word
+&quot;abc def    hij opq&quot;[18, 15, 8, 4, 0]
+Test 20, LTR:
+Move right by one word
+&quot;    abc    def    hij    opq    &quot;[4, 7, 14, 21, 28]
+Move left by one word
+&quot;    abc    def    hij    opq    &quot;[28, 22, 15, 8, 4]
+Test 21, RTL:
+Move left by one word
+&quot;    abc    def    hij    ABW    DSU    EJH    opq    rst    uvw    &quot;[0, 18, 11, 21, 28, 35, 42, 60, 53, 63, 67]
+Move right by one word
+&quot;    abc    def    hij    ABW    DSU    EJH    opq    rst    uvw    &quot;[67, 49, 56, 46, 39, 32, 25, 7, 14, 4, 0]
+Test 22, RTL:
+Move left by one word
+&quot;    ABW    DSU    HJH    FUX    &quot;[0, 7, 14, 21, 28, 32]
+Move right by one word
+&quot;    ABW    DSU    HJH    FUX    &quot;[32, 25, 18, 11, 4, 0]
+Test 23, RTL:
+Move left by one word
+&quot;abc def &quot;[0], &quot; rst uvw&quot;[5, 1], &quot;hij opq&quot;[4], &quot;abc def &quot;[8, 4], &quot; rst uvw&quot;[8]
+Move right by one word
+&quot; rst uvw&quot;[8], &quot;abc def &quot;[3, 7], &quot;hij opq&quot;[3, 7], &quot; rst uvw&quot;[4], &quot;abc def &quot;[0]
+Test 24, RTL:
+Move left by one word
+&quot;ABD opq rst DSU &quot;[0, 3, 8, 11, 15], &quot;abc uvw AAA def lmn&quot;[16, 12, 11, 4, 19], &quot;ABW hij xyz FXX&quot;[3, 8, 11, 15]    FAIL expected: [&quot;ABD opq rst DSU &quot;[ 0,  3,  8,  11,  15, ]&quot;abc uvw AAA def lmn&quot;[ 16,  12,  11,  4, ]&quot;ABW hij xyz FXX&quot;[ 3,  8,  11,  15]
+&quot;abc uvw AAA def lmn&quot;[4, 19]   FAIL expected &quot;ABW hij xyz FXX&quot;[ 3]
+&quot;abc uvw AAA def lmn&quot;[3, 19]   FAIL expected &quot;ABW hij xyz FXX&quot;[ 3]
+&quot;abc uvw AAA def lmn&quot;[2, 19]   FAIL expected &quot;ABW hij xyz FXX&quot;[ 3]
+&quot;abc uvw AAA def lmn&quot;[1, 19]   FAIL expected &quot;ABW hij xyz FXX&quot;[ 3]
+Move right by one word
+&quot;ABW hij xyz FXX&quot;[15, 12, 7, 4], &quot;abc uvw AAA def lmn&quot;[3, 7, 8, 15], &quot;ABD opq rst DSU &quot;[16, 12, 7, 4, 0]
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallymultilineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-line-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-line-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-line-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,94 @@
</span><ins>+CONSOLE MESSAGE: line 16: TypeError: null is not an object (evaluating 'positions[i].node.tagName')
+אאא אאא
+abc def ghi jkl mn 
+
+
+opq rst uvw xyz
+abc def ghi jkl mn
+
+
+
+opq rst uvw xyz
+אאא אאא אאא אאא 
+
+
+אאא אאא אאא אאא
+אאא אאא אאא אאא 
+
+
+
+אאא אאא אאא אאא
+abc def אאא אאא hij אאא אאא uvw xyz 
+
+
+אאא kj אאא mn opq אאא אאא
+abc def אאא אאא hij אאא אאא uvw xyz 
+
+
+
+אאא kj אאא mn opq אאא אאא
+abc def ghi jkl mn 
+
+
+opq rst uvw xyz
+abc def ghi jkl mn
+
+
+
+opq rst uvw xyz
+אאא אאא אאא אאא 
+
+
+אאא אאא אאא אאא
+אאא אאא אאא אאא
+
+
+
+אאא אאא אאא אאא
+abc def אאא אאא hij אאא אאא uvw xyz 
+
+
+אאא kj אאא mn opq אאא אאא
+abc def אאא אאא hij אאא אאא uvw xyz
+
+
+
+אאא kj אאא mn opq אאא אאא
+abc def ghi jkl mn
+opq rst uvw xyz
+abc def ghi jkl mn
+abc def ghi jkl mn
+
+opq rst uvw xyz
+abc def inside span hij opq
+00
+
+======== Move By Word ====
+Test 1, LTR:
+Move right by one word
+&quot;abc def ghi jkl mn &quot;[0, 4, 8, 12, 16], &quot;opq rst uvw xyz&quot;[0, 4, 8, 12, 15]
+Move left by one word
+&quot;opq rst uvw xyz&quot;[15, 12, 8, 4, 0], &quot;abc def ghi jkl mn &quot;[16, 12, 8, 4, 0]
+Test 2, LTR:
+Move right by one word
+&quot;abc def ghi jkl mn &quot;[0, 4, 8, 12, 16], &quot;opq rst uvw xyz&quot;[0, 4, 8, 12, 15]
+Move left by one word
+&quot;opq rst uvw xyz&quot;[15, 12, 8, 4, 0], &quot;abc def ghi jkl mn &quot;[16, 12, 8, 4, 0]
+Test 3, LTR:
+Move right by one word
+&quot;AAA AAA AAA AAA &quot;[0, 3, 8, 11], &quot;AAA AAA AAA AAA&quot;[0, 3, 8, 11, 15]
+Move left by one word
+&quot;AAA AAA AAA AAA&quot;[15, 11, 8, 3, 0], &quot;AAA AAA AAA AAA &quot;[11, 8, 3, 0]
+Test 4, LTR:
+Move right by one word
+&quot;AAA AAA AAA AAA &quot;[0, 3, 8, 11], &quot;AAA AAA AAA AAA&quot;[0, 3, 8, 11, 15]
+Move left by one word
+&quot;AAA AAA AAA AAA&quot;[15, 11, 8, 3, 0], &quot;AAA AAA AAA AAA &quot;[11, 8, 3, 0]
+Test 5, LTR:
+Move right by one word
+&quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[1, 5, 9, 12, 17, 21, 25, 29, 33], &quot;AAA kj AAA mn opq AAA AAA&quot;[0, 4, 7, 11, 14, 18, 22, 25]
+Move left by one word
+&quot;AAA kj AAA mn opq AAA AAA&quot;[25, 22, 18, 14, 11, 7, 4, 0], &quot; abc def AAA AAA hij AAA AAA uvw xyz &quot;[33, 29, 25, 21, 17, 12, 9, 5, 1]
+Test 6, LTR:
+Move right by one word
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallymultispaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-space-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-space-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-multi-space-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,174 @@
</span><ins>+CONSOLE MESSAGE: line 16: TypeError: null is not an object (evaluating 'positions[i].node.tagName')
+abc def hij opq
+abc def hij opq
+abc אבצ def
+abc def אבצ דדפ hij opq
+abc def hij אבצ דעפ היח opq rst uvw
+אבצ דעפ חיח ופק
+אבצ abc דעפ
+אבצ דעפ abc def חיח ופק
+אבצ דעפ חיח abc def jih ופק ופק רסת
+אבצ דעפ היח ופק
+אבצ דעפ היח abc def hij
+abc def hij אבצ דעפ היח opq rst uvw
+abc def hij opq
+abc def hij opq
+abc אבצ def
+abc def אבצ דדפ hij opq
+abc def hij אבצ דעפ היח opq rst uvw
+אבצ דעפ חיח ופק
+אבצ abc דעפ
+אבצ דעפ abc def חיח ופק
+אבצ דעפ חיח abc def jih ופק ופק רסת
+abc def    hij opq
+    abc    def    hij    opq    
+    abc    אבצ    def    
+    abc    def    אבצ    דדפ    hij    opq    
+    abc    def    hij    אבצ    דעפ    היח    opq    rst    uvw    
+    אבצ    דעפ    חיח    ופק    
+    אבצ    abc    דעפ     
+    אבצ    דעפ    abc   def   חיח    ופק    
+    אבצ    דעפ    חיח    abc   def   jih   ופק  ופק    רסת     
+אבצ דעפ    היח ופק
+אבצ דעפ היח    abc def hij
+abc def hij    אבצ דעפ היח    opq rst uvw
+abc def    hij opq
+    abc    def    hij    opq    
+    abc    אבצ    def    
+    abc    def    אבצ    דדפ    hij    opq    
+    abc    def    hij    אבצ    דעפ    היח    opq    rst    uvw    
+    אבצ    דעפ    חיח    ופק    
+    אבצ    abc    דעפ     
+    אבצ    דעפ    abc   def   חיח    ופק    
+    אבצ    דעפ    חיח    abc   def   jih   ופק  ופק    רסת     
+人一氧喝大    笑抬的     abc def
+
+======== Move By Word ====
+Test 1, LTR:
+Move right by one word
+&quot;abc def    hij opq&quot;[0, 4, 8, 15, 18]
+Move left by one word
+&quot;abc def    hij opq&quot;[18, 15, 8, 4, 0]
+Test 2, LTR:
+Move right by one word
+&quot;    abc    def    hij    opq    &quot;[4, 8, 15, 22, 28]
+Move left by one word
+&quot;    abc    def    hij    opq    &quot;[28, 22, 15, 8, 4]
+Test 3, LTR:
+Move right by one word
+&quot;    abc    ABW    def    &quot;[4, 8, 15, 21]
+Move left by one word
+&quot;    abc    ABW    def    &quot;[21, 15, 8, 4]
+Test 4, LTR:
+Move right by one word
+&quot;    abc    def    ABW    DDU    hij    opq    &quot;[4, 8, 15, 21, 29, 36, 42]
+Move left by one word
+&quot;    abc    def    ABW    DDU    hij    opq    &quot;[42, 36, 29, 21, 15, 8, 4]
+Test 5, LTR:
+Move right by one word
+&quot;    abc    def    hij    ABW    DSU    EJH    opq    rst    uvw    &quot;[4, 8, 15, 22, 35, 28, 43, 50, 57, 63]
+Move left by one word
+&quot;    abc    def    hij    ABW    DSU    EJH    opq    rst    uvw    &quot;[63, 57, 50, 43, 28, 35, 22, 15, 8, 4]
+Test 6, LTR:
+Move right by one word
+&quot;    ABW    DSU    HJH    FUX    &quot;[4, 21, 14, 7, 28]
+Move left by one word
+&quot;    ABW    DSU    HJH    FUX    &quot;[28, 7, 14, 21, 4]
+Test 7, LTR:
+Move right by one word
+&quot;    ABW    abc    DSU     &quot;[4, 8, 15, 21]
+Move left by one word
+&quot;    ABW    abc    DSU     &quot;[21, 15, 8, 4]
+Test 8, LTR:
+Move right by one word
+&quot;    ABW    DSU    abc   def   HJH    FUX    &quot;[4, 7, 15, 22, 28, 33, 40]
+Move left by one word
+&quot;    ABW    DSU    abc   def   HJH    FUX    &quot;[40, 33, 28, 22, 15, 7, 4]
+Test 9, LTR:
+Move right by one word
+&quot;    ABW    DSU    HJH    abc   def   jih   FUX  FUX    YR[     &quot;[4, 14, 7, 22, 29, 35, 41, 51, 46, 58]
+Move left by one word
+&quot;    ABW    DSU    HJH    abc   def   jih   FUX  FUX    YR[     &quot;[58, 46, 51, 41, 35, 29, 22, 7, 14, 4]
+Test 10, LTR:
+Move right by one word
+&quot;ABW DSU    EJH FUX&quot;[0, 14, 7, 3, 18]
+Move left by one word
+&quot;ABW DSU    EJH FUX&quot;[18, 3, 7, 14, 0]
+Test 11, LTR:
+Move right by one word
+&quot;ABW DSU EJH    abc def hij&quot;[0, 7, 3, 12, 19, 23, 26]
+Move left by one word
+&quot;ABW DSU EJH    abc def hij&quot;[26, 23, 19, 12, 3, 7, 0]
+Test 12, LTR:
+Move right by one word
+&quot;abc def hij    ABW DSU EJH    opq rst uvw&quot;[0, 4, 8, 12, 22, 18, 27, 34, 38, 41]
+Move left by one word
+&quot;abc def hij    ABW DSU EJH    opq rst uvw&quot;[41, 38, 34, 27, 18, 22, 12, 8, 4, 0]
+Test 13, RTL:
+Move left by one word
+&quot;abc def    hij opq&quot;[0, 14, 7, 3, 18]
+Move right by one word
+&quot;abc def    hij opq&quot;[18, 3, 7, 14, 0]
+Test 14, RTL:
+Move left by one word
+&quot;    abc    def    hij    opq    &quot;[4, 21, 14, 7, 28]
+Move right by one word
+&quot;    abc    def    hij    opq    &quot;[28, 7, 14, 21, 4]
+Test 15, RTL:
+Move left by one word
+&quot;    abc    ABW    def    &quot;[4, 8, 15, 21]
+Move right by one word
+&quot;    abc    ABW    def    &quot;[21, 15, 8, 4]
+Test 16, RTL:
+Move left by one word
+&quot;    abc    def    ABW    DDU    hij    opq    &quot;[4, 7, 15, 22, 29, 35, 42]
+Move right by one word
+&quot;    abc    def    ABW    DDU    hij    opq    &quot;[42, 35, 29, 22, 15, 7, 4]
+Test 17, RTL:
+Move left by one word
+&quot;    abc    def    hij    ABW    DSU    EJH    opq    rst    uvw    &quot;[4, 14, 7, 22, 29, 36, 43, 56, 49, 63]
+Move right by one word
+&quot;    abc    def    hij    ABW    DSU    EJH    opq    rst    uvw    &quot;[63, 49, 56, 43, 36, 29, 22, 7, 14, 4]
+Test 18, RTL:
+Move left by one word
+&quot;    ABW    DSU    HJH    FUX    &quot;[4, 8, 15, 22, 28]
+Move right by one word
+&quot;    ABW    DSU    HJH    FUX    &quot;[28, 22, 15, 8, 4]
+Test 19, RTL:
+Move left by one word
+&quot;    ABW    abc    DSU     &quot;[4, 8, 15, 21]
+Move right by one word
+&quot;    ABW    abc    DSU     &quot;[21, 15, 8, 4]
+Test 20, RTL:
+Move left by one word
+&quot;    ABW    DSU    abc   def   HJH    FUX    &quot;[4, 8, 15, 21, 28, 34, 40]
+Move right by one word
+&quot;    ABW    DSU    abc   def   HJH    FUX    &quot;[40, 34, 28, 21, 15, 8, 4]
+Test 21, RTL:
+Move left by one word
+&quot;    ABW    DSU    HJH    abc   def   jih   FUX  FUX    YR[     &quot;[4, 8, 15, 22, 34, 28, 41, 47, 52, 58]
+Move right by one word
+&quot;    ABW    DSU    HJH    abc   def   jih   FUX  FUX    YR[     &quot;[58, 52, 47, 41, 28, 34, 22, 15, 8, 4]
+Test 22, LTR:
+Move right by one word
+&quot;abc def    hij opq&quot;[0, 4, 11, 15, 18]
+Move left by one word
+&quot;abc def    hij opq&quot;[18, 15, 11, 4, 0]
+Test 23, LTR:
+Move right by one word
+&quot;    abc    def    hij    opq    &quot;[0, 4, 11, 18, 25, 32]
+Move left by one word
+&quot;    abc    def    hij    opq    &quot;[32, 25, 18, 11, 4, 0]
+Test 24, LTR:
+Move right by one word
+&quot;    abc    ABW    def    &quot;[0, 4, 11, 18, 25]
+Move left by one word
+&quot;    abc    ABW    def    &quot;[25, 18, 11, 4, 0]
+Test 25, LTR:
+Move right by one word
+&quot;    abc    def    ABW    DDU    hij    opq    &quot;[0, 4, 11, 18, 21, 32, 39, 46]
+Move left by one word
+&quot;    abc    def    ABW    DDU    hij    opq    &quot;[46, 39, 32, 21, 18, 11, 4, 0]
+Test 26, LTR:
+Move right by one word
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovebywordvisuallysinglespaceoneelementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-single-space-one-element-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-single-space-one-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-by-word-visually-single-space-one-element-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+CONSOLE MESSAGE: line 16: TypeError: null is not an object (evaluating 'positions[i].node.tagName')
+abc def hij opq rst
+abc def hij opq rst
+ששש נננ בבב גגג קקק
+ששש נננ בבב גגג קקק
+abc def hij אאא בבב צצצ opr uvw xyz
+abc def hij אאא בבב צצצ opr uvw xyz
+abc def שנב סטז uvw xyz
+abc def שנב סטז uvw xyz
+aaa אאא bbb
+aaa אאא bbb
+אאא בבב צצצ aaa bbb ccc דדד עעע פפפ
+אאא בבב צצצ aaa bbb ccc דדד עעע פפפ
+אאא בבב aaa bbb צצצ דדד
+אאא בבב aaa bbb צצצ דדד
+שנב abc סטז
+שנב abc סטז
+abc ‫באד def‬ xyz
+abc def hij  opq rst
+abc def thisisonewordend opq rst
+
+======== Move By Word ====
+Test 1, LTR:
+Move right by one word
+&quot;abc def hij opq rst&quot;[0, 4, 8, 12, 16, 19]
+Move left by one word
+&quot;abc def hij opq rst&quot;[19, 16, 12, 8, 4, 0]
+Test 2, RTL:
+Move left by one word
+&quot;abc def hij opq rst&quot;[0, 15, 11, 7, 3, 19]
+Move right by one word
+&quot;abc def hij opq rst&quot;[19, 3, 7, 11, 15, 0]
+Test 3, LTR:
+Move right by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[0, 15, 11, 7, 3, 19]
+Move left by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[19, 3, 7, 11, 15, 0]
+Test 4, RTL:
+Move left by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[0, 4, 8, 12, 16, 19]
+Move right by one word
+&quot;ZZZ QQQ BBB CCC XXX&quot;[19, 16, 12, 8, 4, 0]
+Test 5, LTR:
+Move right by one word
+&quot;abc def hij AAA BBB WWW opr uvw xyz&quot;[0, 4, 8, 12, 19, 15, 24, 28, 32, 35]
+Move left by one word
+&quot;abc def hij AAA BBB WWW opr uvw xyz&quot;[35, 32, 28, 24, 15, 19, 12, 8, 4, 0]
+Test 6, RTL:
+Move left by one word
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmoveleftrightexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-left-right-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-left-right-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-left-right-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,58 @@
</span><ins>+CONSOLE MESSAGE: line 186: TypeError: null is not an object (evaluating 'positions[i].node.tagName')
+abc
+אבג
+
+abc
+
+אבג
+abcאבגdef
+אבגabcדהו
+abcאבגדהו
+אבגabcdef
+١٢٣ابة
+ابة١٢٣
+abcאבגdef
+אבגabcדהו
+abcאבג123דהוdef
+abcאבג123
+abcאבג123def
+אבג123דהוabcזחט456יכל
+before אחרי אנציקלופדיה
+לפני after encyclopedia
+before אחרי אנציקלופדיה
+לפני after encyclopedia
+This is יותר צר מיתר the boxes.
+This is יותר צר מיתר the boxes.
+Lorem
+ipsum
+צלחת
+מצנפת
+abcdefאבגדהו
+אבגדהוabcdef
+abcאבגדהוghi
+אבגabcdefדהו
+abcאבגדהו
+אבגabcdef
+abcאבגdef
+אבגabcדהו
+abcאבגdef
+אבגabcדהו
+abcאdef
+אבגaדהו
+abcאבגdef
+אבגabcדהו
+abcאבגdef
+אבגabcדהו
+abc
+def
+אבג
+דהו
+abcקקק123נננdef
+Test 1, LTR:
+  Moving right: &quot;\n        abc\n    &quot;[9, 10, 11, 12]
+  Moving left:  &quot;\n        abc\n    &quot;[12, 11, 10, 9]
+Test 1, RTL:
+  Moving left: &quot;\n        abc\n    &quot;[9, 11, 10, 12]
+  Moving right:  &quot;\n        abc\n    &quot;[12, 10, 11, 9]
+Test 2, LTR:
+  Moving right: 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmovepasttrailingspaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-past-trailing-space-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-past-trailing-space-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-past-trailing-space-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 228x96 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 132x65
+          RenderText {#text} at (82,14) size 132x65
+            text run at (82,14) width 56 RTL: &quot; \x{5D0}\x{5D7}\x{5E8}\x{5D9}&quot;
+            text run at (137,14) width 77: &quot;before&quot;
+            text run at (98,48) width 116 RTL: &quot;\x{5D0}\x{5E0}\x{5E6}\x{5D9}\x{5E7}\x{5DC}\x{5D5}\x{5E4}\x{5D3}\x{5D9}\x{5D4}&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionmoveverticallywithpaddingsbordersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/move-vertically-with-paddings-borders-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/move-vertically-with-paddings-borders-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/move-vertically-with-paddings-borders-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+This test ensures WebKit takes paddings and borders into account when moving vertically.
+
+test 1
+FAIL selectWord() should be left2. Was .
+FAIL selectWord() should be right2. Was .
+FAIL selectWord() should be left1. Was .
+FAIL selectWord() should be right1. Was .
+
+test 2
+FAIL selectWord() should be left2. Was .
+FAIL selectWord() should be right2. Was .
+FAIL selectWord() should be left1. Was .
+FAIL selectWord() should be right1. Was .
+
+test 3
+PASS selectWord() is &quot;left2&quot;
+PASS selectWord() is &quot;right2&quot;
+FAIL selectWord() should be left1. Was .
+FAIL selectWord() should be right1. Was .
+
+test 4
+FAIL selectWord() should be left2. Was .
+FAIL selectWord() should be right2. Was .
+FAIL selectWord() should be left1. Was .
+FAIL selectWord() should be right1. Was .
+FAIL selectWord() should be left3. Was .
+FAIL selectWord() should be right3. Was .
+FAIL selectWord() should be left2. Was .
+FAIL selectWord() should be right2. Was .
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionnoderemoval1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 764x39
+          text run at (0,0) width 693: &quot;This tests behavior when a node that serves as the start or end of a selection is removed from the document. &quot;
+          text run at (692,0) width 72: &quot;Ideally, we&quot;
+          text run at (0,20) width 661: &quot;would just adjust the selection when an endpoint is removed, for now, we just blow away the selection.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 784x39
+          text run at (0,0) width 487: &quot;This test creates a selection that ends inside of a node that will be removed. &quot;
+          text run at (486,0) width 175: &quot;Then the node is removed. &quot;
+          text run at (660,0) width 124: &quot;There should be no&quot;
+          text run at (0,20) width 127: &quot;selection afterward.&quot;
+      RenderBlock {DIV} at (0,112) size 784x20
+        RenderText {#text} at (0,0) size 36x19
+          text run at (0,0) width 36: &quot;hello &quot;
+        RenderText {#text} at (35,0) size 44x19
+          text run at (35,0) width 44: &quot;world!&quot;
+selection start: position 1 of child 0 {#text} of child 5 {DIV} of body
+selection end:   position 1 of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionnoderemoval2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/node-removal-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; P &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 764x39
+          text run at (0,0) width 693: &quot;This tests behavior when a node that serves as the start or end of a selection is removed from the document. &quot;
+          text run at (692,0) width 72: &quot;Ideally, we&quot;
+          text run at (0,20) width 661: &quot;would just adjust the selection when an endpoint is removed, for now, we just blow away the selection.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 772x39
+          text run at (0,0) width 487: &quot;This test creates a selection that ends inside of a node that will be removed. &quot;
+          text run at (486,0) width 175: &quot;Then the node is removed. &quot;
+          text run at (660,0) width 112: &quot;Then a Select All&quot;
+          text run at (0,20) width 80: &quot;is executed. &quot;
+          text run at (79,20) width 259: &quot;The entire document should be selected.&quot;
+      RenderBlock {DIV} at (0,112) size 784x20
+        RenderText {#text} at (0,0) size 36x19
+          text run at (0,0) width 36: &quot;hello &quot;
+        RenderText {#text} at (35,0) size 44x19
+          text run at (35,0) width 44: &quot;world!&quot;
+selection start: position 0 of child 0 {#text} of child 1 {P} of body
+selection end:   position 7 of child 1 {#text} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionparagraphgranularityexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/paragraph-granularity-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/paragraph-granularity-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/paragraph-granularity-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 713x19
+          text run at (0,0) width 379: &quot;This tests modifying a selection created with a triple click. &quot;
+          text run at (378,0) width 335: &quot;The new selection should use paragraph granularity.&quot;
+      RenderBlock {P} at (0,36) size 784x60 [color=#008000]
+        RenderText {#text} at (0,0) size 767x59
+          text run at (0,0) width 230: &quot;This test does not run interactively. &quot;
+          text run at (229,0) width 360: &quot;It uses the testRunners eventSender to do mouse clicks. &quot;
+          text run at (588,0) width 172: &quot;To run it manually, double&quot;
+          text run at (0,20) width 322: &quot;click on the blue 'g', then drag down to the red 'g'. &quot;
+          text run at (321,20) width 446: &quot;As you drag, watch the selection that is created, it should always start&quot;
+          text run at (0,40) width 217: &quot;and end on paragraph boundaries.&quot;
+      RenderBlock {DIV} at (0,112) size 784x120
+        RenderText {#text} at (0,0) size 86x19
+          text run at (0,0) width 86: &quot;This is a para&quot;
+        RenderInline {SPAN} at (0,0) size 9x19 [color=#0000FF]
+          RenderText {#text} at (85,0) size 9x19
+            text run at (85,0) width 9: &quot;g&quot;
+        RenderText {#text} at (93,0) size 34x19
+          text run at (93,0) width 34: &quot;raph.&quot;
+        RenderBR {BR} at (126,15) size 1x0
+        RenderText {#text} at (0,20) size 65x19
+          text run at (0,20) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,35) size 1x0
+        RenderText {#text} at (0,40) size 65x19
+          text run at (0,40) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,55) size 1x0
+        RenderText {#text} at (0,60) size 65x19
+          text run at (0,60) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,75) size 1x0
+        RenderText {#text} at (0,80) size 65x19
+          text run at (0,80) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,95) size 1x0
+        RenderText {#text} at (0,100) size 86x19
+          text run at (0,100) width 86: &quot;This is a para&quot;
+        RenderInline {SPAN} at (0,0) size 9x19 [color=#FF0000]
+          RenderText {#text} at (85,100) size 9x19
+            text run at (85,100) width 9: &quot;g&quot;
+        RenderText {#text} at (93,100) size 34x19
+          text run at (93,100) width 34: &quot;raph.&quot;
+caret: position 15 of child 0 {#text} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionpreviouslinepositionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-line-position-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-line-position-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-line-position-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 244x19
+          text run at (0,0) width 244: &quot;There was a workaround added to fix &quot;
+        RenderInline {A} at (0,0) size 153x19 [color=#0000EE]
+          RenderText {#text} at (243,0) size 153x19
+            text run at (243,0) width 153: &quot;rdar://problem/4033202&quot;
+        RenderText {#text} at (395,0) size 302x19
+          text run at (395,0) width 9: &quot;. &quot;
+          text run at (403,0) width 294: &quot;A bug to remove the workaround was filed as&quot;
+        RenderInline {A} at (0,0) size 153x19 [color=#0000EE]
+          RenderText {#text} at (0,20) size 153x19
+            text run at (0,20) width 153: &quot;rdar://problem/4040763&quot;
+        RenderText {#text} at (152,20) size 775x39
+          text run at (152,20) width 9: &quot;. &quot;
+          text run at (160,20) width 615: &quot;The underlying problem with VisiblePositions was fixed, and so I removed the workaround and&quot;
+          text run at (0,40) width 140: &quot;added this layout test.&quot;
+      RenderBlock {DIV} at (0,76) size 784x62 [border: (1px solid #0000FF)]
+        RenderBlock {P} at (1,1) size 782x20
+          RenderText {#text} at (0,0) size 13x19
+            text run at (0,0) width 13: &quot;hi&quot;
+          RenderInline {SPAN} at (0,0) size 1x19
+        RenderBlock (anonymous) at (1,21) size 782x40
+          RenderBR {BR} at (0,0) size 0x19
+          RenderText {#text} at (0,20) size 23x19
+            text run at (0,20) width 23: &quot;test&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionpreviouswordboundaryacrosstextnodesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-word-boundary-across-text-nodes-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-word-boundary-across-text-nodes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/previous-word-boundary-across-text-nodes-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+PASS selectWordBackward(container); /* &lt;span&gt;I&lt;/span&gt;'ll */ getSelection().toString(); is &quot;I'll&quot;
+FAIL selectWordBackward(container); /* &lt;span&gt;I'&lt;/span&gt;ll */ getSelection().toString(); should be I'll. Was .
+PASS selectWordBackward(container); /* &lt;span&gt;I'l&lt;/span&gt;l */ getSelection().toString(); is &quot;I'll&quot;
+FAIL selectWordBackward(container); /* I'&lt;span&gt;ll&lt;/span&gt; */ getSelection().toString(); should be I'll. Was .
+PASS selectWordBackward(container); /* I&lt;span&gt;'l&lt;/span&gt;l */ getSelection().toString(); is &quot;I'll&quot;
+FAIL selectWordBackward(container); /* &lt;span&gt;e&lt;/span&gt;́'ll */ getSelection().toString(); should be é'll. Was ll.
+PASS selectWordBackward(container); /* &lt;span&gt;é&lt;/span&gt;'ll */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* &lt;span&gt;é'&lt;/span&gt;ll */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* &lt;span&gt;é'l&lt;/span&gt;l */ getSelection().toString(); is &quot;é'll&quot;
+FAIL selectWordBackward(container); /* e&lt;span&gt;́&lt;/span&gt;'ll */ getSelection().toString(); should be é'll. Was ll.
+FAIL selectWordBackward(container); /* e&lt;span&gt;́'&lt;/span&gt;ll */ getSelection().toString(); should be é'll. Was ll.
+FAIL selectWordBackward(container); /* e&lt;span&gt;́'l&lt;/span&gt;l */ getSelection().toString(); should be é'll. Was ll.
+FAIL selectWordBackward(container); /* e&lt;span&gt;́'ll&lt;/span&gt; */ getSelection().toString(); should be é'll. Was ll.
+PASS selectWordBackward(container); /* é&lt;span&gt;'&lt;/span&gt;ll */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* é&lt;span&gt;'l&lt;/span&gt;l */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* é&lt;span&gt;'ll&lt;/span&gt; */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* é&lt;span&gt;'&lt;/span&gt;ll */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* é&lt;span&gt;'l&lt;/span&gt;l */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* é&lt;span&gt;'ll&lt;/span&gt; */ getSelection().toString(); is &quot;é'll&quot;
+PASS selectWordBackward(container); /* é'&lt;span&gt;l&lt;/span&gt;l */ getSelection().toString(); is &quot;é'll&quot;
+This test checks moving to the previous word boundary across multiple text nodes.
+For example, when &quot;I&quot; and &quot;'ll&quot; are put in a separate text node, we should not erroneously report the previous word boundary to be between &quot;'&quot; and &quot;ll&quot;.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionprogrammaticselectiononmacisdirectionlessexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/programmatic-selection-on-mac-is-directionless-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/programmatic-selection-on-mac-is-directionless-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/programmatic-selection-on-mac-is-directionless-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+CONSOLE MESSAGE: line 42: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
+This test ensures that programmatically set selections are directionless on mac, and that they are not on other platforms.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+mac:
+PASS left by character in regular-div
+PASS left by character in regular-div, after undoing delete
+PASS left by character in regular-div, after undoing forwardDelete
+PASS left by character in regular-div, after undoing cut
+PASS left by character in regular-div, after undoing bold
+PASS left by character in regular-div, after undoing insertText
+PASS right by character in regular-div
+PASS right by character in regular-div, after undoing delete
+PASS right by character in regular-div, after undoing forwardDelete
+PASS right by character in regular-div, after undoing cut
+PASS right by character in regular-div, after undoing bold
+PASS right by character in regular-div, after undoing insertText
+PASS left by line in regular-div
+PASS left by line in regular-div, after undoing delete
+PASS left by line in regular-div, after undoing forwardDelete
+PASS left by line in regular-div, after undoing cut
+PASS left by line in regular-div, after undoing bold
+PASS left by line in regular-div, after undoing insertText
+PASS right by line in regular-div
+PASS right by line in regular-div, after undoing delete
+PASS right by line in regular-div, after undoing forwardDelete
+PASS right by line in regular-div, after undoing cut
+PASS right by line in regular-div, after undoing bold
+PASS right by line in regular-div, after undoing insertText
+PASS left by character in editable-div
+FAIL left by character in editable-div, after undoing delete, expected &quot;lin&quot; but got &quot;l&quot;
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+line 1
+line 2
+line 3
+line 1
+le 2
+line 3
+  
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionrangebetweenblockandinlineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/range-between-block-and-inline-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/range-between-block-and-inline-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/range-between-block-and-inline-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x96
+        RenderBlock {P} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 27x19
+            text run at (0,0) width 27: &quot;For &quot;
+          RenderInline {A} at (0,0) size 71x19 [color=#0000EE]
+            RenderText {#text} at (26,0) size 71x19
+              text run at (26,0) width 71: &quot;Bug 32123&quot;
+          RenderText {#text} at (96,0) size 322x19
+            text run at (96,0) width 9: &quot;. &quot;
+            text run at (104,0) width 314: &quot;Hightlight for Selection should fit the target line.&quot;
+        RenderBlock (anonymous) at (0,36) size 784x20
+          RenderInline {SPAN} at (0,0) size 8x19
+            RenderText {#text} at (0,0) size 8x19
+              text run at (0,0) width 8: &quot;a&quot;
+        RenderBlock {DIV} at (0,56) size 784x20
+          RenderText {#text} at (0,0) size 134x19
+            text run at (0,0) width 134: &quot;should just select me&quot;
+        RenderBlock (anonymous) at (0,76) size 784x20
+          RenderInline {SPAN} at (0,0) size 8x19
+            RenderText {#text} at (0,0) size 8x19
+              text run at (0,0) width 8: &quot;c&quot;
+          RenderText {#text} at (0,0) size 0x0
+selection start: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of body
+selection end:   position 0 of child 5 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionreplaceselection1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/replace-selection-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/replace-selection-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/replace-selection-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; A &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; A &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 756x39
+          text run at (0,0) width 593: &quot;This tests for a bug when a selection is replaced by content with selectReplacement == true. &quot;
+          text run at (592,0) width 164: &quot;Below, you should see 'A&quot;
+          text run at (0,20) width 90: &quot;new link' and &quot;
+          text run at (89,20) width 157: &quot;'link' should be selected.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderText {#text} at (0,0) size 47x19
+          text run at (0,0) width 47: &quot;A new &quot;
+        RenderInline {A} at (0,0) size 26x19 [color=#0000EE]
+          RenderText {#text} at (46,0) size 26x19
+            text run at (46,0) width 26: &quot;link&quot;
+selection start: position 0 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 1 {A} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionreplacedboundaries1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 782x39
+          text run at (0,0) width 782: &quot;This tests that when a selection that starts at [replaced element, 1] is painted, the replaced element doesn't appear selected.&quot;
+          text run at (0,20) width 312: &quot;This test uses an image for the replaced element.&quot;
+      RenderBlock {DIV} at (0,56) size 784x108
+        RenderText {#text} at (0,88) size 23x19
+          text run at (0,88) width 23: &quot;abc&quot;
+        RenderImage {IMG} at (22,0) size 77x103
+        RenderText {#text} at (98,88) size 21x19
+          text run at (98,88) width 21: &quot;def&quot;
+selection start: position 0 of child 2 {#text} of child 3 {DIV} of body
+selection end:   position 3 of child 2 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionreplacedboundaries2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 777x39
+          text run at (0,0) width 777: &quot;This tests that when a selection that ends at [replaced element, 0] is painted, the replaced element doesn't appear selected.&quot;
+          text run at (0,20) width 312: &quot;This test uses an image for the replaced element.&quot;
+      RenderBlock {DIV} at (0,56) size 784x108
+        RenderText {#text} at (0,88) size 23x19
+          text run at (0,88) width 23: &quot;abc&quot;
+        RenderImage {IMG} at (22,0) size 77x103
+        RenderText {#text} at (98,88) size 21x19
+          text run at (98,88) width 21: &quot;def&quot;
+selection start: position 1 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 4 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionreplacedboundaries3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/replaced-boundaries-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 777x39
+          text run at (0,0) width 777: &quot;This tests that when a selection that ends at [replaced element, 0] is painted, the replaced element doesn't appear selected.&quot;
+          text run at (0,20) width 329: &quot;This test uses a select box for the replaced element.&quot;
+      RenderBlock {DIV} at (0,56) size 784x44
+        RenderText {#text} at (0,0) size 23x19
+          text run at (0,0) width 23: &quot;abc&quot;
+        RenderBR {BR} at (22,15) size 1x0
+        RenderMenuList {SELECT} at (2,22) size 208x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (6,3) size 196x14
+            RenderText at (0,0) size 176x14
+              text run at (0,0) width 176: &quot;this select box shouldn't be selected&quot;
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 1 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 1 of child 1 {BR} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionrtlmoveselectionrightleftexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/rtl-move-selection-right-left-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/rtl-move-selection-right-left-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/rtl-move-selection-right-left-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+Test to make sure left and right arrows keys behave correctly in RTL content.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS Move selection right
+PASS Move selection left
+FAIL Extend dragged selection right (Mac): Selection start is 13 but should be 14
+PASS Extend dragged selection left (Mac)
+FAIL Extend dragged selection right (Win): Selection start is 13 but should be 14
+FAIL Extend dragged selection left (Win): Selection start is 14 but should be 15
+FAIL Extend dragged selection right (Unix): Selection start is 13 but should be 14
+FAIL Extend dragged selection left (Unix): Selection start is 14 but should be 15
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 744x39
+          text run at (0,0) width 744: &quot;This test ensures selection that crosses the shadow DOM boundary of a readonly input element cannot be made by a&quot;
+          text run at (0,20) width 79: &quot;mouse drag.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 746x39
+          text run at (0,0) width 746: &quot;To manually test, select text by a mouse drag starting in \&quot;hello\&quot; and ending in \&quot;world\&quot;. Selection should only extend&quot;
+          text run at (0,20) width 158: &quot;inside the input element.&quot;
+      RenderBlock {DIV} at (0,112) size 784x33
+        RenderTextControl {INPUT} at (0,2) size 59x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (58,7) size 5x19
+          text run at (58,7) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 38x19
+          RenderText {#text} at (62,7) size 38x19
+            text run at (62,7) width 38: &quot;world&quot;
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,126) size 41x20
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 34x20
+      text run at (0,0) width 34: &quot;hello&quot;
+caret: position 3 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 1 {INPUT} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 744x39
+          text run at (0,0) width 744: &quot;This test ensures selection that crosses the shadow DOM boundary of a readonly input element cannot be made by a&quot;
+          text run at (0,20) width 79: &quot;mouse drag.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 767x39
+          text run at (0,0) width 767: &quot;To manually test, select text by a mouse drag starting in \&quot;world\&quot; and ending in \&quot;hello\&quot;. Selection should not extend into&quot;
+          text run at (0,20) width 116: &quot;the input element.&quot;
+      RenderBlock {DIV} at (0,112) size 784x33
+        RenderTextControl {INPUT} at (0,2) size 59x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (58,7) size 5x19
+          text run at (58,7) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 38x19
+          RenderText {#text} at (62,7) size 38x19
+            text run at (62,7) width 38: &quot;world&quot;
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,126) size 41x20
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 34x20
+      text run at (0,0) width 34: &quot;hello&quot;
+caret: position 2 of child 0 {#text} of child 3 {SPAN} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 744x39
+          text run at (0,0) width 744: &quot;This test ensures selection that crosses the shadow DOM boundary of a readonly input element cannot be made by a&quot;
+          text run at (0,20) width 79: &quot;mouse drag.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 767x39
+          text run at (0,0) width 767: &quot;To manually test, select text by a mouse drag starting in \&quot;hello\&quot; and ending in \&quot;world\&quot;. Selection should not extend into&quot;
+          text run at (0,20) width 116: &quot;the input element.&quot;
+      RenderBlock {DIV} at (0,112) size 784x33
+        RenderInline {SPAN} at (0,0) size 32x19
+          RenderText {#text} at (0,7) size 32x19
+            text run at (0,7) width 32: &quot;hello&quot;
+        RenderText {#text} at (31,7) size 5x19
+          text run at (31,7) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (35,2) size 60x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (0,0) size 0x0
+layer at (53,126) size 41x20
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 39x20
+      text run at (0,0) width 39: &quot;world&quot;
+caret: position 2 of child 0 {#text} of child 1 {SPAN} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-4-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-4-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 744x39
+          text run at (0,0) width 744: &quot;This test ensures selection that crosses the shadow DOM boundary of a readonly input element cannot be made by a&quot;
+          text run at (0,20) width 79: &quot;mouse drag.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;To manually test, select text by a mouse drag starting in \&quot;hello\&quot; and ending in \&quot;WebKit\&quot;. Selection should extend only in&quot;
+          text run at (0,20) width 250: &quot;the input element that contains \&quot;hello\&quot;.&quot;
+      RenderBlock {DIV} at (0,112) size 784x33
+        RenderTextControl {INPUT} at (0,2) size 59x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (58,7) size 5x19
+          text run at (58,7) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 38x19
+          RenderText {#text} at (62,7) size 38x19
+            text run at (62,7) width 38: &quot;world&quot;
+        RenderText {#text} at (99,7) size 5x19
+          text run at (99,7) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (103,2) size 60x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,126) size 41x20
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 34x20
+      text run at (0,0) width 34: &quot;hello&quot;
+layer at (121,126) size 41x20 backgroundClip at (121,126) size 40x20 clip at (121,126) size 40x20 scrollWidth 52
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 52x20
+      text run at (0,0) width 52: &quot;WebKit&quot;
+caret: position 3 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 1 {INPUT} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectacrossreadonlyinput5expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-5-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-5-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-across-readonly-input-5-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 744x39
+          text run at (0,0) width 744: &quot;This test ensures selection that crosses the shadow DOM boundary of a readonly input element cannot be made by a&quot;
+          text run at (0,20) width 79: &quot;mouse drag.&quot;
+      RenderBlock {P} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 776x39
+          text run at (0,0) width 776: &quot;To manually test, select text by a mouse drag starting in \&quot;WebKit\&quot; and ending in \&quot;hello\&quot;. Selection should extend only in&quot;
+          text run at (0,20) width 269: &quot;the input element that contains \&quot;WebKit\&quot;.&quot;
+      RenderBlock {DIV} at (0,112) size 784x33
+        RenderTextControl {INPUT} at (0,2) size 59x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (58,7) size 5x19
+          text run at (58,7) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 38x19
+          RenderText {#text} at (62,7) size 38x19
+            text run at (62,7) width 38: &quot;world&quot;
+        RenderText {#text} at (99,7) size 5x19
+          text run at (99,7) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (103,2) size 60x30 [bgcolor=#FFFFFF] [border: (1px solid #BCBCBC)]
+        RenderText {#text} at (0,0) size 0x0
+layer at (17,126) size 41x20
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 34x20
+      text run at (0,0) width 34: &quot;hello&quot;
+layer at (121,126) size 41x20 backgroundClip at (121,126) size 40x20 clip at (121,126) size 40x20 scrollWidth 52
+  RenderBlock {DIV} at (9,4) size 41x21
+    RenderText {#text} at (0,0) size 52x20
+      text run at (0,0) width 52: &quot;WebKit&quot;
+caret: position 2 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 5 {INPUT} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectall001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 737 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x900
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x900
+  RenderBlock {HTML} at (0,0) size 800x900
+    RenderBody {BODY} at (8,64) size 784x772
+      RenderBlock {DIV} at (64,0) size 748x772 [border: (50px solid #FF0000)]
+        RenderBlock {DIV} at (74,74) size 600x624
+          RenderText {#text} at (0,10) size 598x604
+            text run at (0,10) width 550: &quot;Four score and seven years ago our fathers brought forth,&quot;
+            text run at (549,10) width 7: &quot; &quot;
+            text run at (0,58) width 576: &quot;upon this continent, a new nation, conceived in Liberty, and&quot;
+            text run at (575,58) width 7: &quot; &quot;
+            text run at (0,106) width 562: &quot;dedicated to the proposition that all men are created equal.&quot;
+            text run at (561,106) width 7: &quot; &quot;
+            text run at (0,154) width 590: &quot;Now we are engaged in a great civil war, testing whether that&quot;
+            text run at (589,154) width 7: &quot; &quot;
+            text run at (0,202) width 553: &quot;nation, or any nation, so conceived, and so dedicated, can&quot;
+            text run at (552,202) width 7: &quot; &quot;
+            text run at (0,250) width 556: &quot;long endure. We are met here on a great battlefield of that&quot;
+            text run at (555,250) width 7: &quot; &quot;
+            text run at (0,298) width 532: &quot;war. We have come to dedicate a portion of it as a final&quot;
+            text run at (531,298) width 7: &quot; &quot;
+            text run at (0,346) width 544: &quot;resting place for those who here gave their lives that that&quot;
+            text run at (543,346) width 7: &quot; &quot;
+            text run at (0,394) width 565: &quot;nation might live. It is altogether fitting and proper that we&quot;
+            text run at (564,394) width 7: &quot; &quot;
+            text run at (0,442) width 557: &quot;should do this. Four score and seven years ago our fathers&quot;
+            text run at (556,442) width 7: &quot; &quot;
+            text run at (0,490) width 592: &quot;brought forth, upon this continent, a new nation, conceived in&quot;
+            text run at (591,490) width 7: &quot; &quot;
+            text run at (0,538) width 546: &quot;Liberty, and dedicated to the proposition that all men are&quot;
+            text run at (545,538) width 7: &quot; &quot;
+            text run at (0,586) width 134: &quot;created equal.&quot;
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 737 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectall002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 180 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x900
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x900
+  RenderBlock {HTML} at (0,0) size 800x900
+    RenderBody {BODY} at (8,64) size 784x772
+      RenderBlock {DIV} at (64,0) size 748x772 [border: (50px solid #FF0000)]
+        RenderBlock {DIV} at (74,74) size 600x624
+          RenderText {#text} at (0,10) size 582x124
+            text run at (0,10) width 550: &quot;Four score and seven years ago our fathers brought forth,&quot;
+            text run at (549,10) width 7: &quot; &quot;
+            text run at (0,58) width 576: &quot;upon this continent, a new nation, conceived in Liberty, and&quot;
+            text run at (575,58) width 7: &quot; &quot;
+            text run at (0,106) width 393: &quot;dedicated to the proposition that all men &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,154) size 584x124
+            text run at (0,154) width 569: &quot;are created equal. Now we are engaged in a great civil war,&quot;
+            text run at (568,154) width 7: &quot; &quot;
+            text run at (0,202) width 578: &quot;testing whether that nation, or any nation, so conceived, and&quot;
+            text run at (577,202) width 7: &quot; &quot;
+            text run at (0,250) width 562: &quot;so dedicated, can long endure. We are met here on a great &quot;
+          RenderBR {BR} at (561,272) size 1x0
+          RenderText {#text} at (0,298) size 597x172
+            text run at (0,298) width 591: &quot;battlefield of that war. We have come to dedicate a portion of&quot;
+            text run at (590,298) width 7: &quot; &quot;
+            text run at (0,346) width 572: &quot;it as a final resting place for those who here gave their lives&quot;
+            text run at (571,346) width 7: &quot; &quot;
+            text run at (0,394) width 573: &quot;that that nation might live. It is altogether fitting and proper&quot;
+            text run at (572,394) width 7: &quot; &quot;
+            text run at (0,442) width 223: &quot;that we should do this. &quot;
+          RenderBR {BR} at (222,464) size 1x0
+          RenderText {#text} at (0,490) size 582x124
+            text run at (0,490) width 550: &quot;Four score and seven years ago our fathers brought forth,&quot;
+            text run at (549,490) width 7: &quot; &quot;
+            text run at (0,538) width 576: &quot;upon this continent, a new nation, conceived in Liberty, and&quot;
+            text run at (575,538) width 7: &quot; &quot;
+            text run at (0,586) width 562: &quot;dedicated to the proposition that all men are created equal.&quot;
+selection start: position 1 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of body
+selection end:   position 180 of child 6 {#text} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectall003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document toDOMRange:range from 1 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 812x1044
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x1044
+  RenderBlock {HTML} at (0,0) size 800x1044
+    RenderBody {BODY} at (64,64) size 748x916 [border: (50px solid #FF0000)]
+      RenderBlock (anonymous) at (74,74) size 600x768
+        RenderBR {BR} at (0,10) size 0x28
+        RenderBR {BR} at (0,58) size 0x28
+        RenderText {#text} at (0,106) size 598x604
+          text run at (0,106) width 550: &quot;Four score and seven years ago our fathers brought forth,&quot;
+          text run at (549,106) width 7: &quot; &quot;
+          text run at (0,154) width 576: &quot;upon this continent, a new nation, conceived in Liberty, and&quot;
+          text run at (575,154) width 7: &quot; &quot;
+          text run at (0,202) width 562: &quot;dedicated to the proposition that all men are created equal.&quot;
+          text run at (561,202) width 7: &quot; &quot;
+          text run at (0,250) width 590: &quot;Now we are engaged in a great civil war, testing whether that&quot;
+          text run at (589,250) width 7: &quot; &quot;
+          text run at (0,298) width 553: &quot;nation, or any nation, so conceived, and so dedicated, can&quot;
+          text run at (552,298) width 7: &quot; &quot;
+          text run at (0,346) width 556: &quot;long endure. We are met here on a great battlefield of that&quot;
+          text run at (555,346) width 7: &quot; &quot;
+          text run at (0,394) width 532: &quot;war. We have come to dedicate a portion of it as a final&quot;
+          text run at (531,394) width 7: &quot; &quot;
+          text run at (0,442) width 544: &quot;resting place for those who here gave their lives that that&quot;
+          text run at (543,442) width 7: &quot; &quot;
+          text run at (0,490) width 565: &quot;nation might live. It is altogether fitting and proper that we&quot;
+          text run at (564,490) width 7: &quot; &quot;
+          text run at (0,538) width 557: &quot;should do this. Four score and seven years ago our fathers&quot;
+          text run at (556,538) width 7: &quot; &quot;
+          text run at (0,586) width 592: &quot;brought forth, upon this continent, a new nation, conceived in&quot;
+          text run at (591,586) width 7: &quot; &quot;
+          text run at (0,634) width 546: &quot;Liberty, and dedicated to the proposition that all men are&quot;
+          text run at (545,634) width 7: &quot; &quot;
+          text run at (0,682) width 140: &quot;created equal. &quot;
+        RenderBR {BR} at (139,704) size 1x0
+        RenderBR {BR} at (0,730) size 0x28
+      RenderBlock {DIV} at (74,842) size 600x0
+selection start: position 0 of child 1 {BR} of body
+selection end:   position 1 of child 5 {BR} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectall004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 812x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (64,64) size 748x472 [border: (50px solid #FF0000)]
+      RenderBlock {DIV} at (74,74) size 600x0
+      RenderBlock (anonymous) at (74,74) size 600x48
+        RenderText {#text} at (0,10) size 54x28
+          text run at (0,10) width 54: &quot;Hello&quot;
+      RenderTable {TABLE} at (74,122) size 6x6
+        RenderTableSection {TBODY} at (0,0) size 6x6
+          RenderTableRow {TR} at (0,2) size 6x2
+            RenderTableCell {TD} at (2,2) size 2x2 [r=0 c=0 rs=1 cs=1]
+      RenderBlock (anonymous) at (74,128) size 600x48
+        RenderBR {BR} at (0,10) size 0x28
+selection start: position 1 of child 2 {#text} of body
+selection end:   position 0 of child 5 {BR} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectall005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderText {#text} at (0,0) size 762x39
+        text run at (0,0) width 762: &quot;VisiblePositions created at [html, x] where html is non-editable should descend into an editable body, for convenience.&quot;
+        text run at (0,20) width 278: &quot;Everything on this page should be selected.&quot;
+      RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of body
+selection end:   position 164 of child 0 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectall006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text &gt; BODY &gt; HTML &gt; #document to 164 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 2 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderText {#text} at (0,0) size 762x39
+        text run at (0,0) width 762: &quot;VisiblePositions created at [html, x] where html is non-editable should descend into an editable body, for convenience.&quot;
+        text run at (0,20) width 278: &quot;Everything on this page should be selected.&quot;
+      RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 0 {#text} of body
+selection end:   position 164 of child 0 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectalliframeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-iframe-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-iframe-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-all-iframe-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock (anonymous) at (0,0) size 784x174
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderBlock {DIV} at (0,0) size 284x20
+                  RenderBR {BR} at (0,0) size 0x19
+        RenderBR {BR} at (304,154) size 0x0
+        RenderBR {BR} at (0,154) size 0x19
+      RenderBlock {P} at (0,190) size 784x40
+        RenderInline {B} at (0,0) size 674x19
+          RenderText {#text} at (0,0) size 674x19
+            text run at (0,0) width 498: &quot;This test uses the eventSender to do a mouse click to focus the subframe. &quot;
+            text run at (497,0) width 177: &quot;It won't run interactively.&quot;
+        RenderText {#text} at (673,0) size 734x39
+          text run at (673,0) width 5: &quot; &quot;
+          text run at (677,0) width 57: &quot;To run it&quot;
+          text run at (0,20) width 363: &quot;manually, click on the iframe, Select All, then hit delete.&quot;
+      RenderBlock (anonymous) at (0,246) size 784x60
+        RenderText {#text} at (0,0) size 779x59
+          text run at (0,0) width 779: &quot;Selecting all the content in a contenteditable iframe should select the iframe itself (to help the user delete the iframe) only&quot;
+          text run at (0,20) width 237: &quot;if the iframe is in an editable region. &quot;
+          text run at (236,20) width 439: &quot;This test loads ../resources/select-all-iframe-src.html into an iframe. &quot;
+          text run at (674,20) width 100: &quot;That file does a&quot;
+          text run at (0,40) width 131: &quot;Select All + Delete. &quot;
+          text run at (130,40) width 175: &quot;Two things should happen:&quot;
+      RenderBlock {UL} at (0,322) size 784x60
+        RenderListItem {LI} at (40,0) size 744x40
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 689x39
+            text run at (0,0) width 462: &quot;The Select All operation should not select the iframe, only it's contents. &quot;
+            text run at (461,0) width 228: &quot;The results of the Select All will be&quot;
+            text run at (0,20) width 518: &quot;apparent from the delegate messages that DumpRenderTree receives and dumps.&quot;
+        RenderListItem {LI} at (40,40) size 744x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 344x19
+            text run at (0,0) width 344: &quot;The contents of the editable iframe should be deleted.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectbidirunexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-bidi-run-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-bidi-run-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-bidi-run-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+This test ensures WebKit lets user select bidirectional text intuitively. To manually test, select text in blue box in each test case below by a mouse drag from left to right. The changes in the selected text should match the expectations before |. Do the same by a mouse drag from right to left and expectations are after |.
+
+Test &quot;abcABC&quot; in &quot;abcABC&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABCdef&quot; in &quot;ABCdef&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABC&quot; in &quot;abcABCdef&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABC&quot; in &quot;ABCdef&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ef&quot; in &quot;ABCdef&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;AB&quot; in &quot;abcABC&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;12&quot; in &quot;aXM12JNd&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABC 123&quot; in &quot;ABC 123&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABC 123&quot; in &quot;ABC 123&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABC&quot; in &quot;aABCb&quot;:
+Selecting from left to right
+Selecting from right to left
+
+Test &quot;ABC&quot; in &quot;ABC&quot;:
+Selecting from left to right
+Selecting from right to left
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectboxexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-box-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-box-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-box-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,73 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 706x19
+          text run at (0,0) width 300: &quot;This tests caret movement across a select box. &quot;
+          text run at (299,0) width 407: &quot;The caret should skip over the select box as if it were an image.&quot;
+      RenderBlock {DIV} at (0,36) size 784x24
+        RenderBlock {DIV} at (0,0) size 784x24
+          RenderText {#text} at (0,1) size 73x19
+            text run at (0,1) width 73: &quot;select box: &quot;
+          RenderMenuList {SELECT} at (74,2) size 40x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+            RenderBlock (anonymous) at (6,3) size 27x14
+              RenderText at (0,0) size 7x14
+                text run at (0,0) width 7: &quot;1&quot;
+          RenderText {#text} at (115,1) size 68x19
+            text run at (115,1) width 68: &quot; the end ...&quot;
+caret: position 1 of child 0 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectelementparagraphboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-element-paragraph-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-element-paragraph-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-element-paragraph-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 765x39
+          text run at (0,0) width 333: &quot;This tests paragraphBoundary selection navigation. &quot;
+          text run at (332,0) width 433: &quot;The caret should be at the end of the paragraph below, just after the&quot;
+          text run at (0,20) width 69: &quot;select box.&quot;
+      RenderBlock {DIV} at (0,56) size 784x24
+        RenderMenuList {SELECT} at (2,2) size 39x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+          RenderBlock (anonymous) at (6,3) size 27x14
+            RenderText at (0,0) size 7x14
+              text run at (0,0) width 7: &quot;1&quot;
+caret: position 1 of child 0 {SELECT} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectfromtextfieldoutwardsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-from-textfield-outwards-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-from-textfield-outwards-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-from-textfield-outwards-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 11 of #text &gt; DIV &gt; #document-fragment to 11 of #text &gt; DIV &gt; #document-fragment affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 108x19
+          text run at (0,0) width 108: &quot;This is a test for &quot;
+        RenderInline {I} at (0,0) size 767x39
+          RenderInline {A} at (0,0) size 354x19 [color=#0000EE]
+            RenderText {#text} at (107,0) size 354x19
+              text run at (107,0) width 354: &quot;http://bugzilla.opendarwin.org/show_bug.cgi?id=9312&quot;
+          RenderText {#text} at (460,0) size 767x39
+            text run at (460,0) width 5: &quot; &quot;
+            text run at (464,0) width 303: &quot;REGRESSION: Selection bug in new text fields&quot;
+            text run at (0,20) width 217: &quot;when selecting past the first letter&quot;
+        RenderText {#text} at (216,20) size 5x19
+          text run at (216,20) width 5: &quot;.&quot;
+      RenderBlock {HR} at (0,56) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,74) size 784x60
+        RenderText {#text} at (0,0) size 771x59
+          text run at (0,0) width 761: &quot;Curabitur pretium, quam quis semper malesuada, est libero feugiat libero, vel fringilla orci nibh sed neque. Quisque eu&quot;
+          text run at (0,20) width 771: &quot;nulla non nisi molestie accumsan. Etiam tellus urna, laoreet ac, laoreet non, suscipit sed, sapien. Phasellus vehicula, sem&quot;
+          text run at (0,40) width 569: &quot;at posuere vehicula, augue nibh molestie nisl, nec ullamcorper lacus ante vulputate pede.&quot;
+      RenderBlock (anonymous) at (0,150) size 784x91
+        RenderTextControl {INPUT} at (20,20) size 289x51 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {P} at (0,257) size 784x80
+        RenderText {#text} at (0,0) size 772x79
+          text run at (0,0) width 772: &quot;Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris viverra augue vitae purus.&quot;
+          text run at (0,20) width 728: &quot;Morbi sed sem. Donec dui nisi, ultrices non, pretium quis, hendrerit non, est. Donec tellus. Donec eget dui id eros&quot;
+          text run at (0,40) width 767: &quot;pharetra rutrum. Suspendisse sodales lectus sit amet nulla. Morbi tortor arcu, convallis blandit, elementum eu, aliquet a,&quot;
+          text run at (0,60) width 39: &quot;tellus.&quot;
+layer at (39,189) size 267x29
+  RenderBlock {DIV} at (11,11) size 267x29
+    RenderText {#text} at (0,0) size 199x29
+      text run at (0,0) width 199: &quot;Lorem ipsum dolor&quot;
+caret: position 11 of child 0 {#text} of child 0 {DIV} of {#document-fragment} of child 7 {INPUT} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectlinebreakwithoppositedirectionalityexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-line-break-with-opposite-directionality-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-line-break-with-opposite-directionality-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-line-break-with-opposite-directionality-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+This tests selecting LTR/RTL text that spans multiple lines in RTL/LTR block (opposite directionality). To manually test, select text in each of editable regions below by dragging mouse from one edge to another. The entire line should be selected.
+
+TEST 1 line 1:FAIL - expected &quot;abc&quot; but got &quot;&quot;
+TEST 1 line 2:FAIL - expected &quot;def&quot; but got &quot;&quot;
+TEST 2 line 1:FAIL - expected &quot;ابص&quot; but got &quot;&quot;
+TEST 3 line 1:FAIL - expected &quot;abc&quot; but got &quot;&quot;
+TEST 4 line 1:FAIL - expected &quot;ابص&quot; but got &quot;&quot;
+TEST 4 line 2:PASS
+TEST 4 line 3:FAIL - expected &quot;a&quot; but got &quot;&quot;
+TEST 5 line 1:FAIL - expected &quot;abc&quot; but got &quot;&quot;
+TEST 5 line 2:PASS
+TEST 5 line 3:FAIL - expected &quot;ا&quot; but got &quot;&quot;
+TEST 6 line 1:FAIL - expected &quot;ابص&quot; but got &quot;&quot;
+TEST 6 line 2:PASS
+TEST 6 line 3:FAIL - expected &quot;a&quot; but got &quot;&quot;
+TEST 7 line 1:FAIL - expected &quot;ابص&quot; but got &quot;&quot;
+TEST 7 line 2:PASS
+TEST 7 line 3:FAIL - expected &quot;a&quot; but got &quot;&quot;
+TEST 8 line 1:FAIL - expected &quot;ابص&quot; but got &quot;&quot;
+TEST 8 line 2:PASS
+TEST 8 line 3:FAIL - expected &quot;a&quot; but got &quot;&quot;
+TEST 9 line 1:FAIL - expected &quot;abc&quot; but got &quot;&quot;
+TEST 9 line 2:PASS
+TEST 9 line 3:FAIL - expected &quot;a&quot; but got &quot;&quot;
+TEST 10 line 1:FAIL - expected &quot;abc&quot; but got &quot;&quot;
+TEST 10 line 2:PASS
+TEST 10 line 3:FAIL - expected &quot;a&quot; but got &quot;&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectmissingimageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-missing-image-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-missing-image-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-missing-image-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x128 [border: (2px solid #FF0000)]
+        RenderImage {IMG} at (14,14) size 550x100
+        RenderText {#text} at (0,0) size 0x0
+selection start: position 0 of child 1 {IMG} of child 1 {DIV} of body
+selection end:   position 1 of child 1 {IMG} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectoutofeditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-editable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-editable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-editable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+hello world
+Dragging to the left: FAIL - expected 0 but got 10
+Dragging to the left: FAIL - expected 11 but got 10
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectoutoffloatedcontenteditableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-contenteditable-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-contenteditable-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Some text before the floats. Drag from the middle. Some floated text in a div. Some text after the floats.
+To test manually, drag from the middle of the editable div to the right, into the non-floated text. The selection should go to the end of the input element and not jump to the beginning.
+
+FAIL
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectoutoffloatedinputexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-input-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-input-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-input-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Some text before the floats. Some floated text in a div. Some text after the floats.
+To test manually, drag from the middle of the input element to the right, into the non-floated text. The selection should go to the end of the input element and not jump to the beginning.
+
+FAIL
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectoutoffloatedtextareaexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-textarea-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-textarea-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-out-of-floated-textarea-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Some text before the floats. Some floated text in a div. Some text after the floats.
+To test manually, drag from the middle of the textarea to the right, into the non-floated text. The selection should go to the end of the input element and not jump to the beginning.
+
+FAIL
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselecttextoverflowellipsisexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/select-text-overflow-ellipsis-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/select-text-overflow-ellipsis-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/select-text-overflow-ellipsis-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {H3} at (0,0) size 784x23
+        RenderText {#text} at (0,0) size 69x22
+          text run at (0,0) width 69: &quot;Test for &quot;
+        RenderInline {A} at (0,0) size 153x22 [color=#0000EE]
+          RenderText {#text} at (68,0) size 153x22
+            text run at (68,0) width 153: &quot;WebKit bug 29968&quot;
+        RenderText {#text} at (220,0) size 561x22
+          text run at (220,0) width 561: &quot;: Selecting text with text-overflow ellipsis should not show cut off text&quot;
+layer at (8,50) size 95x20 scrollWidth 124
+  RenderBlock {DIV} at (0,41) size 95x21
+    RenderText {#text} at (0,0) size 124x19
+      text run at (0,0) width 124: &quot;Lorem ipsum dolor&quot;
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 11 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectNodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNode-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNode-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 343x19
+          text run at (0,0) width 343: &quot;This tests Range.selectNode() of a text node and a br.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 24x19
+          text run at (0,0) width 24: &quot;one&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 24x19
+          text run at (0,0) width 24: &quot;two&quot;
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 32x19
+          text run at (0,20) width 32: &quot;three&quot;
+      RenderBlock {DIV} at (0,96) size 784x20
+        RenderText {#text} at (0,0) size 27x19
+          text run at (0,0) width 27: &quot;four&quot;
+      RenderBlock {UL} at (0,132) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 55x19
+            text run at (0,0) width 55: &quot;Success.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectNodeContentsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNodeContents-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNodeContents-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selectNodeContents-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 400x19
+          text run at (0,0) width 400: &quot;This tests Range.selectNodeContents() of a text node and a br.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 24x19
+          text run at (0,0) width 24: &quot;one&quot;
+      RenderBlock {DIV} at (0,56) size 784x40
+        RenderText {#text} at (0,0) size 24x19
+          text run at (0,0) width 24: &quot;two&quot;
+        RenderBR {BR} at (24,15) size 0x0
+        RenderText {#text} at (0,20) size 32x19
+          text run at (0,20) width 32: &quot;three&quot;
+      RenderBlock {DIV} at (0,96) size 784x20
+        RenderText {#text} at (0,0) size 27x19
+          text run at (0,0) width 27: &quot;four&quot;
+      RenderBlock {UL} at (0,132) size 784x20
+        RenderListItem {LI} at (40,0) size 744x20
+          RenderListMarker at (-18,0) size 7x19: bullet
+          RenderText {#text} at (0,0) size 55x19
+            text run at (0,0) width 55: &quot;Success.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselection3748164fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-3748164-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-3748164-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-3748164-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x74 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x46
+          RenderInline {SPAN} at (0,0) size 0x0
+          RenderBR {BR} at (0,1) size 0x28
+          RenderInline {SPAN} at (0,0) size 33x16
+            RenderText {#text} at (0,30) size 33x16
+              text run at (0,30) width 33: &quot;- Ken&quot;
+          RenderBR {BR} at (32,43) size 1x0
+          RenderInline {SPAN} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0
+caret: position 5 of child 0 {#text} of child 4 {SPAN} of child 1 {DIV} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectionactionsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-actions-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-actions-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-actions-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderText {#text} at (0,0) size 764x39
+        text run at (0,0) width 764: &quot;This tests whether certain NSResponder methods that should only operate on editable regions modify a selection that is&quot;
+        text run at (0,20) width 160: &quot;not in an editable region.&quot;
+      RenderBR {BR} at (159,35) size 1x0
+      RenderText {#text} at (0,40) size 86x19
+        text run at (0,40) width 86: &quot;This is a para&quot;
+      RenderInline {SPAN} at (0,0) size 9x19 [color=#0000FF]
+        RenderText {#text} at (85,40) size 9x19
+          text run at (85,40) width 9: &quot;g&quot;
+      RenderText {#text} at (93,40) size 34x19
+        text run at (93,40) width 34: &quot;raph.&quot;
+      RenderBR {BR} at (126,55) size 1x0
+      RenderText {#text} at (0,60) size 65x19
+        text run at (0,60) width 65: &quot;Some text&quot;
+      RenderBR {BR} at (64,75) size 1x0
+      RenderText {#text} at (0,80) size 65x19
+        text run at (0,80) width 65: &quot;Some text&quot;
+      RenderBR {BR} at (64,95) size 1x0
+      RenderText {#text} at (0,100) size 65x19
+        text run at (0,100) width 65: &quot;Some text&quot;
+      RenderBR {BR} at (64,115) size 1x0
+      RenderText {#text} at (0,120) size 65x19
+        text run at (0,120) width 65: &quot;Some text&quot;
+      RenderBR {BR} at (64,135) size 1x0
+      RenderText {#text} at (0,140) size 127x19
+        text run at (0,140) width 127: &quot;This is a paragraph.&quot;
+      RenderText {#text} at (0,0) size 0x0
+caret: position 15 of child 2 {#text} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectionbackgroundexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-background-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-background-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-background-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 783x19
+          text run at (0,0) width 783: &quot;This tests that the selection tint is grey when the WebView is not focused (using the pixel output from DumpRenderTree).&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 182x19
+          text run at (0,0) width 182: &quot;This text should be selected.&quot;
+selection start: position 0 of child 0 {#text} of child 3 {DIV} of body
+selection end:   position 29 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectionbuttontextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-button-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-button-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-button-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x148
+  RenderBlock {HTML} at (0,0) size 800x148
+    RenderBody {BODY} at (8,16) size 784x124
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 568x19
+          text run at (0,0) width 568: &quot;To PASS this test case the text of the button label should not be selected in the selection.&quot;
+      RenderBlock {DIV} at (0,36) size 784x88
+        RenderBlock (anonymous) at (0,0) size 784x44
+          RenderText {#text} at (0,0) size 50x19
+            text run at (0,0) width 50: &quot;Buttons&quot;
+          RenderBR {BR} at (49,0) size 1x19
+          RenderText {#text} at (0,21) size 61x19
+            text run at (0,21) width 61: &quot;with text &quot;
+          RenderButton {INPUT} at (62,22) size 63x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+            RenderBlock (anonymous) at (12,3) size 38x14
+              RenderText at (0,0) size 38x14
+                text run at (0,0) width 38: &quot;too little&quot;
+          RenderText {#text} at (126,21) size 59x19
+            text run at (126,21) width 59: &quot; too little&quot;
+        RenderBlock {DIV} at (0,44) size 784x24
+          RenderText {#text} at (0,1) size 56x19
+            text run at (0,1) width 56: &quot;and text &quot;
+          RenderButton {INPUT} at (57,2) size 70x20 [bgcolor=#FFFFFF02] [border: (1px solid #4C4C4C)]
+            RenderBlock (anonymous) at (12,3) size 46x14
+              RenderText at (0,0) size 46x14
+                text run at (0,0) width 46: &quot;too much&quot;
+          RenderText {#text} at (128,1) size 65x19
+            text run at (128,1) width 65: &quot; too much&quot;
+        RenderBlock (anonymous) at (0,68) size 784x20
+          RenderText {#text} at (0,0) size 250x19
+            text run at (0,0) width 250: &quot;Should not be selected in the selection.&quot;
+selection start: position 0 of child 0 {#text} of child 1 {P} of body
+selection end:   position 41 of child 6 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionselectionextendshouldnotmoveacrosscaretonmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-extend-should-not-move-across-caret-on-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-extend-should-not-move-across-caret-on-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/selection-extend-should-not-move-across-caret-on-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+On Mac when word-selecting backwards starting with the caret on the middle of a word and then word-selecting forward, the caret is left in the same place where it was, instead of directly selecting to the end of the word (which is windows/unix behavior).
+
+mac:
+Extend backward and then forward by word: PASS
+Extend forward and then backward by word: PASS
+Extend backward and then forward by line: PASS
+Extend forward and then backward by line: PASS
+Extend backward and then forward by paragraph: PASS
+Extend forward and then backward by paragraph: PASS
+win:
+Extend backward and then forward by word: FAIL: expected &quot;ne%20&quot;, got &quot;ne%202%0A&quot;
+Extend forward and then backward by word: FAIL: expected &quot;li&quot;, got &quot;ne%202%0A&quot;
+Extend backward and then forward by line: PASS
+Extend forward and then backward by line: PASS
+Extend backward and then forward by paragraph: PASS
+Extend forward and then backward by paragraph: PASS
+unix:
+Extend backward and then forward by word: FAIL: expected &quot;ne&quot;, got &quot;ne%20&quot;
+Extend forward and then backward by word: PASS
+Extend backward and then forward by line: PASS
+Extend forward and then backward by line: PASS
+Extend backward and then forward by paragraph: PASS
+Extend forward and then backward by paragraph: PASS
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionshiftclickexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/shift-click-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/shift-click-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/shift-click-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+Tests that shift+clicking does the platform correct behavior.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five&quot;
+FAIL Selection direction is not correct. Expected a forward selection.[anchorNode: [object Text](one ) anchorOffset: 4 focusNode: [object Text](one ) focusOffset: 4 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five six&quot;
+FAIL Selection direction is not correct. Expected a forward selection.[anchorNode: [object Text](five six) anchorOffset: 8 focusNode: [object Text](five six) focusOffset: 8 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five&quot;
+FAIL Selection direction is not correct. Expected a forward selection.[anchorNode: [object Text](four ) anchorOffset: 5 focusNode: [object Text](four ) focusOffset: 5 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;one two three
+four five&quot;
+FAIL Selection direction is not correct. Expected a backward selection.[anchorNode: [object Text](one ) anchorOffset: 0 focusNode: [object Text](one ) focusOffset: 0 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five&quot;
+FAIL Selection direction is not correct. Expected a backward selection.[anchorNode: [object Text](one ) anchorOffset: 4 focusNode: [object Text](one ) focusOffset: 4 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five&quot;
+FAIL Selection direction is not correct. Expected a forward selection.[anchorNode: [object Text](one ) anchorOffset: 4 focusNode: [object Text](one ) focusOffset: 4 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five six&quot;
+FAIL Selection direction is not correct. Expected a forward selection.[anchorNode: [object Text](five six) anchorOffset: 8 focusNode: [object Text](five six) focusOffset: 8 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two three
+four five&quot;
+FAIL Selection direction is not correct. Expected a forward selection.[anchorNode: [object Text](four ) anchorOffset: 5 focusNode: [object Text](four ) focusOffset: 5 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;one two&quot;
+FAIL Selection direction is not correct. Expected a backward selection.[anchorNode: [object Text](one ) anchorOffset: 0 focusNode: [object Text](one ) focusOffset: 0 isCollapsed: true]
+FAIL window.getSelection().toString() is &quot;&quot; and should be &quot;two&quot;
+FAIL Selection direction is not correct. Expected a backward selection.[anchorNode: [object Text](one ) anchorOffset: 4 focusNode: [object Text](one ) focusOffset: 4 isCollapsed: true]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+one two three
+four five six
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionshrinkselectionaftershiftpagedownexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/shrink-selection-after-shift-pagedown-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/shrink-selection-after-shift-pagedown-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/shrink-selection-after-shift-pagedown-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This tests shrinking a selection with shift-up after extending it with shift-PageDown.
+
+This test does not run interactively. It uses the event sender to do mouse clicks. To run it manually, press shift-PagDown. Then press shift-up. The selection should shrink by one line from the bottom after shift-up.
+
+
+SUCCESS: The selected text is &quot;L02 L03 L04 &quot;.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionskipnoneditable1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/skip-non-editable-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/skip-non-editable-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/skip-non-editable-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 12 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document to 1 of TD &gt; TR &gt; TBODY &gt; TABLE &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests moving the caret in content of mixed editability. The caret should jump to the next editable region that shares a common editable ancestor when it reaches non-editable content.
+
+editable content
+non-editable content        non-editable content        editable content
+editable content
+Success
+Success
+Success
+Success
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiontablecaret1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 391x19
+          text run at (0,0) width 391: &quot;This tests the caret position for the caret before a block table.&quot;
+      RenderBlock {DIV} at (0,36) size 784x122
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderTable {TABLE} at (0,20) size 53x82 [border: (1px solid #999999)]
+          RenderTableSection {TBODY} at (1,1) size 51x80
+            RenderTableRow {TR} at (0,2) size 51x24
+              RenderTableCell {TD} at (2,2) size 47x24 [border: (1px solid #999999)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 24x19
+                  text run at (2,2) width 24: &quot;this&quot;
+            RenderTableRow {TR} at (0,28) size 51x24
+              RenderTableCell {TD} at (2,28) size 47x24 [border: (1px solid #999999)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 11x19
+                  text run at (2,2) width 11: &quot;is&quot;
+            RenderTableRow {TR} at (0,54) size 51x24
+              RenderTableCell {TD} at (2,54) size 47x24 [border: (1px solid #999999)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 43x19
+                  text run at (2,2) width 43: &quot;a table&quot;
+        RenderBlock (anonymous) at (0,102) size 784x20
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: &quot;baz&quot;
+caret: position 0 of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiontablecaret2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 380x19
+          text run at (0,0) width 380: &quot;This tests the caret position for the caret after a block table.&quot;
+      RenderBlock {DIV} at (0,36) size 784x122
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderTable {TABLE} at (0,20) size 53x82 [border: (1px solid #999999)]
+          RenderTableSection {TBODY} at (1,1) size 51x80
+            RenderTableRow {TR} at (0,2) size 51x24
+              RenderTableCell {TD} at (2,2) size 47x24 [border: (1px solid #999999)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 24x19
+                  text run at (2,2) width 24: &quot;this&quot;
+            RenderTableRow {TR} at (0,28) size 51x24
+              RenderTableCell {TD} at (2,28) size 47x24 [border: (1px solid #999999)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 11x19
+                  text run at (2,2) width 11: &quot;is&quot;
+            RenderTableRow {TR} at (0,54) size 51x24
+              RenderTableCell {TD} at (2,54) size 47x24 [border: (1px solid #999999)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 43x19
+                  text run at (2,2) width 43: &quot;a table&quot;
+        RenderBlock (anonymous) at (0,102) size 784x20
+          RenderText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: &quot;baz&quot;
+caret: position 1 of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiontablecaret3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-3-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/table-caret-3-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 389x19
+          text run at (0,0) width 389: &quot;This tests the caret position for the caret after an inline table.&quot;
+      RenderBlock {DIV} at (0,36) size 784x82
+        RenderText {#text} at (0,10) size 22x19
+          text run at (0,10) width 22: &quot;foo&quot;
+        RenderTable {TABLE} at (21,0) size 54x82 [border: (1px solid #999999)]
+          RenderTableSection {TBODY} at (1,1) size 51x80
+            RenderTableRow {TR} at (0,2) size 51x24
+              RenderTableCell {TD} at (2,2) size 47x24 [border: (1px solid #999999)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 24x19
+                  text run at (2,2) width 24: &quot;this&quot;
+            RenderTableRow {TR} at (0,28) size 51x24
+              RenderTableCell {TD} at (2,28) size 47x24 [border: (1px solid #999999)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 11x19
+                  text run at (2,2) width 11: &quot;is&quot;
+            RenderTableRow {TR} at (0,54) size 51x24
+              RenderTableCell {TD} at (2,54) size 47x24 [border: (1px solid #999999)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 43x19
+                  text run at (2,2) width 43: &quot;a table&quot;
+        RenderText {#text} at (74,10) size 23x19
+          text run at (74,10) width 23: &quot;baz&quot;
+caret: position 1 of child 1 {TABLE} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiontransformedselectionrectsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/transformed-selection-rects-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/transformed-selection-rects-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/transformed-selection-rects-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x572
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 755x19
+          text run at (0,0) width 755: &quot;Tests that selection rects take transforms into account. The red box should be the bounds of the transformed selection.&quot;
+layer at (28,48) size 622x100
+  RenderBlock {DIV} at (20,40) size 622x100 [border: (1px solid #000000)]
+    RenderBlock {P} at (11,35) size 600x30
+      RenderText {#text} at (0,1) size 135x28
+        text run at (0,1) width 135: &quot;Lorem ipsum &quot;
+      RenderInline {SPAN} at (0,0) size 388x28
+        RenderText {#text} at (134,1) size 388x28
+          text run at (134,1) width 388: &quot;dolor sit amet, consectetur adipisicing&quot;
+      RenderText {#text} at (521,1) size 44x28
+        text run at (521,1) width 44: &quot; elit.&quot;
+selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 6 of child 0 {#text} of child 1 {SPAN} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectiontripleclickinpreexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/triple-click-in-pre-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/triple-click-in-pre-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/triple-click-in-pre-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 30 of #text &gt; PRE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 30 of #text &gt; PRE &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 692x19
+          text run at (0,0) width 388: &quot;This tests modifying a selection created with a double click. &quot;
+          text run at (387,0) width 305: &quot;The new selection should use word granularity.&quot;
+      RenderBlock {P} at (0,36) size 784x40 [color=#008000]
+        RenderText {#text} at (0,0) size 775x39
+          text run at (0,0) width 230: &quot;This test does not run interactively. &quot;
+          text run at (229,0) width 360: &quot;It uses the testRunners eventSender to do mouse clicks. &quot;
+          text run at (588,0) width 163: &quot;To run it manually, triple&quot;
+          text run at (0,20) width 494: &quot;click on the second line in the box below (anywhere after \&quot;whitespace:pre\&quot;). &quot;
+          text run at (493,20) width 282: &quot;The triple click should select the entire line.&quot;
+      RenderBlock {DIV} at (0,92) size 784x56
+        RenderBlock {DIV} at (0,0) size 784x56 [border: (1px solid #0000FF)]
+          RenderBlock {PRE} at (1,14) size 782x28
+            RenderText {#text} at (0,0) size 118x28
+              text run at (0,0) width 118: &quot;this text is in&quot;
+              text run at (117,0) width 1: &quot; &quot;
+              text run at (0,14) width 110: &quot;whitespace:pre&quot;
+caret: position 30 of child 0 {#text} of child 1 {PRE} of child 1 {DIV} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionunrendered001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 41: &quot; baz&quot;
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionunrendered002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 41: &quot; baz&quot;
+caret: position 1 of child 3 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionunrendered003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 41: &quot; baz&quot;
+selection start: position 0 of child 3 {#text} of child 1 {DIV} of body
+selection end:   position 1 of child 3 {#text} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionunrendered004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 41: &quot; baz&quot;
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionunrendered005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 820x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,64) size 784x472
+      RenderBlock {DIV} at (64,0) size 748x196 [border: (50px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {#text} at (74,84) size 32x28
+            text run at (74,84) width 32: &quot;foo&quot;
+        RenderText {#text} at (105,84) size 41x28
+          text run at (105,84) width 41: &quot; baz&quot;
+caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionunrenderedspaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-space-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-space-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/unrendered-space-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 779x59
+          text run at (0,0) width 638: &quot;This tests visible position creation in unrendered space after rendered text, just before a new block. &quot;
+          text run at (637,0) width 142: &quot;The caret should be at&quot;
+          text run at (0,20) width 752: &quot;the end of the line containing 'foo' because we choose to treat all positions in the unrendered space after 'foo' as being&quot;
+          text run at (0,40) width 771: &quot;visually equivalent to the position just after 'foo', and not visually equivalent to the position on the next line, before 'bar'.&quot;
+      RenderBlock {DIV} at (0,76) size 784x40
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
+caret: position 3 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionuserdragelementanduserselectnoneexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/user-drag-element-and-user-select-none-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/user-drag-element-and-user-select-none-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/user-drag-element-and-user-select-none-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+Test for WebKit bug 15106: Dragging text inside an element with &quot;user-drag: element&quot; and &quot;user-select: none&quot; should initiate a drag
+
+SUCCESS Expected '3' and got it.
+
+SUCCESS Expected 'mousedown' and got it.
+
+SUCCESS Expected 'mouseup' and got it.
+
+FAIL Expected 'Selection' but got 'No selection'.
+
+This element should be draggable, but initiating a drag from within the text should begin a selection.
+SUCCESS Expected '3' and got it.
+
+SUCCESS Expected 'mousedown' and got it.
+
+SUCCESS Expected 'mouseup' and got it.
+
+SUCCESS Expected 'No selection' and got it.
+
+This element should not be draggable, and initiating a drag from within the text should not begin a selection.
+FAIL Expected '4' but got '3'.
+
+SUCCESS Expected 'mousedown' and got it.
+
+FAIL Expected 'dragstart' but got 'mouseup'.
+
+FAIL Expected 'mouseup' but got 'No selection'.
+
+FAIL Expected 'No selection' but got 'undefined'.
+
+This element should be draggable, and initiating a drag from within the text should drag the element.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionuserselectallselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+Test -webkit-user-select all user select all area Test -webkit-user-select all
+Test -webkit-user-select all selection movements and extensions (left right forward backward)
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+placeCaretBeforeUserSelectAllElement()
+window.getSelection().modify('extend', 'forward', 'character')
+PASS Selection is the entire user-select-all element
+window.getSelection().modify('extend', 'backward', 'character')
+PASS Selection is right before user-select-all element
+window.getSelection().modify('extend', 'right', 'character')
+PASS Selection is the entire user-select-all element
+window.getSelection().modify('extend', 'left', 'character')
+PASS Selection is right before user-select-all element
+window.getSelection().modify('move', 'forward', 'character')
+PASS Selection is right after user-select-all element
+window.getSelection().modify('move', 'backward', 'character')
+PASS Selection is right before user-select-all element
+window.getSelection().modify('move', 'right', 'character')
+PASS Selection is right after user-select-all element
+window.getSelection().modify('move', 'left', 'character')
+PASS Selection is right before user-select-all element
+clickAt(descendant.offsetLeft + 10 , descendant.offsetTop + 10)
+PASS Selection is the entire user-select-all element
+mouseMoveFromTo(leftTarget.offsetLeft, descendant.offsetLeft + 20)
+FAIL Selection should be the entire user-select-all element plus everything on its left at anchorNode: [object Text] anchorOffset: 0 focusNode: [object Text] focusOffset: 0
+mouseMoveFromTo(userSelectAllElement.offsetLeft + userSelectAllElement.offsetWidth + rightTarget.offsetWidth, descendant.offsetLeft + 10)
+FAIL Selection should be the entire user-select-all element plus everything on its right at anchorNode: [object Text] anchorOffset: 29 focusNode: [object Text] focusOffset: 29
+PASS Selection is only the text in bold
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionuserselectallwithshiftexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-with-shift-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-with-shift-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/user-select-all-with-shift-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,206 @@
</span><ins>+This tests shift + selecting two discontinuous elements with user-select: all. WebKit should select the both elements instead of moving the selection.
+To manually test, click to select the first element and shift-click the second element. WebKit should select both elements.
+
+After clicking on the first element (Mac):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;&lt;#selection-anchor&gt;First element&lt;#selection-focus&gt;&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;Second element&quot;
+| &quot;
+&quot;
+
+After shift clicking on the second element (Mac):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;&lt;#selection-anchor&gt;Second element&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+
+After clicking on the second element (Mac):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;&lt;#selection-anchor&gt;Second element&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+
+After shift clicking on the first element (Mac):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;&lt;#selection-anchor&gt;First element&lt;#selection-focus&gt;&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;Second element&quot;
+| &quot;
+&quot;
+
+After clicking on the first element (Win):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;Second element&quot;
+| &quot;
+&quot;
+
+After shift clicking on the second element (Win):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;&lt;#selection-anchor&gt;Second element&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+
+After clicking on the second element (Win):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;&lt;#selection-anchor&gt;Second element&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+
+After shift clicking on the first element (Win):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;&lt;#selection-anchor&gt;First element&lt;#selection-focus&gt;&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;Second element&quot;
+| &quot;
+&quot;
+
+After clicking on the first element (Unix):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;Second element&quot;
+| &quot;
+&quot;
+
+After shift clicking on the second element (Unix):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;&lt;#selection-anchor&gt;Second element&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+
+After clicking on the second element (Unix):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;First element&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;&lt;#selection-anchor&gt;Second element&lt;#selection-focus&gt;&quot;
+| &quot;
+&quot;
+
+After shift clicking on the first element (Unix):
+| &quot;
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;first&quot;
+|   &quot;&lt;#selection-anchor&gt;First element&lt;#selection-focus&gt;&quot;
+| &quot;
+Some other text.
+&quot;
+| &lt;div&gt;
+|   class=&quot;select-all&quot;
+|   id=&quot;second&quot;
+|   &quot;Second element&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticallrltrextendlinebackwardbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x280
+  RenderBlock {HTML} at (0,0) size 800x280
+    RenderBody {BODY} at (8,16) size 784x251
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 72x215
+        RenderBlock {P} at (16,0) size 40x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+          RenderBR {BR} at (0,128) size 19x0
+          RenderText {#text} at (20,0) size 19x128
+            text run at (20,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock {PRE} at (0,263) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 5 of child 2 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticallrltrextendlineforwardbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x280
+  RenderBlock {HTML} at (0,0) size 800x280
+    RenderBody {BODY} at (8,16) size 784x251
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 72x215
+        RenderBlock {P} at (16,0) size 40x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+          RenderBR {BR} at (0,128) size 19x0
+          RenderText {#text} at (20,0) size 19x128
+            text run at (20,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock {PRE} at (0,263) size 784x0
+selection start: position 2 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 2 of child 2 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlinebackwardbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x280
+  RenderBlock {HTML} at (0,0) size 800x280
+    RenderBody {BODY} at (8,16) size 784x251
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 72x215
+        RenderBlock {P} at (16,0) size 40x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+          RenderBR {BR} at (0,128) size 19x0
+          RenderText {#text} at (20,0) size 19x128
+            text run at (20,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock {PRE} at (0,263) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 5 of child 2 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlinebackwardpexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x280
+  RenderBlock {HTML} at (0,0) size 800x280
+    RenderBody {BODY} at (8,16) size 784x251
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 88x215
+        RenderBlock {P} at (16,0) size 20x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+        RenderBlock {P} at (52,0) size 20x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock {PRE} at (0,263) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 3 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlinebackwardwrapexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x195
+  RenderBlock {HTML} at (0,0) size 800x195
+    RenderBody {BODY} at (8,16) size 784x166
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 72x130
+        RenderBlock {P} at (16,0) size 40x130
+          RenderText {#text} at (0,0) size 39x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+            text run at (20,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock (anonymous) at (0,166) size 784x0
+      RenderBlock {PRE} at (0,179) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 13 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlineforwardbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x280
+  RenderBlock {HTML} at (0,0) size 800x280
+    RenderBody {BODY} at (8,16) size 784x251
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 72x215
+        RenderBlock {P} at (16,0) size 40x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+          RenderBR {BR} at (0,128) size 19x0
+          RenderText {#text} at (20,0) size 19x128
+            text run at (20,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock {PRE} at (0,263) size 784x0
+selection start: position 2 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 2 of child 2 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlineforwardpexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x280
+  RenderBlock {HTML} at (0,0) size 800x280
+    RenderBody {BODY} at (8,16) size 784x251
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 88x215
+        RenderBlock {P} at (16,0) size 20x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+        RenderBlock {P} at (52,0) size 20x215
+          RenderText {#text} at (0,0) size 19x128
+            text run at (0,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock {PRE} at (0,263) size 784x0
+selection start: position 2 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 2 of child 0 {#text} of child 3 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlltrextendlineforwardwrapexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x195
+  RenderBlock {HTML} at (0,0) size 800x195
+    RenderBody {BODY} at (8,16) size 784x166
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 702x19
+          text run at (0,0) width 702: &quot;This tests horizontal caret movement in vertical writing mode. \&quot;\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}\&quot; and \&quot;\x{540D}\x{524D}\&quot; must be selected.&quot;
+      RenderBlock {DIV} at (0,36) size 72x130
+        RenderBlock {P} at (16,0) size 40x130
+          RenderText {#text} at (0,0) size 39x128
+            text run at (0,0) width 128: &quot;\x{543E}\x{8F29}\x{306F}\x{732B}\x{3067}\x{3042}\x{308B}\x{3002}&quot;
+            text run at (20,0) width 128: &quot;\x{540D}\x{524D}\x{306F}\x{307E}\x{3060}\x{7121}\x{3044}\x{3002}&quot;
+      RenderBlock (anonymous) at (0,166) size 784x0
+      RenderBlock {PRE} at (0,179) size 784x0
+selection start: position 2 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 10 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlinebackwardbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x204
+  RenderBlock {HTML} at (0,0) size 800x204
+    RenderBody {BODY} at (8,16) size 784x175
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 399x19
+          text run at (0,0) width 399: &quot;This tests horizontal caret movement in vertical writing mode.&quot;
+      RenderBlock {DIV} at (0,36) size 86x139
+        RenderBlock {P} at (20,0) size 46x139
+          RenderText {#text} at (0,52) size 21x87
+            text run at (0,52) width 87 RTL: &quot;\x{5D0}\x{5E0}\x{5D9} \x{5D7}\x{5EA}\x{5D5}\x{5DC}.&quot;
+          RenderBR {BR} at (0,52) size 21x1
+          RenderText {#text} at (23,41) size 21x98
+            text run at (23,41) width 98 RTL: &quot;\x{5D0}\x{5D9}\x{5DF} \x{5DC}\x{5D9} \x{5E9}\x{5DD}.&quot;
+      RenderBlock {PRE} at (0,187) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 5 of child 2 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlinebackwardpexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x204
+  RenderBlock {HTML} at (0,0) size 800x204
+    RenderBody {BODY} at (8,16) size 784x175
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 399x19
+          text run at (0,0) width 399: &quot;This tests horizontal caret movement in vertical writing mode.&quot;
+      RenderBlock {DIV} at (0,36) size 106x139
+        RenderBlock {P} at (20,0) size 23x139
+          RenderText {#text} at (0,52) size 21x87
+            text run at (0,52) width 87 RTL: &quot;\x{5D0}\x{5E0}\x{5D9} \x{5D7}\x{5EA}\x{5D5}\x{5DC}.&quot;
+        RenderBlock {P} at (63,0) size 23x139
+          RenderText {#text} at (0,41) size 21x98
+            text run at (0,41) width 98 RTL: &quot;\x{5D0}\x{5D9}\x{5DF} \x{5DC}\x{5D9} \x{5E9}\x{5DD}.&quot;
+      RenderBlock {PRE} at (0,187) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 5 of child 0 {#text} of child 2 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlineforwardbrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-br-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-br-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-br-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x204
+  RenderBlock {HTML} at (0,0) size 800x204
+    RenderBody {BODY} at (8,16) size 784x175
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 399x19
+          text run at (0,0) width 399: &quot;This tests horizontal caret movement in vertical writing mode.&quot;
+      RenderBlock {DIV} at (0,36) size 86x139
+        RenderBlock {P} at (20,0) size 46x139
+          RenderText {#text} at (0,52) size 21x87
+            text run at (0,52) width 87 RTL: &quot;\x{5D0}\x{5E0}\x{5D9} \x{5D7}\x{5EA}\x{5D5}\x{5DC}.&quot;
+          RenderBR {BR} at (0,52) size 21x1
+          RenderText {#text} at (23,41) size 21x98
+            text run at (23,41) width 98 RTL: &quot;\x{5D0}\x{5D9}\x{5DF} \x{5DC}\x{5D9} \x{5E9}\x{5DD}.&quot;
+      RenderBlock {PRE} at (0,187) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 6 of child 2 {#text} of child 1 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionverticalrlrtlextendlineforwardpexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-p-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-p-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/vertical-rl-rtl-extend-line-forward-p-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x204
+  RenderBlock {HTML} at (0,0) size 800x204
+    RenderBody {BODY} at (8,16) size 784x175
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 399x19
+          text run at (0,0) width 399: &quot;This tests horizontal caret movement in vertical writing mode.&quot;
+      RenderBlock {DIV} at (0,36) size 106x139
+        RenderBlock {P} at (20,0) size 23x139
+          RenderText {#text} at (0,52) size 21x87
+            text run at (0,52) width 87 RTL: &quot;\x{5D0}\x{5E0}\x{5D9} \x{5D7}\x{5EA}\x{5D5}\x{5DC}.&quot;
+        RenderBlock {P} at (63,0) size 23x139
+          RenderText {#text} at (0,41) size 21x98
+            text run at (0,41) width 98 RTL: &quot;\x{5D0}\x{5D9}\x{5DF} \x{5DC}\x{5D9} \x{5E9}\x{5DD}.&quot;
+      RenderBlock {PRE} at (0,187) size 784x0
+selection start: position 5 of child 0 {#text} of child 1 {P} of child 3 {DIV} of body
+selection end:   position 6 of child 0 {#text} of child 2 {P} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionwordgranularityexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/word-granularity-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/word-granularity-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/word-granularity-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 692x19
+          text run at (0,0) width 388: &quot;This tests modifying a selection created with a double click. &quot;
+          text run at (387,0) width 305: &quot;The new selection should use word granularity.&quot;
+      RenderBlock {P} at (0,36) size 784x60 [color=#008000]
+        RenderText {#text} at (0,0) size 767x59
+          text run at (0,0) width 230: &quot;This test does not run interactively. &quot;
+          text run at (229,0) width 360: &quot;It uses the testRunners eventSender to do mouse clicks. &quot;
+          text run at (588,0) width 172: &quot;To run it manually, double&quot;
+          text run at (0,20) width 322: &quot;click on the blue 'g', then drag down to the red 'g'. &quot;
+          text run at (321,20) width 446: &quot;As you drag, watch the selection that is created, it should always start&quot;
+          text run at (0,40) width 186: &quot;and end on word boundaries.&quot;
+      RenderBlock {DIV} at (0,112) size 784x120
+        RenderText {#text} at (0,0) size 86x19
+          text run at (0,0) width 86: &quot;This is a para&quot;
+        RenderInline {SPAN} at (0,0) size 9x19 [color=#0000FF]
+          RenderText {#text} at (85,0) size 9x19
+            text run at (85,0) width 9: &quot;g&quot;
+        RenderText {#text} at (93,0) size 34x19
+          text run at (93,0) width 34: &quot;raph.&quot;
+        RenderBR {BR} at (126,15) size 1x0
+        RenderText {#text} at (0,20) size 65x19
+          text run at (0,20) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,35) size 1x0
+        RenderText {#text} at (0,40) size 65x19
+          text run at (0,40) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,55) size 1x0
+        RenderText {#text} at (0,60) size 65x19
+          text run at (0,60) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,75) size 1x0
+        RenderText {#text} at (0,80) size 65x19
+          text run at (0,80) width 65: &quot;Some text&quot;
+        RenderBR {BR} at (64,95) size 1x0
+        RenderText {#text} at (0,100) size 86x19
+          text run at (0,100) width 86: &quot;This is a para&quot;
+        RenderInline {SPAN} at (0,0) size 9x19 [color=#FF0000]
+          RenderText {#text} at (85,100) size 9x19
+            text run at (85,100) width 9: &quot;g&quot;
+        RenderText {#text} at (93,100) size 34x19
+          text run at (93,100) width 34: &quot;raph.&quot;
+caret: position 15 of child 0 {#text} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionwrappedlinecaret1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderInline {SPAN} at (0,0) size 379x19
+          RenderText {#text} at (0,0) size 379x19
+            text run at (0,0) width 379: &quot;This test passes if the caret is at the start of the second line.&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,20) size 352x102 [border: (1px solid #0000FF)]
+        RenderText {#text} at (1,1) size 12x19
+          text run at (1,1) width 8: &quot;a&quot;
+          text run at (8,1) width 5: &quot; &quot;
+        RenderText {#text} at (1,21) size 344x19
+          text run at (1,21) width 344: &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;
+caret: position 2 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingselectionwrappedlinecaret2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/selection/wrapped-line-caret-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,0) size 784x20
+        RenderInline {SPAN} at (0,0) size 379x19
+          RenderText {#text} at (0,0) size 379x19
+            text run at (0,0) width 379: &quot;This test passes if the caret is at the start of the second line.&quot;
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,20) size 352x102 [border: (1px solid #0000FF)]
+        RenderText {#text} at (1,1) size 12x19
+          text run at (1,1) width 8: &quot;a&quot;
+          text run at (8,1) width 5: &quot; &quot;
+        RenderInline {SPAN} at (0,0) size 344x19 [color=#0000FF]
+          RenderText {#text} at (1,21) size 344x19
+            text run at (1,21) width 344: &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;
+caret: position 2 of child 0 {#text} of child 2 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowadjustingeditingboundarywithtableinshadowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+host 1
+host 2
+Selecting around a table which is distributed from shadow subtree to nested shadow subtree will trigger an assertion. To try manually, select from &quot;shadow 2&quot; to around &quot;after&quot; and confirm a crash does not occur.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowboldtwiceinshadowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/bold-twice-in-shadow-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/bold-twice-in-shadow-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/bold-twice-in-shadow-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+Applying document.execCommand('Bold') to elements having insertion points (&lt;shadow&gt; or &lt;content&gt;) shoud not cause a crash.
+
+To test manually, make a selection from somewhere in &quot;nested before&quot; to somehwere in &quot;nested after&quot;, then press Ctrl+B twice. It should not cause a crash.
+
+before host
+not editable
+after host
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowbreakingeditingboundaries2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+When selecting from a child of ShadowRoot to an element outside of shadow host, a crash should not be caused.
+
+To test manually, select from 'before shadow' to 'after host'.
+
+before host
+
+host
+after host
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowbreakingeditingboundariesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundaries-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+When selecting from a child of shadow host to an element in Shadow DOM, a crash should not be caused. This is because the start position of Selection comes after the end position of Selection.
+
+before host drag from here after host
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowbreakingeditingboundarywithtableexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundary-with-table-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundary-with-table-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/breaking-editing-boundary-with-table-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+On the second time selecting &lt;span&gt;, it should not become non-contenteditable. If it becomes non-contenteditable, the selection from &lt;span&gt; to &lt;table&gt; will break editing boundaries and contain &quot;a&quot;. This test checks the &lt;span&gt; does not changed to non-contenteditable element.
+
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowcomparepositionsinnestedshadowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/compare-positions-in-nested-shadow-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/compare-positions-in-nested-shadow-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/compare-positions-in-nested-shadow-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowcontenteditablepropagationatshadowboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+This test checks that content-editable is not propagated from shadow host to a shadow subtree.
+
+This p is required to produce the issue.
+
+This div and parent div are required to produce the issue.
+shadow host 1
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowdeletecharactersindistributednodecrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 9: TypeError: undefined is not a function (evaluating 'document.getElementById('shadowhost').webkitCreateShadowRoot()')
+This tests the deletion of text in distributed node does not crash. To run it outside of DRT, you must delete text, 'foo', manually.
+
+foo
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowdeletelistinshadowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-list-in-shadow-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-list-in-shadow-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/delete-list-in-shadow-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+Elements distributed to Shadow DOM should be deleted correctly when pressing delete key.
+
+To test manually, select somewhere in ABCDE from somehwere in 12345, and press delete, and check the selected text is deleted correctly.
+
+ABCDE
+abcde
+12345
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowdoubleclickonmeterinshadowcrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+This test ensures context click around meter won't crash.
+
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowexeccommandindentinshadowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/execcommand-indent-in-shadow-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/execcommand-indent-in-shadow-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/execcommand-indent-in-shadow-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+In this test, we do execCommand('Indent') in the direct child of ShadowRoot to confirm a crash doesn't happen.
+
+
+
+
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowinsertorderedlistcrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/insertorderedlist-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/insertorderedlist-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/insertorderedlist-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+This test confirms some combination of editing command with Shadow DOM does not cause a crash. To test manually, select from (before nested) to (after nested), then press Italic, and InsertUnorderedList.
+
+(before host)
+
+not editable
+(after host)
+  
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowpressingenteronlistexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/pressing-enter-on-list-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/pressing-enter-on-list-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/pressing-enter-on-list-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+Pressing enter on the last character of &lt;li&gt; element in Shadow DOM was triggering assertion, becasue modifying Shadow DOM removes the renderer in Shadow DOM and desendant of shadow host.
+
+This tests confirms it won't happen any more.
+
+LIST 1
+LIST 2
+LIST 3
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowrightclickonmeterinshadowcrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+This test ensures context click around meter won't crash.
+
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowselectcontenteditableshadowhostexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/select-contenteditable-shadowhost-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/select-contenteditable-shadowhost-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/select-contenteditable-shadowhost-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+This test confirms that selecting an element having Shadow DOM doesn't cross editing boundaries errornously.
+
+BEFORE
+HOST
+AFTER
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowselectionoforphanshadowrootexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-orphan-shadowroot-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-orphan-shadowroot-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-orphan-shadowroot-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+Nodes of the selection for an orphan shadow root should return null.
+
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowselectionofshadowrootexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-shadowroot-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-shadowroot-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/selection-of-shadowroot-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+BEFORE HOST
+HOST
+AFTER HOST
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingshadowshadowselectionnotexportedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/shadow/shadow-selection-not-exported-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/shadow/shadow-selection-not-exported-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/shadow/shadow-selection-not-exported-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+CONSOLE MESSAGE: line 3: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
+FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined).
+
+TEST COMPLETE
+This test ensures shadow root won't expose to JS layer.
+
+BEFORE
+CONTAINER
+AFTER
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingcenteringmisspellingdotsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/centering-misspelling-dots-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/centering-misspelling-dots-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/centering-misspelling-dots-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 431x19
+          text run at (0,0) width 431: &quot;The misspelling dots on the text below should be visually centered.&quot;
+      RenderBlock {DIV} at (0,20) size 784x20
+        RenderInline {SPAN} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingcontextmenusuggestionsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 32: TypeError: undefined is not an object (evaluating 'itemNamesWithSpellChecking.length')
+This test checks that spelling suggestions in the context menu are not show when spellcheck=&quot;false&quot;. To test manually, right click on the text in the input box.
+
+
+FAIL: Did not run test
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingcontextmenusuggestionsmultiwordselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-multiword-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-multiword-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-multiword-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Spell check sugestions should not be pupulated when user selects multiple words that are not a single misspelling. To test manually, type 'wellcome home.', select 'wellcome home', and context-click on the selection. The test suceeds when the context menu has no spell check suggestions.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+wellcome home.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingcontextmenusuggestionssubwordselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-subword-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-subword-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/context-menu-suggestions-subword-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Spell check suggestions should not be populated when user selects a part of misspelling. To test manually, type 'wellcome home.' select 'llco', and context-click on the selection. The test suceeds when the context menu has no spell check suggestions.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+wellcome home.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingdeleteintomisspelledwordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/delete-into-misspelled-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/delete-into-misspelled-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/delete-into-misspelled-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This test verifies if the misspelled word still remains spelling markers when user pressed the backspace key to move the caret at the end of the word or delete key to move the caret at the beginning of the word. This test succeeds when a word &quot;meagesga&quot; has red underline.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingdesignmodespellcheckoffexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/design-mode-spellcheck-off-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/design-mode-spellcheck-off-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/design-mode-spellcheck-off-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests whether WebKit does not spell check in 'designMode' when spellcheck='false'. To test manually, click arround 'asdf'. There should be no spelling marker for 'asdf' after the click.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS internals.hasSpellingMarker(0, 4) became false
+document.body.setAttribute(&quot;spellcheck&quot;, &quot;true&quot;)
+asdf is misspelled.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingeditingmultiplewordswithmarkersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-multiple-words-with-markers-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-multiple-words-with-markers-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-multiple-words-with-markers-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+The test verifies if the spelling markers disappear when the multiple misspelled words are concatenated by delete command. To test manually, type &quot;it's a meagesga meagesga&quot;, then select and delete &quot;esga meag&quot;. The test succeeds if the remaining text does not have any underline.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS internals.hasSpellingMarker(spellingPositions[0], spellingLengths[0]) became false
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingeditingwordwithmarker2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-word-with-marker-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-word-with-marker-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/editing-word-with-marker-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+The test verifies if the spelling markers remain if a whitespace is added before or after the misspelled word. The test succeeds if the word 'meagesga' has red underline.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinggrammareditwordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-edit-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-edit-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-edit-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Test if WebKit removes grammar markers when we edit a grammatically-incorrect word. To test manually, press backspace key to delete the last character of &quot;has&quot;. This test succeeds when &quot;ha&quot; does not have grammar markers.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+document.execCommand(&quot;InsertText&quot;, false, &quot;You has the right.&quot;)
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinggrammarexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests whether the grammatically-incorrect phrase 'I have a issue' has grammar marker on 'a'.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinggrammarmarkersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests whether WebKit can render grammar markers when pasting text if it has a grammar-checker. To test manually, copy the text in the first div element and paste it to the second div element. This test succeeds when WebKit renders a grammar marker under a word &quot;has&quot;.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+You has the right.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinggrammarmarkershidpiexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-hidpi-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-hidpi-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-markers-hidpi-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests whether WebKit can render grammar markers when pasting text if it has a grammar-checker. To test manually, copy the text in the first div element and paste it to the second div element. This test succeeds when WebKit renders a grammar marker under a word &quot;has&quot;.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+You has the right.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinggrammarpasteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-paste-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-paste-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/grammar-paste-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+
+You has the right.
+I have an kiwi. I have no idea.
+I have an grape. I have an muscat. I don't know.
+Grammar checking for pasted text.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+FAIL verifyMarker(destination, ungrammaticalPhrase) should become true. Threw exception Error: InvalidAccessError: DOM Exception 15
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinginlinespellingmarkersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests the correct placement of inline spelling and grammar markers in the following text: 'the the adlj adaasj sdklj. there there'. Spelling markers should line up exactly under misspelled words in all cases.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+testLTR
+Verifies 'adlj'.
+LTR
+the the adlj adaasj sdklj. there there 
+RTL
+LTR (text-overflow:ellipses):
+RTL (text-overflow:ellipses):
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellinginlinespellingmarkershidpiexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-hidpi-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-hidpi-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/inline-spelling-markers-hidpi-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests the correct placement of inline spelling and grammar markers in the following text: 'the the adlj adaasj sdklj. there there'. Spelling markers should line up exactly under misspelled words in all cases.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+LTR
+the the adlj adaasj sdklj. there there 
+RTL
+LTR (text-overflow:ellipses):
+RTL (text-overflow:ellipses):
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingmarkersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/markers-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/markers-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/markers-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Tests spelling and grammar markers for misspellings.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Checking grammar issue on 'I have a issue.'
+I have a issue.
+orange,zz,apple.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingmisspellingdotsdontextendbeyondwordsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/misspelling-dots-dont-extend-beyond-words-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/misspelling-dots-dont-extend-beyond-words-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/misspelling-dots-dont-extend-beyond-words-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,62 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 12 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 13 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 15 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 492x19
+          text run at (0,0) width 492: &quot;There should not be any misspelling dots between the two misspelled words.&quot;
+      RenderBlock {DIV} at (0,20) size 784x20
+        RenderText {#text} at (0,0) size 110x19
+          text run at (0,0) width 110: &quot;wafewe rewdfea &quot;
+        RenderInline {SPAN} at (0,0) size 1x19
+caret: position 15 of child 0 {#text} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingmovecursoraroundmisspelledwordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/move-cursor-around-misspelled-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/move-cursor-around-misspelled-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/move-cursor-around-misspelled-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+The test verifies if the misspelled underline remains when the caret is moved to the beginning, end and in middle of a word that is marked as misspelled. The test succeeds if the word 'meagesga' has red underline.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckasyncexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+CONSOLE MESSAGE: line 100: InvalidAccessError: DOM Exception 15: A parameter or an operation was not supported by the underlying object.
+FAIL: Timed out waiting for notifyDone to be called
+Test for Unified Spell Checker &amp; Async Spell Checker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+FAIL text : &quot;zz&quot; should have markers: [zz]
+FAIL text : &quot;apple,zz,orange&quot; should have markers: [zz]
+FAIL text : &quot;zz,zz&quot; should have markers: [zz,zz]
+FAIL text : &quot;zz zz zz&quot; should have markers: [zz,zz,zz]
+FAIL text : &quot; zz zz zz &quot; should have markers: [zz,zz,zz]
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckasyncmutationexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-mutation-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-mutation-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-async-mutation-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+CONSOLE MESSAGE: line 211: InvalidAccessError: DOM Exception 15: A parameter or an operation was not supported by the underlying object.
+FAIL: Timed out waiting for notifyDone to be called
+Test for asynchronous spellchecking in case DOM mutation happens. This test checks crash won't happen if DOM mutations happened.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Test Start: 1
+FAIL requestId should be &gt;= lastRequestId + 1. Was 0 (of type number).
+PASS Request has been processed.
+
+Test Start: 2
+FAIL requestId should be &gt;= lastRequestId + 1. Was 0 (of type number).
+FAIL Request has been processed but we detected unexpected marker location.
+
+Test Start: 3
+FAIL requestId should be &gt;= lastRequestId + 1. Was 0 (of type number).
+PASS Request has been processed.
+
+Test Start: 4
+FAIL requestId should be &gt;= lastRequestId + 1. Was 0 (of type number).
+PASS Request has been processed.
+
+Test Start: 5
+FAIL requestId should be &gt;= lastRequestId + 1. Was 0 (of type number).
+zz zz zz
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckattributeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-attribute-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-attribute-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-attribute-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests if the &quot;spellcheck&quot; attribute is implemented as written in its specification. If this test succeeds, you can see forms filled with an invalid word &quot;zz&quot;. Nevertheless, the &quot;zz&quot; is not marked as misspelled in all of them.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+&lt;DIV id=div1 spellcheck=true&gt;
+&lt;INPUT id=test1_1 type=text&gt;zz &lt;/INPUT&gt;
+test1_1
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckinputsearchcrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-input-search-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-input-search-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-input-search-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This test passes if it doesn't crash and the context menu is shown for the search input
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL clicked should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckpastecontinuousdisabledexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Test if WebKit does not spellcheck text when pasting text and continuous spellcheck is turned off. To test manually, copy the text &quot;zz apple&quot;, disable continuous spellcheck and paste it to editable element below. When &quot;zz&quot; is not marked as misspelled, this test succeeds.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+document.execCommand(&quot;InsertText&quot;, false, &quot;z&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;z&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot; &quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;a&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;p&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;p&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;l&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;e&quot;)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckpastedisabledexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-disabled-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-disabled-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-disabled-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Test if WebKit does not spellcheck text when pasting text to an element having spellchecking disabled. To test manually, copy the text &quot;zz apple&quot; and paste it to the textarea. When &quot;zz&quot; is not marked as misspelled, this test succeeds.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+document.execCommand(&quot;InsertText&quot;, false, &quot;z&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;z&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot; &quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;a&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;p&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;p&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;l&quot;)
+document.execCommand(&quot;InsertText&quot;, false, &quot;e&quot;)
+zz apple
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckpasteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-paste-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+
+zz apple
+zz apple
+zz zz zz
+For Bug 40092: Spell checking for pasted text.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellcheckqueueexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-queue-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-queue-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spellcheck-queue-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+For Bug 72939: Asynchronous SpellChecker should consider multiple requests.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL INPUT should have a marker on for 'zz apple orange'
+FAIL TEXTAREA should have a marker on for 'zz apple orange'
+FAIL DIV should have a marker on for 'zz apple orange'
+FAIL INPUT should have a marker on for 'zz apple orange'
+FAIL TEXTAREA should have a marker on for 'zz apple orange'
+FAIL DIV should have a marker on for 'zz apple orange'
+FAIL INPUT should have a marker on for 'zz apple orange'
+FAIL TEXTAREA should have a marker on for 'zz apple orange'
+FAIL DIV should have a marker on for 'zz apple orange'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingattributeatchildexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-at-child-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-at-child-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-at-child-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Tests if the spellchecker behavior change after the spellcheck attribute changed by the script.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+&lt;div contenteditable=&quot;&quot;&gt;Foo &lt;span spellcheck=&quot;false&quot; id=&quot;child&quot;&gt;[zz ]&lt;/span&gt; Baz&lt;/div&gt;
+PASS internals.hasSpellingMarker(1, 2) became false
+
+&lt;div contenteditable=&quot;&quot;&gt;Foo &lt;span id=&quot;child&quot;&gt;[zz ]&lt;/span&gt; Baz&lt;/div&gt;
+Foo [zz ] Baz
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingattributechangeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-change-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-change-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-attribute-change-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Tests if the spellchecker behavior change after the spellcheck attribute changed by the script.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS target.spellcheck is true
+Hello,zz 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingbackspacebetweenlinesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backspace-between-lines-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backspace-between-lines-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backspace-between-lines-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+OK
+OK zz OK
+Spelling markers should remain while merging two lines.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS firstLineText('target1') is &quot;OK&quot;
+PASS sel.anchorNode.data is &quot;OK zz OK&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingbackwardexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backward-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backward-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-backward-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+This tests for a bug when moving the caret backward through a misspelled word. Once the caret is no longer adjacent to it, it should be marked as misspelled.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+This sentence ends with a misspelled word asd.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingchangedtextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-changed-text-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-changed-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-changed-text-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+WebKit should not crash after the text has changed and results are served from cache. To test manually, type 'Spell wellcome. Is it broken?', delete the words 'Is it broken?'. The test succeeds when WebKit does not crash and 'wellcome' has spelling marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Spell wellcome. Is it broken?
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingdoubleclickedwordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-double-clicked-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-double-clicked-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-double-clicked-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Spelling markers should remain for double-clicked misspellings. To test manually, type 'wellcome home.', double-click on 'wellcome'. The test succeeds when 'wellcome' remains spelling marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+wellcome home.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingexactlyselectedwordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-exactly-selected-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-exactly-selected-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-exactly-selected-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Spelling marker should remain when the user selects the misspelled word exactly. To test manually, type 'wellcome home.', select 'wellcome'. The test succeeds when 'wellcome' has spelling marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+wellcome home.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 780x19
+          text run at (0,0) width 780: &quot;You should see 'a' on the first line below, and 'zz a' on the second line. 'zz' (and only 'zz') should be marked as misspelled.&quot;
+      RenderBlock {DIV} at (0,20) size 784x88 [border: (2px solid #FF0000)]
+        RenderBlock (anonymous) at (14,14) size 756x30
+          RenderInline {SPAN} at (0,0) size 11x28
+            RenderText {#text} at (0,1) size 11x28
+              text run at (0,1) width 11: &quot;a&quot;
+        RenderBlock {DIV} at (14,44) size 756x30
+          RenderInline {SPAN} at (0,0) size 38x28
+            RenderText {#text} at (0,1) size 38x28
+              text run at (0,1) width 38: &quot;zz a&quot;
+          RenderText {#text} at (0,0) size 0x0
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellinghasspellingmarkerexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-hasspellingmarker-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-hasspellingmarker-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-hasspellingmarker-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+
+This tests if internals.hasSpellingMarker works for differnt type of elements. This test succeds when there are four elements having &quot;zz &quot;. However, only the last one should not contatin spelling marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellinginserthtmlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-insert-html-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-insert-html-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-insert-html-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+The spellchecker shouldn't mark substrings of words after pasting. This test succeeds if only 'zz' is marked as misspelled.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+[object Text]
+moo zz
+moo zz
+food.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellinglinebreakexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-linebreak-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-linebreak-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-linebreak-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Misspellings should be preserved when a line-break command splits a text node. You should see 'Hello,zz a' on the first line below, and 'a' on the second line. This test succeeds when 'zz' (and only 'zz') is marked as misspelled.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Hello,zz a 
+a
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingmarkerdescriptionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-marker-description-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-marker-description-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-marker-description-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+The spellchecker should store replacement text in each marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+wellcome.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingunifiedemulationexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-unified-emulation-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-unified-emulation-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-unified-emulation-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+The spellchecker should work correctly if unified spellcheck path is used.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+FAIL numMarked should be 1. Was 0.
+FAIL numMarked should be 1. Was 0.
+FAIL numMarked should be 2. Was 0.
+FAIL numMarked should be 3. Was 0.
+FAIL numMarked should be 3. Was 0.
+FAIL numMarked should be 1. Was 0.
+FAIL numMarked should be 1. Was 0.
+FAIL numMarked should be 1. Was 0.
+PASS numMarked is length
+PASS numMarked is length
+PASS successfullyParsed is true
+
+TEST COMPLETE
+I would like to sleep, buzz.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingwithpunctuationselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-punctuation-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-punctuation-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-punctuation-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Punctuation marks should be treated as whitespace: spelling should ignore them. To test manually, type 'wellcome!' and select 'wellcome!'. The test succeeds when 'wellcome' has spelling marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+welllcome!
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingspellingspellingwithwhitespaceselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-whitespace-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-whitespace-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/spelling/spelling-with-whitespace-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+FAIL: Timed out waiting for notifyDone to be called
+Spelling should ignore whitespace. To test manually, type 'hello, wellcome home.', select ' wellcome '. The test succeeds when 'wellcome' has spelling marker.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+hello, wellcome home.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle4230923expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/4230923-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/4230923-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/4230923-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests to make sure that changing block properties of content whose enclosing block is the body doesn't put those properties on the body, since Mail finds it difficult to remove those properties later when necessary. Below is the DOM inside the body. There should be a div with text-align:center on it.
+
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle4916887expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/4916887-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/4916887-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/4916887-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 466x19
+          text run at (0,0) width 466: &quot;This tests for a bug where the color of indented text couldn't be changed.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle50176131expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x60
+        RenderText {#text} at (0,0) size 760x59
+          text run at (0,0) width 760: &quot;This tests to see that plaintext-only regions can be styled as long as they are fully selected. The editable, plaintext-only&quot;
+          text run at (0,20) width 712: &quot;cell should contain bold text, which should be implemented with the bold CSS property in the cell's inline style&quot;
+          text run at (0,40) width 325: &quot;declaration, not with wrapper spans inside the cell.&quot;
+      RenderBlock {DIV} at (0,76) size 784x50
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderTable {TABLE} at (0,20) size 186x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 184x28
+            RenderTableRow {TR} at (0,2) size 184x24
+              RenderTableCell {TD} at (2,2) size 84x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 80x19
+                  text run at (2,2) width 80: &quot;non-editable&quot;
+              RenderTableCell {TD} at (88,2) size 94x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 90x19
+                  text run at (2,2) width 90: &quot;plaintext-only&quot;
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle50176132expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5017613-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 619x19
+          text run at (0,0) width 583: &quot;This tests to make sure that plaintext-only regions aren't styled if they aren't fully selected. &quot;
+          text run at (582,0) width 37: &quot;Only &quot;
+        RenderInline {B} at (0,0) size 22x19
+          RenderText {#text} at (618,0) size 22x19
+            text run at (618,0) width 22: &quot;foo&quot;
+        RenderText {#text} at (639,0) size 739x39
+          text run at (639,0) width 100: &quot; should be bold&quot;
+          text run at (0,20) width 43: &quot;below.&quot;
+      RenderBlock {DIV} at (0,56) size 784x50
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (0,0) size 22x19
+            text run at (0,0) width 22: &quot;foo&quot;
+        RenderTable {TABLE} at (0,20) size 186x30 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 184x28
+            RenderTableRow {TR} at (0,2) size 184x24
+              RenderTableCell {TD} at (2,2) size 84x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 80x19
+                  text run at (2,2) width 80: &quot;non-editable&quot;
+              RenderTableCell {TD} at (88,2) size 94x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderInline {SPAN} at (0,0) size 56x19
+                  RenderText {#text} at (2,2) size 56x19
+                    text run at (2,2) width 56: &quot;plaintext&quot;
+                RenderText {#text} at (57,2) size 35x19
+                  text run at (57,2) width 35: &quot;-only&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle50468751expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 736x39
+          text run at (0,0) width 485: &quot;This tests for a bug where centering two paragraphs would center the third. &quot;
+          text run at (484,0) width 252: &quot;Only the selected paragraphs should be&quot;
+          text run at (0,20) width 56: &quot;selected.&quot;
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock {DIV} at (0,0) size 784x20
+          RenderText {#text} at (381,0) size 22x19
+            text run at (381,0) width 22: &quot;foo&quot;
+        RenderBlock (anonymous) at (0,20) size 784x0
+        RenderBlock {DIV} at (0,20) size 784x40
+          RenderBlock {DIV} at (0,0) size 784x20
+            RenderText {#text} at (381,0) size 22x19
+              text run at (381,0) width 22: &quot;bar&quot;
+          RenderBlock (anonymous) at (0,20) size 784x20
+            RenderText {#text} at (0,0) size 23x19
+              text run at (0,0) width 23: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle50468752expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-2-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5046875-2-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 781x39
+          text run at (0,0) width 749: &quot;This tests for a bug where left justifying a paragraph amongst several that are centered would left justify all of them. &quot;
+          text run at (748,0) width 33: &quot;Only&quot;
+          text run at (0,20) width 288: &quot;the second paragraph should be left justified.&quot;
+      RenderBlock {DIV} at (0,56) size 784x60
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderText {#text} at (381,0) size 22x19
+            text run at (381,0) width 22: &quot;foo&quot;
+          RenderBR {BR} at (402,15) size 1x0
+        RenderBlock {DIV} at (0,20) size 784x20
+          RenderText {#text} at (0,0) size 21x19
+            text run at (0,0) width 21: &quot;bar&quot;
+        RenderBlock (anonymous) at (0,40) size 784x0
+        RenderBlock {DIV} at (0,40) size 784x20
+          RenderText {#text} at (380,0) size 24x19
+            text run at (380,0) width 24: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle5065910expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5065910-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5065910-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5065910-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 455x19
+          text run at (0,0) width 455: &quot;This tests for a bug where the color of pasted text couldn't be changed.'&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle5084241expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5084241-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5084241-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5084241-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 758x39
+          text run at (0,0) width 758: &quot;This tests for a bug where deleting everything in a paragraph of colored text would prevent the user from changing the&quot;
+          text run at (0,20) width 64: &quot;text color.&quot;
+      RenderBlock {DIV} at (0,56) size 784x20
+        RenderBR {BR} at (0,0) size 0x19
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle5228141expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5228141-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5228141-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5228141-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 624x19
+          text run at (0,0) width 624: &quot;This tests for a bug where style would not be applied to a selection that ended just after an image.&quot;
+      RenderBlock {DIV} at (0,36) size 784x128
+        RenderBlock (anonymous) at (0,0) size 784x20
+          RenderBR {BR} at (0,0) size 0x19
+        RenderBlock {DIV} at (0,20) size 784x108
+          RenderText {#text} at (0,88) size 159x19
+            text run at (0,88) width 159: &quot;This text should be bold.&quot;
+          RenderImage {IMG} at (158,0) size 77x103
+caret: position 0 of child 0 {#text} of child 0 {P} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyle5279521expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/5279521-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/5279521-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/5279521-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x123
+        RenderBlock (anonymous) at (0,0) size 784x103
+          RenderImage {IMG} at (0,0) size 76x103
+          RenderText {#text} at (0,0) size 0x0
+        RenderBlock {DIV} at (0,103) size 784x20
+          RenderText {#text} at (0,0) size 778x19
+            text run at (0,0) width 778: &quot;This tests for a crash when changing the alignment of content that starts with an image not inside its own block container.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleapplestyleeditablemixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/apple-style-editable-mix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/apple-style-editable-mix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/apple-style-editable-mix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderTable {TABLE} at (0,0) size 771x26
+        RenderTableSection {TBODY} at (0,0) size 771x26
+          RenderTableRow {TR} at (0,2) size 771x22
+            RenderTableCell {TD} at (2,2) size 660x22 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 658x19
+                text run at (1,1) width 658: &quot;This tests that a style can be applied to a selection that contains both editable and non-editable content.&quot;
+                text run at (658,1) width 1: &quot;             &quot;
+            RenderTableCell {TD} at (664,2) size 105x22 [r=0 c=1 rs=1 cs=1]
+              RenderInline {SPAN} at (0,0) size 103x19
+                RenderText {#text} at (1,1) size 103x19
+                  text run at (1,1) width 103: &quot;Editable - line 1&quot;
+              RenderText {#text} at (103,1) size 1x19
+                text run at (103,1) width 1: &quot;             &quot;
+      RenderTable {TABLE} at (0,26) size 720x26
+        RenderTableSection {TBODY} at (0,0) size 720x26
+          RenderTableRow {TR} at (0,2) size 720x22
+            RenderTableCell {TD} at (2,2) size 609x22 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (1,1) size 607x19
+                text run at (1,1) width 607: &quot;The test passes if the editable content is bold, and the non editable content remains unchanged.&quot;
+                text run at (607,1) width 1: &quot;             &quot;
+            RenderTableCell {TD} at (613,2) size 105x22 [r=0 c=1 rs=1 cs=1]
+              RenderInline {SPAN} at (0,0) size 103x19
+                RenderText {#text} at (1,1) size 103x19
+                  text run at (1,1) width 103: &quot;Editable - line 2&quot;
+              RenderText {#text} at (103,1) size 1x19
+                text run at (103,1) width 1: &quot;             &quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleapplyfontsizetomultiplenodesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/apply-font-size-to-multiple-nodes-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/apply-font-size-to-multiple-nodes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/apply-font-size-to-multiple-nodes-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+Test that WebKit does not add multiple span or font elements when applying font-size to multiple nodes.
+
+You should see exactly one font element with size=&quot;7&quot; and exactly one span:
+| &quot;
+A man with 2
+&quot;
+| &lt;span&gt;
+|   style=&quot;font-family: Courier New, Courier&quot;
+|   &quot;font faces&quot;
+| &lt;br&gt;
+| &quot;
+Death comes in all
+&quot;
+| &lt;span&gt;
+|   style=&quot;font-size: large&quot;
+|   &quot;font sizes&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleapplystyleatomicexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/apply-style-atomic-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/apply-style-atomic-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/apply-style-atomic-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+Test that WebKit does not crash when we apply style to atomic elements and that the style is not applied inside atomic elements.
+| &quot;1&quot;
+| &lt;progress&gt;
+|   &lt;a&gt;
+|     style=&quot;&quot;
+|     &quot;2&quot;
+|   &lt;shadow:root&gt;
+|     &lt;div&gt;
+|       pseudo=&quot;-webkit-progress-inner-element&quot;
+|       shadow:pseudoId=&quot;-webkit-progress-inner-element&quot;
+|       &lt;div&gt;
+|         pseudo=&quot;-webkit-progress-bar&quot;
+|         shadow:pseudoId=&quot;-webkit-progress-bar&quot;
+|         &lt;div&gt;
+|           pseudo=&quot;-webkit-progress-value&quot;
+|           style=&quot;width: -100%;&quot;
+|           shadow:pseudoId=&quot;-webkit-progress-value&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleapplythroughendofdocumentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/apply-through-end-of-document-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/apply-through-end-of-document-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/apply-through-end-of-document-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+Test for rdar://problem/6864786: REGRESSION: Crash below ApplyStyleCommand::applyInlineStyleToRange when reviewing a patch in Bugzilla.
+
+The test passes if it does not crash.
+
+Copy the second word in this sentence.
+Select All here and paste
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylebackgroundcolorretainedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/background-color-retained-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/background-color-retained-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/background-color-retained-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+Tests whether the background color is retained when all the text is deleted and new text is typed in.
+| &quot;
+&quot;
+| &lt;span&gt;
+|   style=&quot;background-color:green;&quot;
+|   &quot;Delete this text and type in new text. Background color should be retained.&quot;
+| &quot;
+&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (204,15) size 283x28
+          text run at (204,15) width 283: &quot;Here is some text. Should be &quot;
+        RenderInline {B} at (0,0) size 88x28
+          RenderText {#text} at (486,15) size 88x28
+            text run at (486,15) width 88: &quot;centered&quot;
+        RenderText {#text} at (573,15) size 7x28
+          text run at (573,15) width 7: &quot;.&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 282x28
+          text run at (14,15) width 282: &quot;Here is some text. Should be &quot;
+        RenderInline {B} at (0,0) size 91x28
+          RenderText {#text} at (295,15) size 91x28
+            text run at (295,15) width 91: &quot;flush left&quot;
+        RenderText {#text} at (385,15) size 7x28
+          text run at (385,15) width 7: &quot;.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (204,15) size 283x28
+          text run at (204,15) width 283: &quot;Here is some text. Should be &quot;
+        RenderInline {B} at (0,0) size 88x28
+          RenderText {#text} at (486,15) size 88x28
+            text run at (486,15) width 88: &quot;centered&quot;
+        RenderText {#text} at (573,15) size 7x28
+          text run at (573,15) width 7: &quot;.&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (14,15) size 282x28
+          text run at (14,15) width 282: &quot;Here is some text. Should be &quot;
+        RenderInline {B} at (0,0) size 91x28
+          RenderText {#text} at (295,15) size 91x28
+            text run at (295,15) width 91: &quot;flush left&quot;
+        RenderText {#text} at (385,15) size 7x28
+          text run at (385,15) width 7: &quot;.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,80 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (204,15) size 283x28
+          text run at (204,15) width 283: &quot;Here is some text. Should be &quot;
+        RenderInline {B} at (0,0) size 88x28
+          RenderText {#text} at (486,15) size 88x28
+            text run at (486,15) width 88: &quot;centered&quot;
+        RenderText {#text} at (573,15) size 7x28
+          text run at (573,15) width 7: &quot;.&quot;
+      RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+        RenderText {#text} at (204,15) size 283x28
+          text run at (204,15) width 283: &quot;Here is some text. Should be &quot;
+        RenderInline {B} at (0,0) size 88x28
+          RenderText {#text} at (486,15) size 88x28
+            text run at (486,15) width 88: &quot;centered&quot;
+        RenderText {#text} at (573,15) size 7x28
+          text run at (573,15) width 7: &quot;.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+You should see one &quot;x&quot; followed by two blank lines, then one more &quot;x&quot;. The blank lines in between the characters should be the same height. The second must be the same height as the first. See: &lt;rdar://problem/3959727&gt; REGRESSION (Mail): Style not preserved on blank lines
+x
+
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execFontSizeCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+You should see one &quot;x&quot; followed by two blank lines. The blank lines should be the same height. The second line must be the same height as the first. See: &lt;rdar://problem/3959727&gt; REGRESSION (Mail): Style not preserved on blank lines
+x
+
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execFontSizeCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execDeleteCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyle006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-style-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+You should see one &quot;x&quot; followed by two blank lines, then one more &quot;x&quot;. The blank lines should be the same height. The second and third lines must be the same height. See: &lt;rdar://problem/3959727&gt; REGRESSION (Mail): Style not preserved on blank lines
+x
+
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execFontSizeCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
+execInsertParagraphCommand: &lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;x&lt;/div&gt;&lt;div id=&quot;test&quot; class=&quot;editing&quot;&gt;&lt;br&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleblockstyles007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/block-styles-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/block-styles-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/block-styles-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 162x28
+            text run at (0,31) width 162: &quot;Fix for this bug: &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (161,31) size 257x28
+              text run at (161,31) width 257: &quot;&lt;rdar://problem/3977962&gt;&quot;
+          RenderText {#text} at (417,31) size 742x58
+            text run at (417,31) width 325: &quot; font loses bold style after pasting&quot;
+            text run at (0,61) width 380: &quot;next to existing text and pressing return&quot;
+        RenderBlock {DIV} at (14,120) size 756x120
+          RenderBlock (anonymous) at (0,0) size 756x60
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 432x28
+              text run at (0,31) width 432: &quot;Should see this content in the red box below:&quot;
+          RenderBlock {DIV} at (0,60) size 756x60
+            RenderBlock (anonymous) at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 32x28
+                text run at (0,1) width 32: &quot;foo&quot;
+            RenderBlock {DIV} at (0,30) size 756x30
+              RenderInline {B} at (0,0) size 36x28
+                RenderText {#text} at (0,1) size 36x28
+                  text run at (0,1) width 36: &quot;bar&quot;
+      RenderBlock {DIV} at (0,278) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+            RenderInline {B} at (0,0) size 37x28
+              RenderText {#text} at (31,1) size 37x28
+                text run at (31,1) width 37: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleboldwithdomchangesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/bold-with-dom-changes-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/bold-with-dom-changes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/bold-with-dom-changes-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This test verifies that deleting DOM elements in a DOMSubtreeModified handler triggered by and execCommand('bold') does not produce a crash.
+x
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 721x58
+          text run at (14,15) width 715: &quot;Should see \&quot;foo\&quot; centered in its own red box, followed by left-aligned two&quot;
+          text run at (728,15) width 7: &quot; &quot;
+          text run at (14,45) width 420: &quot;lines, \&quot;bar\&quot; and \&quot;baz\&quot;, in their own red box.&quot;
+      RenderBlock {DIV} at (0,112) size 784x118
+        RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 31x28
+            text run at (14,45) width 31: &quot;bar&quot;
+          RenderBR {BR} at (44,67) size 1x0
+          RenderText {#text} at (14,75) size 34x28
+            text run at (14,75) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 721x58
+          text run at (14,15) width 715: &quot;Should see \&quot;bar\&quot; centered in its own red box, with a left-aligned \&quot;foo\&quot; line&quot;
+          text run at (728,15) width 7: &quot; &quot;
+          text run at (14,45) width 402: &quot;above and a left-aligned \&quot;baz\&quot; line below.&quot;
+      RenderBlock {DIV} at (0,112) size 784x118
+        RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 31x28
+            text run at (14,45) width 31: &quot;bar&quot;
+          RenderBR {BR} at (44,67) size 1x0
+          RenderText {#text} at (14,75) size 34x28
+            text run at (14,75) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 718x58
+          text run at (14,15) width 712: &quot;Should see \&quot;baz\&quot; centered in its own red box, with a two left-aligned lines&quot;
+          text run at (725,15) width 7: &quot; &quot;
+          text run at (14,45) width 224: &quot;above, \&quot;foo\&quot; and \&quot;bar\&quot;.&quot;
+      RenderBlock {DIV} at (0,112) size 784x118
+        RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 31x28
+            text run at (14,45) width 31: &quot;bar&quot;
+          RenderBR {BR} at (44,67) size 1x0
+          RenderText {#text} at (14,75) size 34x28
+            text run at (14,75) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 724x58
+          text run at (14,15) width 718: &quot;Should see \&quot;foo\&quot; and \&quot;baz\&quot; centered in their own red boxes. The \&quot;bar\&quot; line&quot;
+          text run at (731,15) width 7: &quot; &quot;
+          text run at (14,45) width 223: &quot;should not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x118
+        RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+          RenderBR {BR} at (45,37) size 1x0
+          RenderText {#text} at (14,45) size 31x28
+            text run at (14,45) width 31: &quot;bar&quot;
+          RenderBR {BR} at (44,67) size 1x0
+          RenderText {#text} at (14,75) size 34x28
+            text run at (14,75) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 724x58
+          text run at (14,15) width 718: &quot;Should see \&quot;foo\&quot; and \&quot;bar\&quot; centered in their own red boxes. The \&quot;baz\&quot; line&quot;
+          text run at (731,15) width 7: &quot; &quot;
+          text run at (14,45) width 445: &quot;should be in its own red box, but not centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x174
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 31x28
+            text run at (14,15) width 31: &quot;bar&quot;
+        RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-006-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-006-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 724x58
+          text run at (14,15) width 718: &quot;Should see \&quot;bar\&quot; and \&quot;baz\&quot; centered in their own red boxes. The \&quot;foo\&quot; line&quot;
+          text run at (731,15) width 7: &quot; &quot;
+          text run at (14,45) width 445: &quot;should be in its own red box, but not centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x174
+        RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 32x28
+            text run at (14,15) width 32: &quot;foo&quot;
+        RenderBlock {DIV} at (0,58) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 31x28
+            text run at (14,15) width 31: &quot;bar&quot;
+        RenderBlock {DIV} at (0,116) size 784x58 [border: (2px solid #FF0000)]
+          RenderText {#text} at (14,15) size 34x28
+            text run at (14,15) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle007expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-007-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-007-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-007-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 756x58
+          text run at (14,15) width 756: &quot;Should see \&quot;foo\&quot; centered in its own red box. The \&quot;bar\&quot; and \&quot;baz\&quot; lines should&quot;
+          text run at (769,15) width 1: &quot; &quot;
+          text run at (14,45) width 153: &quot;not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 31x28
+              text run at (14,15) width 31: &quot;bar&quot;
+          RenderBlock (anonymous) at (14,102) size 756x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle008expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-008-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-008-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-008-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 756x58
+          text run at (14,15) width 756: &quot;Should see \&quot;bar\&quot; centered in its own red box. The \&quot;foo\&quot; and \&quot;baz\&quot; lines should&quot;
+          text run at (769,15) width 1: &quot; &quot;
+          text run at (14,45) width 153: &quot;not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 31x28
+              text run at (14,15) width 31: &quot;bar&quot;
+          RenderBlock (anonymous) at (14,102) size 756x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle009expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-009-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-009-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-009-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 748x58
+          text run at (14,15) width 742: &quot;Should see \&quot;baz\&quot; centered in its own red box inside the box containing \&quot;foo\&quot;.&quot;
+          text run at (755,15) width 7: &quot; &quot;
+          text run at (14,45) width 472: &quot;The \&quot;foo\&quot; and \&quot;bar\&quot; lines should not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 31x28
+              text run at (14,15) width 31: &quot;bar&quot;
+          RenderBlock {DIV} at (14,102) size 756x30
+            RenderText {#text} at (361,1) size 34x28
+              text run at (361,1) width 34: &quot;baz&quot;
+          RenderBlock (anonymous) at (14,132) size 756x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle010expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-010-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-010-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-010-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 712x58
+          text run at (14,15) width 706: &quot;Should see the \&quot;foo\&quot; and \&quot;baz\&quot; lines centered in their own red boxes. The&quot;
+          text run at (719,15) width 7: &quot; &quot;
+          text run at (14,45) width 324: &quot;\&quot;baz\&quot; line should not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (14,14) size 756x30
+            RenderText {#text} at (362,1) size 32x28
+              text run at (362,1) width 32: &quot;foo&quot;
+          RenderBlock (anonymous) at (14,44) size 756x0
+          RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+            RenderText {#text} at (362,15) size 32x28
+              text run at (362,15) width 32: &quot;bar&quot;
+          RenderBlock (anonymous) at (14,102) size 756x30
+            RenderText {#text} at (0,1) size 34x28
+              text run at (0,1) width 34: &quot;baz&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle011expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-011-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-011-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-011-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 711x58
+          text run at (14,15) width 705: &quot;Should see the \&quot;bar\&quot; and \&quot;baz\&quot; lines centered in their own red boxes. The&quot;
+          text run at (718,15) width 7: &quot; &quot;
+          text run at (14,45) width 323: &quot;\&quot;foo\&quot; line should not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (14,44) size 756x58 [border: (2px solid #FF0000)]
+            RenderText {#text} at (362,15) size 32x28
+              text run at (362,15) width 32: &quot;bar&quot;
+          RenderBlock {DIV} at (14,102) size 756x30
+            RenderText {#text} at (361,1) size 34x28
+              text run at (361,1) width 34: &quot;baz&quot;
+          RenderBlock (anonymous) at (14,132) size 756x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle012expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-012-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-012-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-012-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 711x58
+          text run at (14,15) width 705: &quot;Should see the \&quot;bar\&quot; and \&quot;baz\&quot; lines centered in their own red boxes. The&quot;
+          text run at (718,15) width 7: &quot; &quot;
+          text run at (14,45) width 323: &quot;\&quot;foo\&quot; line should not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (14,44) size 756x88 [border: (2px solid #FF0000)]
+            RenderBlock {DIV} at (14,14) size 728x30
+              RenderText {#text} at (348,1) size 38x28
+                text run at (348,1) width 32: &quot;bar&quot;
+                text run at (379,1) width 7: &quot; &quot;
+            RenderBlock {DIV} at (14,44) size 728x30
+              RenderText {#text} at (347,1) size 34x28
+                text run at (347,1) width 34: &quot;baz&quot;
+            RenderBlock (anonymous) at (14,74) size 728x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylecreateblockforstyle013expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-013-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-013-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/create-block-for-style-013-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 6 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 715x58
+          text run at (14,15) width 709: &quot;Should see the \&quot;baz\&quot; line centered in its red box inside the box containing&quot;
+          text run at (722,15) width 7: &quot; &quot;
+          text run at (14,45) width 534: &quot;\&quot;bar\&quot;. The \&quot;foo\&quot; and \&quot;bar\&quot; lines should not be centered.&quot;
+      RenderBlock {DIV} at (0,112) size 784x146
+        RenderBlock {DIV} at (0,0) size 784x146 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (14,44) size 756x88 [border: (2px solid #FF0000)]
+            RenderBlock (anonymous) at (14,14) size 728x30
+              RenderText {#text} at (0,1) size 37x28
+                text run at (0,1) width 37: &quot;bar &quot;
+              RenderBR {BR} at (36,23) size 1x0
+            RenderBlock {DIV} at (14,44) size 728x30
+              RenderText {#text} at (347,1) size 34x28
+                text run at (347,1) width 34: &quot;baz&quot;
+            RenderBlock (anonymous) at (14,74) size 728x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyledesignmodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/designmode-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/designmode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/designmode-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 5 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 753x19
+          text run at (0,0) width 753: &quot;This tests to make sure that rich editing commands like Bold can be performed on text in a document in design mode.&quot;
+      RenderBlock {DIV} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 159x19
+          text run at (0,0) width 159: &quot;This text should be bold.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylefontfaceunquoteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/font-face-unquote-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/font-face-unquote-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/font-face-unquote-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Test to make sure WebKit doesn't quote face attribute of font elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL Font face is quoted, expected: &lt;font face=&quot;courier new&quot;&gt;Hello WebKit&lt;/font&gt;, actual: Hello WebKit
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylefontfamilywithspaceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/font-family-with-space-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/font-family-with-space-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/font-family-with-space-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderInline {U} at (0,0) size 245x15
+        RenderText {#text} at (0,0) size 245x15
+          text run at (0,0) width 245: &quot;This text should be Times New Roman bold.&quot;
+      RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylefontsize1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/fontsize-1-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/fontsize-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/fontsize-1-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+This test execCommand('FontSize', ...).  You should see 'small' 'medium' and 'large' below in every increasing font sizes.
+
+initial:
+| 
+
+fontsize 2:
+| 
+
+type small:
+| 
+
+fontsize 4:
+| 
+
+type medium:
+| 
+
+fontsize 6:
+| 
+
+type large:
+| 
+
+console:
+| &lt;li&gt;
+|   &quot;Failure: execCommand('FontSize', [Legal value]) failed.&quot;
+| &lt;li&gt;
+|   &quot;Failure: execCommand('FontSize', [Legal value]) failed.&quot;
+| &lt;li&gt;
+|   &quot;Failure: execCommand('FontSize', [Legal value]) failed.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleforecolorbynameexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/fore-color-by-name-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/fore-color-by-name-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/fore-color-by-name-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+
+&quot;world&quot; should be red:
+| &quot;hello world&quot;
+
+there should be no span or font elements:
+| &quot;hello world&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleheadingtextafterhrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/heading-text-after-hr-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/heading-text-after-hr-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/heading-text-after-hr-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests formatting a text immediately after hr with h1 tag.
+
+test
+Before:&lt;hr&gt;test
+After:&lt;hr&gt;test
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylehighlightexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 139x19
+          text run at (0,0) width 139: &quot;some highlighted text&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylehighlightinsertparagraphexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-insert-paragraph-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-insert-paragraph-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/highlight-insert-paragraph-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 40: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
+This tests inserting a new paragraph preserves the background color.
+
+test
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleinlinestylecontainerexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-container-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-container-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-container-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+Test to make sure WebKit adds style to the appropriate container.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+styleWithCSS = false
+FAIL fontSize(3) on all of &quot;&lt;font size=&quot;3&quot;&gt;hello &lt;font size=&quot;4&quot;&gt;world&lt;/font&gt;&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;3&quot;&gt;hello &lt;font size=&quot;4&quot;&gt;world&lt;/font&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font size=&quot;3&quot;&gt;hello world&lt;/font&gt;&quot;
+FAIL fontSize(4) on all of &quot;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&quot;, expected &quot;&lt;font face=&quot;Arial&quot; size=&quot;4&quot;&gt;hello&lt;/font&gt;&quot;
+FAIL fontSize(4) on all of &quot;&lt;font color=&quot;blue&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/font&gt;&quot; yields &quot;&lt;font color=&quot;blue&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font color=&quot;blue&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;4&quot;&gt;hello&lt;/font&gt;&lt;/font&gt;&quot;
+FAIL fontSize(4) on all of &quot;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/b&gt;&quot; yields &quot;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/b&gt;&quot;, expected &quot;&lt;b&gt;&lt;font face=&quot;Arial&quot; size=&quot;4&quot;&gt;hello&lt;/font&gt;&lt;/b&gt;&quot;
+FAIL fontSize(4) on all of &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;i&gt;hello&lt;/i&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;i&gt;hello&lt;/i&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font face=&quot;Arial&quot; size=&quot;4&quot;&gt;&lt;i&gt;hello&lt;/i&gt;&lt;/font&gt;&quot;
+FAIL fontName(Arial) on all of &quot;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/b&gt; world&quot; yields &quot;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/b&gt; world&quot;, expected &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;b&gt;hello&lt;/b&gt; world&lt;/font&gt;&quot;
+FAIL fontName(Arial) on all of &quot;&lt;font color=&quot;blue&quot;&gt;hello&lt;/font&gt; world&quot; yields &quot;&lt;font color=&quot;blue&quot;&gt;hello&lt;/font&gt; world&quot;, expected &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;font color=&quot;blue&quot;&gt;hello&lt;/font&gt; world&lt;/font&gt;&quot;
+FAIL fontName(Arial) on all of &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt;&quot; yields &quot;&lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt;&quot;, expected &quot;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/font&gt;&lt;/b&gt;&quot;
+FAIL foreColor(blue) on all of &quot;&lt;font&gt;&lt;u style=&quot;color:red;&quot;&gt;hello&lt;/u&gt;&lt;/font&gt;&quot; yields &quot;&lt;font&gt;&lt;u style=&quot;color:red;&quot;&gt;hello&lt;/u&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font color=&quot;#0000ff&quot;&gt;&lt;u&gt;hello&lt;/u&gt;&lt;/font&gt;&quot;
+FAIL foreColor(rgba(0, 50, 100, 0.4)) on all of &quot;&lt;font&gt;&lt;u style=&quot;color:red;&quot;&gt;hello&lt;/u&gt;&lt;/font&gt;&quot; yields &quot;&lt;font&gt;&lt;u style=&quot;color:red;&quot;&gt;hello&lt;/u&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font color=&quot;rgba(0, 50, 100, 0.4)&quot;&gt;&lt;u&gt;hello&lt;/u&gt;&lt;/font&gt;&quot;
+PASS bold(null) on all of &quot;&lt;u&gt;&lt;strike&gt;hello&lt;/strike&gt; &lt;strike&gt;world&lt;/strike&gt;&lt;/u&gt;&quot; yields &quot;&lt;u&gt;&lt;b&gt;&lt;strike&gt;hello&lt;/strike&gt; &lt;strike&gt;world&lt;/strike&gt;&lt;/b&gt;&lt;/u&gt;&quot;
+FAIL bold(null) on all of &quot;&lt;i&gt;hello&lt;/i&gt; &lt;b&gt;world&lt;/b&gt;&quot; yields &quot;&lt;i&gt;hello&lt;/i&gt; &lt;b&gt;world&lt;/b&gt;&quot;, expected &quot;&lt;b&gt;&lt;i&gt;hello&lt;/i&gt; world&lt;/b&gt;&quot;
+PASS bold(null) on all of &quot;&lt;strike&gt;&lt;i&gt;&lt;u&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/u&gt;&lt;/i&gt; webkit&lt;/strike&gt;&quot; yields &quot;&lt;strike&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;hello world&lt;/u&gt;&lt;/i&gt; webkit&lt;/b&gt;&lt;/strike&gt;&quot;
+PASS bold(null) on all of &quot;&lt;b contenteditable=&quot;false&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;hello&lt;/span&gt; world&lt;/b&gt; world&quot; yields &quot;&lt;b contenteditable=&quot;false&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;hello&lt;/span&gt; world&lt;/b&gt;&lt;b&gt; world&lt;/b&gt;&quot;
+PASS bold(null) on all of &quot;&lt;i&gt;hello&lt;/i&gt; &lt;b contenteditable=&quot;false&quot;&gt;world&lt;/b&gt;&quot; yields &quot;&lt;b&gt;&lt;i&gt;hello&lt;/i&gt; &lt;/b&gt;&lt;b contenteditable=&quot;false&quot;&gt;world&lt;/b&gt;&quot;
+PASS strikeThrough(null) on all of &quot;&lt;i&gt;hello&lt;/i&gt; &lt;b&gt;&lt;strike&gt;world&lt;/strike&gt;&lt;/b&gt; WebKit&quot; yields &quot;&lt;strike&gt;&lt;i&gt;hello&lt;/i&gt; &lt;b&gt;world&lt;/b&gt; WebKit&lt;/strike&gt;&quot;
+PASS strikeThrough(null) on all of &quot;&lt;b&gt;&lt;i&gt;hello &lt;strike&gt;world&lt;/strike&gt;&lt;/i&gt; WebKit&lt;/b&gt;&quot; yields &quot;&lt;b&gt;&lt;strike&gt;&lt;i&gt;hello world&lt;/i&gt; WebKit&lt;/strike&gt;&lt;/b&gt;&quot;
+
+styleWithCSS = true
+PASS fontSize(4) on all of &quot;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot; style=&quot;font-size: large;&quot;&gt;hello&lt;/font&gt;&quot;
+FAIL fontSize(4) on all of &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/font&gt;&quot;, expected &quot;&lt;font face=&quot;Arial&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;hello&lt;/b&gt;&lt;/font&gt;&quot;
+FAIL fontSize(4) on all of &quot;&lt;i&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/i&gt;&quot; yields &quot;&lt;i&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/i&gt;&quot;, expected &quot;&lt;i&gt;&lt;b style=&quot;font-size: large;&quot;&gt;hello&lt;/b&gt;&lt;/i&gt;&quot;
+PASS fontSize(4) on all of &quot;&lt;i&gt;&lt;b&gt;hello&lt;/b&gt; world&lt;/i&gt;&quot; yields &quot;&lt;i style=&quot;font-size: large;&quot;&gt;&lt;b&gt;hello&lt;/b&gt; world&lt;/i&gt;&quot;
+PASS fontSize(4) on all of &quot;&lt;font color=&quot;blue&quot;&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/font&gt;&quot; yields &quot;&lt;font color=&quot;blue&quot;&gt;&lt;b style=&quot;font-size: large;&quot;&gt;hello&lt;/b&gt;&lt;/font&gt;&quot;
+PASS bold(null) on all of &quot;&lt;span style=&quot;font-style: italic;&quot;&gt;hello&lt;/span&gt;&quot; yields &quot;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;hello&lt;/span&gt;&quot;
+PASS underline(null) on all of &quot;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/span&gt;&quot; yields &quot;&lt;span style=&quot;font-style: italic; text-decoration: underline;&quot;&gt;&lt;b&gt;hello&lt;/b&gt;&lt;/span&gt;&quot;
+PASS underline(null) on all of &quot;&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;hello&lt;/b&gt; world&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&quot; yields &quot;&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large; text-decoration: underline;&quot;&gt;&lt;b&gt;hello&lt;/b&gt; world&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleinlinestyleextendrunexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-extend-run-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-extend-run-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/inline-style-extend-run-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+Test to make sure WebKit adds just one element when applying inline style and removes redundant styled elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS fontSize(4) on all of &quot;hello &lt;font size=&quot;4&quot;&gt;world&lt;/font&gt; WebKit&quot; yields &quot;&lt;font size=&quot;4&quot;&gt;hello world WebKit&lt;/font&gt;&quot;
+PASS fontName(Arial) on all of &quot;hello &lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;world&lt;/font&gt;&lt;/b&gt; WebKit&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello &lt;b&gt;world&lt;/b&gt; WebKit&lt;/font&gt;&quot;
+PASS italic(null) on all of &quot;hello &lt;u&gt;&lt;i title=&quot;message&quot;&gt;world &lt;/i&gt;&lt;i&gt;WebKit&lt;/i&gt;&lt;/u&gt;&quot; yields &quot;&lt;i&gt;hello &lt;u&gt;&lt;span title=&quot;message&quot;&gt;world &lt;/span&gt;WebKit&lt;/u&gt;&lt;/i&gt;&quot;
+FAIL bold(null) on all of &quot;hello &lt;i&gt;&lt;b&gt;world&lt;/b&gt; WebKit&lt;/i&gt;&quot; yields &quot;hello &lt;i&gt;&lt;b&gt;world&lt;/b&gt; WebKit&lt;/i&gt;&quot;, expected &quot;&lt;b&gt;hello &lt;i&gt;world WebKit&lt;/i&gt;&lt;/b&gt;&quot;
+FAIL bold(null) on all of &quot;hello &lt;i&gt;&lt;b class=&quot;test&quot;&gt;world&lt;/b&gt; WebKit&lt;/i&gt;&quot; yields &quot;hello &lt;i&gt;&lt;b class=&quot;test&quot;&gt;world&lt;/b&gt; WebKit&lt;/i&gt;&quot;, expected &quot;&lt;b&gt;hello &lt;i&gt;&lt;span class=&quot;test&quot;&gt;world&lt;/span&gt; WebKit&lt;/i&gt;&lt;/b&gt;&quot;
+FAIL bold(null) on all of &quot;hello &lt;b contenteditable=&quot;false&quot;&gt;world&lt;/b&gt; &lt;b&gt;WebKit &lt;/b&gt;&lt;u&gt;&lt;b&gt;rocks&lt;/b&gt;&lt;/u&gt;&quot; yields &quot;hello &lt;b contenteditable=&quot;false&quot;&gt;world&lt;/b&gt; &lt;b&gt;WebKit &lt;/b&gt;&lt;u&gt;&lt;b&gt;rocks&lt;/b&gt;&lt;/u&gt;&quot;, expected &quot;&lt;b&gt;hello &lt;/b&gt;&lt;b contenteditable=&quot;false&quot;&gt;world&lt;/b&gt;&lt;b&gt; WebKit &lt;u&gt;rocks&lt;/u&gt;&lt;/b&gt;&quot;
+FAIL strikeThrough(null) on all of &quot;hello &lt;b&gt;world &lt;strike&gt;WebKit&lt;/strike&gt;&lt;/b&gt;&quot; yields &quot;hello &lt;b&gt;world &lt;strike&gt;WebKit&lt;/strike&gt;&lt;/b&gt;&quot;, expected &quot;&lt;strike&gt;hello &lt;b&gt;world WebKit&lt;/b&gt;&lt;/strike&gt;&quot;
+FAIL strikeThrough(null) on all of &quot;hello &lt;i&gt;&lt;strike&gt;world&lt;/strike&gt;&lt;/i&gt;&lt;b&gt;&lt;strike&gt;WebKit&lt;/strike&gt;&lt;/b&gt; rocks&quot; yields &quot;hello &lt;i&gt;&lt;strike&gt;world&lt;/strike&gt;&lt;/i&gt;&lt;b&gt;&lt;strike&gt;WebKit&lt;/strike&gt;&lt;/b&gt; rocks&quot;, expected &quot;&lt;strike&gt;hello &lt;i&gt;world&lt;/i&gt;&lt;b&gt;WebKit&lt;/b&gt; rocks&lt;/strike&gt;&quot;
+FAIL strikeThrough(null) on all of &quot;hello &lt;i&gt;&lt;strike&gt;world&lt;/strike&gt;&lt;/i&gt; WebKit &lt;b&gt;&lt;strike&gt;rocks&lt;/strike&gt;&lt;/b&gt;&quot; yields &quot;hello &lt;i&gt;&lt;strike&gt;world&lt;/strike&gt;&lt;/i&gt; WebKit &lt;b&gt;&lt;strike&gt;rocks&lt;/strike&gt;&lt;/b&gt;&quot;, expected &quot;&lt;strike&gt;hello &lt;i&gt;world&lt;/i&gt; WebKit &lt;b&gt;rocks&lt;/b&gt;&lt;/strike&gt;&quot;
+FAIL bold(null) on all of &quot;hello&lt;div&gt;&lt;i&gt;world&lt;/i&gt; &lt;b&gt;WebKit&lt;/b&gt;&lt;/div&gt;&lt;div&gt;rocks&lt;/div&gt;&quot; yields &quot;hello&lt;div&gt;&lt;i&gt;world&lt;/i&gt; &lt;b&gt;WebKit&lt;/b&gt;&lt;/div&gt;&lt;div&gt;rocks&lt;/div&gt;&quot;, expected &quot;&lt;b&gt;hello&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;world&lt;/i&gt; WebKit&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;rocks&lt;/b&gt;&lt;/div&gt;&quot;
+FAIL bold(null) on all of &quot;hello&lt;br style=&quot;display: block;&quot;&gt;&lt;i&gt;&lt;b&gt;world&lt;/b&gt;&lt;/i&gt;&lt;br&gt;&lt;b&gt;WebKit&lt;/b&gt;&quot; yields &quot;hello&lt;br style=&quot;display: block;&quot;&gt;&lt;i&gt;&lt;b&gt;world&lt;/b&gt;&lt;/i&gt;&lt;br&gt;&lt;b&gt;WebKit&lt;/b&gt;&quot;, expected &quot;&lt;b&gt;hello&lt;br style=&quot;display: block;&quot;&gt;&lt;i&gt;world&lt;/i&gt;&lt;br&gt;WebKit&lt;/b&gt;&quot;
+FAIL bold(null) on all of &quot;hello&lt;p&gt;&lt;b&gt;world&lt;/b&gt; &lt;i&gt;&lt;b&gt;W&lt;/b&gt;ebKit&lt;/i&gt;&lt;/p&gt;&lt;b&gt;rocks&lt;/b&gt;&quot; yields &quot;hello&lt;p&gt;&lt;b&gt;world&lt;/b&gt; &lt;i&gt;&lt;b&gt;W&lt;/b&gt;ebKit&lt;/i&gt;&lt;/p&gt;&lt;b&gt;rocks&lt;/b&gt;&quot;, expected &quot;&lt;b&gt;hello&lt;/b&gt;&lt;p&gt;&lt;b&gt;world &lt;i&gt;WebKit&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;rocks&lt;/b&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleinvalidfontsizeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/invalid-font-size-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/invalid-font-size-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/invalid-font-size-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests applying font size to text inside a font element with an invalid size attribute.
+WebKit should not crash and there should be exactly one font element with size=&quot;4&quot;
+| &lt;font&gt;
+|   size=&quot;x&quot;
+|   &quot;hello&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylemaketextwritingdirectioninlinemacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+Tests to ensure MakeTextWritingDirection* modifies the direction of text and embed texts properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS Natural on first word of &quot;hello world&quot;
+FAIL LeftToRight on first word of &quot;hello world&quot; yielded hello world but expected &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;hello&lt;/span&gt; world
+FAIL RightToLeft on first word of &quot;hello world&quot; yielded &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;hello &lt;/span&gt;world but expected &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;hello&lt;/span&gt; world
+PASS Natural on second and third words of &quot;&lt;b&gt;hello world&lt;/b&gt; webkit&quot;
+FAIL LeftToRight on second and third words of &quot;&lt;b&gt;hello world&lt;/b&gt; webkit&quot; yielded &lt;b&gt;hello &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;world&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; webkit&lt;/span&gt; but expected &lt;b&gt;hello&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; world&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; webkit&lt;/span&gt;
+FAIL RightToLeft on second and third words of &quot;&lt;b&gt;hello world&lt;/b&gt; webkit&quot; yielded &lt;b&gt;hello &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;world&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; webkit&lt;/span&gt; but expected &lt;b&gt;hello&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; world&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; webkit&lt;/span&gt;
+FAIL Natural on third word of &quot;&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;&quot; yielded &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;webkit &lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;rocks&lt;/span&gt;&lt;/span&gt; but expected &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world&lt;/span&gt;&lt;/span&gt; webkit&lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt; rocks&lt;/span&gt;&lt;/span&gt;
+FAIL LeftToRight on third word of &quot;&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;&quot; yielded &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt; but expected &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; webkit&lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt; rocks&lt;/span&gt;&lt;/span&gt;
+FAIL RightToLeft on third word of &quot;&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;&quot; yielded &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt; but expected &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world&lt;/span&gt; webkit&lt;span dir=&quot;ltr&quot;&gt; rocks&lt;/span&gt;&lt;/span&gt;
+PASS Natural on first word of &quot;هنا يكتب النص العربي&quot;
+FAIL LeftToRight on first word of &quot;هنا يكتب النص العربي&quot; yielded &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;هنا &lt;/span&gt;يكتب النص العربي but expected &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;هنا&lt;/span&gt; يكتب النص العربي
+FAIL RightToLeft on first word of &quot;هنا يكتب النص العربي&quot; yielded &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;هنا &lt;/span&gt;يكتب النص العربي but expected &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;هنا&lt;/span&gt; يكتب النص العربي
+PASS Natural on second and third words of &quot;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&quot;
+FAIL LeftToRight on second and third words of &quot;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&quot; yielded &lt;b&gt;هنا &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; النص &lt;/span&gt;العربي but expected &lt;b&gt;هنا&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; النص&lt;/span&gt; العربي
+FAIL RightToLeft on second and third words of &quot;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&quot; yielded &lt;b&gt;هنا &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; النص &lt;/span&gt;العربي but expected &lt;b&gt;هنا&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; النص&lt;/span&gt; العربي
+PASS Natural on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt;&quot;
+FAIL LeftToRight on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;هنا&lt;/span&gt; يكتب النص العربي&lt;/div&gt;
+FAIL RightToLeft on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt;هنا&lt;/span&gt; يكتب النص العربي&lt;/div&gt;
+PASS Natural on second and third words of &quot;&lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt;&quot;
+FAIL LeftToRight on second and third words of &quot;&lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt; يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt; النص&lt;/span&gt; العربي&lt;/div&gt;
+FAIL RightToLeft on second and third words of &quot;&lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; النص&lt;/span&gt; العربي&lt;/div&gt;
+FAIL Natural on third word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب&lt;/span&gt; النص&lt;span dir=&quot;ltr&quot;&gt; العربي&lt;/span&gt;&lt;/div&gt;
+FAIL LeftToRight on third word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;هنا يكتب النص العربي&lt;/span&gt;&lt;/div&gt;
+FAIL RightToLeft on third word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب&lt;/span&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; النص&lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt; العربي&lt;/span&gt;&lt;/div&gt;
+PASS Natural on first word of &quot;写中文&quot;
+FAIL LeftToRight on first word of &quot;写中文&quot; yielded 写中文 but expected &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;写&lt;/span&gt;中文
+FAIL RightToLeft on first word of &quot;写中文&quot; yielded 写中文 but expected &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;写&lt;/span&gt;中文
+PASS Natural on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt;&quot;
+FAIL LeftToRight on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;写&lt;/span&gt;中文&lt;/div&gt;
+FAIL RightToLeft on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt;写&lt;/span&gt;中文&lt;/div&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylemaketextwritingdirectioninlinewinexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-win-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-win-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/make-text-writing-direction-inline-win-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+Tests to ensure MakeTextWritingDirection* modifies the direction of text and embed texts properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS Natural on first word of &quot;hello world&quot;
+FAIL LeftToRight on first word of &quot;hello world&quot; yielded hello world but expected &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;hello &lt;/span&gt;world
+FAIL RightToLeft on first word of &quot;hello world&quot; yielded hello world but expected &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;hello &lt;/span&gt;world
+PASS Natural on second and third words of &quot;&lt;b&gt;hello world&lt;/b&gt; webkit&quot;
+FAIL LeftToRight on second and third words of &quot;&lt;b&gt;hello world&lt;/b&gt; webkit&quot; yielded &lt;b&gt;hello world&lt;/b&gt; webkit but expected &lt;b&gt;hello &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;world&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; webkit&lt;/span&gt;
+FAIL RightToLeft on second and third words of &quot;&lt;b&gt;hello world&lt;/b&gt; webkit&quot; yielded &lt;b&gt;hello world&lt;/b&gt; webkit but expected &lt;b&gt;hello &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;world&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; webkit&lt;/span&gt;
+FAIL Natural on third word of &quot;&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;&quot; yielded &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt; but expected &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world &lt;/span&gt;&lt;/span&gt;webkit &lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;rocks&lt;/span&gt;&lt;/span&gt;
+FAIL LeftToRight on third word of &quot;&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;&quot; yielded &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt; but expected &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt;webkit &lt;/span&gt;&lt;span dir=&quot;rtl&quot;&gt;&lt;span dir=&quot;ltr&quot;&gt;rocks&lt;/span&gt;&lt;/span&gt;
+FAIL RightToLeft on third word of &quot;&lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt;&quot; yielded &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world webkit rocks&lt;/span&gt;&lt;/span&gt; but expected &lt;span dir=&quot;rtl&quot;&gt;hello &lt;span dir=&quot;ltr&quot;&gt;world &lt;/span&gt;webkit &lt;span dir=&quot;ltr&quot;&gt;rocks&lt;/span&gt;&lt;/span&gt;
+PASS Natural on first word of &quot;هنا يكتب النص العربي&quot;
+FAIL LeftToRight on first word of &quot;هنا يكتب النص العربي&quot; yielded هنا يكتب النص العربي but expected &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;هنا &lt;/span&gt;يكتب النص العربي
+FAIL RightToLeft on first word of &quot;هنا يكتب النص العربي&quot; yielded هنا يكتب النص العربي but expected &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;هنا &lt;/span&gt;يكتب النص العربي
+PASS Natural on second and third words of &quot;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&quot;
+FAIL LeftToRight on second and third words of &quot;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&quot; yielded &lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي but expected &lt;b&gt;هنا &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; النص &lt;/span&gt;العربي
+FAIL RightToLeft on second and third words of &quot;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&quot; yielded &lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي but expected &lt;b&gt;هنا &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt; النص &lt;/span&gt;العربي
+PASS Natural on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt;&quot;
+FAIL LeftToRight on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;هنا &lt;/span&gt;يكتب النص العربي&lt;/div&gt;
+FAIL RightToLeft on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا يكتب النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt;هنا &lt;/span&gt;يكتب النص العربي&lt;/div&gt;
+PASS Natural on second and third words of &quot;&lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt;&quot;
+FAIL LeftToRight on second and third words of &quot;&lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا &lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt; النص &lt;/span&gt;العربي&lt;/div&gt;
+FAIL RightToLeft on second and third words of &quot;&lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا يكتب&lt;/b&gt; النص العربي&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;b&gt;هنا &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;يكتب&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt; النص &lt;/span&gt;العربي&lt;/div&gt;
+FAIL Natural on third word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب &lt;/span&gt;النص &lt;span dir=&quot;ltr&quot;&gt;العربي&lt;/span&gt;&lt;/div&gt;
+FAIL LeftToRight on third word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;هنا يكتب النص العربي&lt;/span&gt;&lt;/div&gt;
+FAIL RightToLeft on third word of &quot;&lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب النص العربي&lt;/span&gt;&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;هنا &lt;span dir=&quot;ltr&quot;&gt;يكتب &lt;/span&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt;النص &lt;/span&gt;&lt;span dir=&quot;ltr&quot;&gt;العربي&lt;/span&gt;&lt;/div&gt;
+PASS Natural on first word of &quot;写中文&quot;
+FAIL LeftToRight on first word of &quot;写中文&quot; yielded 写中文 but expected &lt;span style=&quot;unicode-bidi: embed;&quot;&gt;写&lt;/span&gt;中文
+FAIL RightToLeft on first word of &quot;写中文&quot; yielded 写中文 but expected &lt;span style=&quot;unicode-bidi: embed; direction: rtl;&quot;&gt;写&lt;/span&gt;中文
+PASS Natural on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt;&quot;
+FAIL LeftToRight on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed; direction: ltr;&quot;&gt;写&lt;/span&gt;中文&lt;/div&gt;
+FAIL RightToLeft on first word of &quot;&lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt;&quot; yielded &lt;div dir=&quot;rtl&quot;&gt;写中文&lt;/div&gt; but expected &lt;div dir=&quot;rtl&quot;&gt;&lt;span style=&quot;unicode-bidi: embed;&quot;&gt;写&lt;/span&gt;中文&lt;/div&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylenoninheritablestylesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/non-inheritable-styles-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/non-inheritable-styles-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/non-inheritable-styles-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+This tests copy.  Non-inheritable styles should be brought down from stylesheets.
+| 
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepreserveselectiondirectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/preserve-selection-direction-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/preserve-selection-direction-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/preserve-selection-direction-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Bug 110979: Selection direction is not preserved when applying styles
+
+This test verifies that selection direction is preserved when applying styles.
+
+This is some sample text
+selection.collapse(editable.firstChild, 3);
+selection.extend(editable.firstChild, 8);
+document.execCommand('foreColor', false, 'green');
+PASS selection.anchorOffset is 0
+FAIL selection.focusOffset should be 5. Was 0.
+editable.innerHTML = 'This is some sample text';
+selection.collapse(editable.firstChild, 8);
+selection.extend(editable.firstChild, 3);
+document.execCommand('foreColor', false, 'green');
+FAIL selection.anchorOffset should be 5. Was 0.
+PASS selection.focusOffset is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepushdownfontstylesmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+Test to make sure we push down inline styles properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Font size
+PASS fontsize 2 on all of &quot;hello world&quot; yields &quot;&lt;font size=&quot;2&quot;&gt;hello world&lt;/font&gt;&quot;
+FAIL fontsize 4 on all of &quot;hello world&quot; yields &quot;hello world&quot;, expected &quot;&lt;font size=&quot;4&quot;&gt;hello world&lt;/font&gt;&quot;
+FAIL fontsize 5 on first word of &quot;hello world&quot; yields &quot;hello world&quot;, expected &quot;&lt;font size=&quot;5&quot;&gt;hello&lt;/font&gt; world&quot;
+PASS fontsize 3 on first word of &quot;&lt;font size=&quot;7&quot;&gt;hello &lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;hello &lt;div style=&quot;font-size: -webkit-xxx-large;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontsize 3 on first word of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;&lt;div style=&quot;font-size: -webkit-xxx-large;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontsize 3 on second word of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div style=&quot;font-size: -webkit-xxx-large;&quot;&gt;hello&lt;/div&gt;world&quot;
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font size=&quot;7&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;7&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontsize 6 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font size=&quot;6&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;6&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontsize 5 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;5&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;world&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+FAIL fontsize 1 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;, expected &quot;&lt;div&gt;&lt;font size=&quot;1&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;1&quot;&gt;world&lt;/font&gt;&quot;
+
+Font size (with CSS)
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: -webkit-xxx-large;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: -webkit-xxx-large;&quot;&gt;world&lt;/span&gt;&quot;
+PASS fontsize 6 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;world&lt;/span&gt;&quot;
+PASS fontsize 5 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;world&lt;/span&gt;&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;world&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 1 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;world&lt;/span&gt;&quot;
+
+Font family
+PASS fontname Arial on all of &quot;hello world&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello world&lt;/font&gt;&quot;
+FAIL fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello world&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello &lt;/font&gt;&lt;font face=&quot;sans-serif&quot;&gt;world&lt;/font&gt;&quot;, expected &quot;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;font face=&quot;sans-serif&quot;&gt; world&lt;/font&gt;&quot;
+PASS fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontname Arial on second word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;/font&gt;&lt;div&gt;&lt;font face=&quot;Arial&quot;&gt;world&lt;/font&gt;&lt;/div&gt;&quot;
+PASS fontname Sans-Serif on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot;
+PASS fontname Arial on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Arial&quot;&gt;world&lt;/font&gt;&lt;/div&gt;&quot;
+
+Font family (with CSS)
+PASS fontname Arial on all of &quot;hello world&quot; yields &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello world&lt;/span&gt;&quot;
+FAIL fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello world&lt;/font&gt;&quot; yields &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello &lt;/span&gt;&lt;font face=&quot;sans-serif&quot;&gt;world&lt;/font&gt;&quot;, expected &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello&lt;/span&gt;&lt;font face=&quot;sans-serif&quot;&gt; world&lt;/font&gt;&quot;
+PASS fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello&lt;/span&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontname Arial on second word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;hello&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;world&lt;/span&gt;&lt;/div&gt;&quot;
+PASS fontname Sans-Serif on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot;
+PASS fontname Arial on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;world&lt;/span&gt;&lt;/div&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepushdownfontstyleswinexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-win-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-win-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-font-styles-win-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+Test to make sure we push down inline styles properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Font size
+FAIL fontsize 2 on all of &quot;hello world&quot; yields &quot;hello world&quot;, expected &quot;&lt;font size=&quot;2&quot;&gt;hello world&lt;/font&gt;&quot;
+PASS fontsize 4 on all of &quot;hello world&quot; yields &quot;&lt;font size=&quot;4&quot;&gt;hello world&lt;/font&gt;&quot;
+PASS fontsize 5 on first word of &quot;hello world&quot; yields &quot;&lt;font size=&quot;5&quot;&gt;hello &lt;/font&gt;world&quot;
+PASS fontsize 3 on first word of &quot;&lt;font size=&quot;7&quot;&gt;hello &lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;hello &lt;div style=&quot;font-size: -webkit-xxx-large;&quot;&gt;world&lt;/div&gt;&quot;
+FAIL fontsize 3 on first word of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&quot;, expected &quot;&lt;div&gt;hello&lt;/div&gt;&lt;div style=&quot;font-size: -webkit-xxx-large;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontsize 3 on second word of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div style=&quot;font-size: -webkit-xxx-large;&quot;&gt;hello&lt;/div&gt;world&quot;
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font size=&quot;7&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;7&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontsize 6 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font size=&quot;6&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;6&quot;&gt;world&lt;/font&gt;&quot;
+FAIL fontsize 5 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;, expected &quot;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;5&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;world&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 1 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font size=&quot;1&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;font size=&quot;1&quot;&gt;world&lt;/font&gt;&quot;
+
+Font size (with CSS)
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 7 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: -webkit-xxx-large;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: -webkit-xxx-large;&quot;&gt;world&lt;/span&gt;&quot;
+PASS fontsize 6 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;world&lt;/span&gt;&quot;
+PASS fontsize 5 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;world&lt;/span&gt;&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;7&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;hello&lt;/div&gt;world&quot;
+PASS fontsize 3 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot;
+PASS fontsize 1 on all of &quot;&lt;font size=&quot;3&quot;&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;world&lt;/span&gt;&quot;
+
+Font family
+PASS fontname Arial on all of &quot;hello world&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello world&lt;/font&gt;&quot;
+FAIL fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello world&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello world&lt;/font&gt;&quot;, expected &quot;&lt;font face=&quot;Arial&quot;&gt;hello &lt;/font&gt;&lt;font face=&quot;sans-serif&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontname Arial on second word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;/font&gt;&lt;div&gt;&lt;font face=&quot;Arial&quot;&gt;world&lt;/font&gt;&lt;/div&gt;&quot;
+PASS fontname Sans-Serif on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot;
+PASS fontname Arial on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;font face=&quot;Arial&quot;&gt;hello&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Arial&quot;&gt;world&lt;/font&gt;&lt;/div&gt;&quot;
+
+Font family (with CSS)
+PASS fontname Arial on all of &quot;hello world&quot; yields &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello world&lt;/span&gt;&quot;
+PASS fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello world&lt;/font&gt;&quot; yields &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello &lt;/span&gt;&lt;font face=&quot;sans-serif&quot;&gt;world&lt;/font&gt;&quot;
+PASS fontname Arial on first word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello&lt;/span&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;world&lt;/div&gt;&quot;
+PASS fontname Arial on second word of &quot;&lt;font face=&quot;sans-serif&quot;&gt;hello&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;hello&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;world&lt;/span&gt;&lt;/div&gt;&quot;
+PASS fontname Sans-Serif on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot;
+PASS fontname Arial on all of &quot;&lt;font face=&quot;sans-serif&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/font&gt;&quot; yields &quot;&lt;div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;world&lt;/span&gt;&lt;/div&gt;&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepushdownimplicitstylesaroundlistmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+Test to make sure we push down inline styles properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS bold on first word of &lt;b&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;a&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/b&gt; yields &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+PASS bold on first word of &lt;b&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/b&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+PASS bold on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL bold on first word of &lt;b&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/b&gt; yields &lt;ul&gt;&lt;li&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;b&gt; world&lt;/b&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+PASS italic on first word of &lt;i&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;a&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt; yields &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+PASS italic on first word of &lt;i&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+PASS italic on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL italic on first word of &lt;i&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt; yields &lt;ul&gt;&lt;li&gt;hello &lt;i&gt;world&lt;/i&gt;&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;i&gt; world&lt;/i&gt;&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+FAIL underline on first word of &lt;u&gt;&lt;ul&gt;&lt;li&gt;&lt;u&gt;a&lt;/u&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt; yields &lt;u&gt;&lt;ul&gt;&lt;li&gt;&lt;u&gt;a&lt;/u&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt;, expected &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+FAIL underline on first word of &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt; yields &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL underline on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL underline on first word of &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt; yields &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;u&gt; world&lt;/u&gt;&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+FAIL strikethrough on first word of &lt;strike&gt;&lt;ul&gt;&lt;li&gt;&lt;strike&gt;a&lt;/strike&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt; yields &lt;strike&gt;&lt;ul&gt;&lt;li&gt;&lt;strike&gt;a&lt;/strike&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt;, expected &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+PASS strikethrough on first word of &lt;strike&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+PASS strikethrough on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL strikethrough on first word of &lt;strike&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt; yields &lt;ul&gt;&lt;li&gt;hello &lt;strike&gt;world&lt;/strike&gt;&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;strike&gt; world&lt;/strike&gt;&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepushdownimplicitstylesaroundlistwinexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-win-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-win-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-around-list-win-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+Test to make sure we push down inline styles properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS bold on first word of &lt;b&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;a&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/b&gt; yields &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+FAIL bold on first word of &lt;b&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/b&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+PASS bold on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL bold on first word of &lt;b&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/b&gt; yields &lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello &lt;b&gt;world&lt;/b&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: bold;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+FAIL italic on first word of &lt;i&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;a&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt; yields &lt;i&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;a&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt;, expected &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+FAIL italic on first word of &lt;i&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt; yields &lt;i&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL italic on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL italic on first word of &lt;i&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt; yields &lt;i&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt;, expected &lt;ul&gt;&lt;li&gt;hello &lt;i&gt;world&lt;/i&gt;&lt;/li&gt;&lt;li style=&quot;font-style: italic;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+PASS underline on first word of &lt;u&gt;&lt;ul&gt;&lt;li&gt;&lt;u&gt;a&lt;/u&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt; yields &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+FAIL underline on first word of &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt; yields &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+PASS underline on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL underline on first word of &lt;u&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/u&gt; yields &lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello &lt;u&gt;world&lt;/u&gt;&lt;/li&gt;&lt;li style=&quot;text-decoration: underline;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+PASS strikethrough on first word of &lt;strike&gt;&lt;ul&gt;&lt;li&gt;&lt;strike&gt;a&lt;/strike&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt; yields &lt;ul&gt;&lt;li&gt;a&lt;/li&gt;&lt;/ul&gt;
+FAIL strikethrough on first word of &lt;strike&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL strikethrough on last word of &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt; yields &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;world&lt;/li&gt;&lt;/ul&gt;, expected &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
+FAIL strikethrough on first word of &lt;strike&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt; yields &lt;strike&gt;&lt;ul&gt;&lt;li&gt;hello world&lt;/li&gt;&lt;li&gt;webkit&lt;/li&gt;&lt;/ul&gt;&lt;/strike&gt;, expected &lt;ul&gt;&lt;li&gt;hello &lt;strike&gt;world&lt;/strike&gt;&lt;/li&gt;&lt;li style=&quot;text-decoration: line-through;&quot;&gt;webkit&lt;/li&gt;&lt;/ul&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepushdownimplicitstylesmacexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-mac-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-mac-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-implicit-styles-mac-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+Test to make sure we push down inline styles properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL bold on first word of &lt;b&gt;&lt;div&gt;hello&lt;/div&gt; world&lt;/b&gt; yields &lt;b&gt;&lt;div&gt;hello&lt;/div&gt; world&lt;/b&gt;, expected &lt;div&gt;hello&lt;/div&gt;&lt;b&gt; world&lt;/b&gt;
+FAIL bold on first word of &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/b&gt; yields &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;world&lt;/b&gt;, expected &lt;div&gt;hello&lt;/div&gt;&lt;b&gt;world&lt;/b&gt;
+FAIL bold on first word of &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;&lt;em&gt;world&lt;/em&gt;&lt;/b&gt; yields &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;&lt;em&gt;world&lt;/em&gt;&lt;/b&gt;, expected &lt;div&gt;hello&lt;/div&gt;&lt;em style=&quot;font-weight: bold;&quot;&gt;world&lt;/em&gt;
+FAIL bold on second word of &lt;b&gt;hello &lt;div&gt;world&lt;/div&gt;&lt;/b&gt; yields &lt;b&gt;hello &lt;div&gt;world&lt;/div&gt;&lt;/b&gt;, expected &lt;b&gt;hello &lt;/b&gt;&lt;div&gt;world&lt;/div&gt;
+FAIL bold on second word of &lt;b&gt;&lt;em&gt;hello&lt;/em&gt; &lt;div&gt;world&lt;/div&gt;&lt;/b&gt; yields &lt;b&gt;&lt;em&gt;hello&lt;/em&gt; &lt;div&gt;world&lt;/div&gt;&lt;/b&gt;, expected &lt;em style=&quot;font-weight: bold;&quot;&gt;hello&lt;/em&gt; &lt;div&gt;world&lt;/div&gt;
+FAIL bold on all of &lt;b&gt; &lt;div&gt;text&lt;/div&gt; &lt;/b&gt; yields &lt;b&gt; &lt;div&gt;text&lt;/div&gt; &lt;/b&gt;, expected  &lt;div&gt;text&lt;/div&gt; 
+FAIL bold on all of &lt;b&gt;&lt;strike&gt;&lt;div&gt;text&lt;/div&gt;&lt;/strike&gt;&lt;/b&gt; yields &lt;b&gt;&lt;strike&gt;&lt;div&gt;text&lt;/div&gt;&lt;/strike&gt;&lt;/b&gt;, expected &lt;strike&gt;&lt;div&gt;text&lt;/div&gt;&lt;/strike&gt;
+FAIL bold on first word of &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/b&gt; yields &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/b&gt;, expected &lt;div&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;world&lt;/div&gt;
+FAIL bold on first word of &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;world&lt;/div&gt;webkit&lt;/b&gt; yields &lt;b&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;world&lt;/div&gt;webkit&lt;/b&gt;, expected &lt;div&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;world&lt;/div&gt;&lt;b&gt;webkit&lt;/b&gt;
+FAIL bold on second word of &lt;b style=&quot;font-style: italic;&quot;&gt;hello world&lt;/b&gt; yields &lt;b style=&quot;font-style: italic;&quot;&gt;hello world&lt;/b&gt;, expected &lt;b style=&quot;font-style: italic;&quot;&gt;hello&lt;/b&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; world&lt;/span&gt;
+FAIL underline on second word of &lt;u&gt;hello &lt;b&gt;world&lt;/b&gt; webkit&lt;/u&gt; yields &lt;u&gt;hello &lt;b&gt;world&lt;/b&gt; webkit&lt;/u&gt;, expected &lt;u&gt;hello&lt;/u&gt; &lt;b&gt;world&lt;/b&gt;&lt;u&gt; webkit&lt;/u&gt;
+FAIL underline on last two words of &lt;u&gt;hello &lt;b&gt;world&lt;/b&gt; webkit&lt;/u&gt; yields &lt;u&gt;hello &lt;b&gt;world&lt;/b&gt; webkit&lt;/u&gt;, expected &lt;u&gt;hello &lt;/u&gt;&lt;b&gt;world&lt;/b&gt; webkit
+FAIL underline on last two words of &lt;u&gt;hello &lt;b&gt;world webkit&lt;/b&gt;&lt;/u&gt; yields &lt;u&gt;hello &lt;b&gt;world webkit&lt;/b&gt;&lt;/u&gt;, expected &lt;u&gt;hello &lt;/u&gt;&lt;b&gt;world webkit&lt;/b&gt;
+FAIL underline on second word of &lt;u&gt;hello &lt;b&gt;world webkit&lt;/b&gt;&lt;/u&gt; yields &lt;u&gt;hello &lt;b&gt;world webkit&lt;/b&gt;&lt;/u&gt;, expected &lt;u&gt;hello&lt;/u&gt; &lt;b&gt;world&lt;u&gt; webkit&lt;/u&gt;&lt;/b&gt;
+FAIL underline on second word of &lt;u&gt;&lt;b&gt;hello world&lt;/b&gt; webkit&lt;/u&gt; yields &lt;u&gt;&lt;b&gt;hello world&lt;/b&gt; webkit&lt;/u&gt;, expected &lt;b&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/b&gt;&lt;u&gt; webkit&lt;/u&gt;
+FAIL underline on second word of &lt;u&gt;&lt;strike&gt;hello world&lt;/strike&gt;&lt;/u&gt; yields &lt;u&gt;&lt;strike&gt;hello world&lt;/strike&gt;&lt;/u&gt;, expected &lt;strike&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/strike&gt;
+FAIL underline on second word of &lt;u&gt;&lt;strike&gt;hello world webkit&lt;/strike&gt;&lt;/u&gt; yields &lt;u&gt;&lt;strike&gt;hello world webkit&lt;/strike&gt;&lt;/u&gt;, expected &lt;strike&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;u&gt; webkit&lt;/u&gt;&lt;/strike&gt;
+FAIL underline on second word of &lt;u&gt;&lt;strike&gt;hello world&lt;/strike&gt; webkit&lt;/u&gt; yields &lt;u&gt;&lt;strike&gt;hello world&lt;/strike&gt; webkit&lt;/u&gt;, expected &lt;strike&gt;&lt;u&gt;hello&lt;/u&gt; world&lt;/strike&gt;&lt;u&gt; webkit&lt;/u&gt;
+FAIL underline on second word of &lt;u&gt;hello &lt;em&gt;&lt;code&gt;world webkit&lt;/code&gt;&lt;/em&gt; rocks&lt;/u&gt; yields &lt;u&gt;hello &lt;em&gt;&lt;code&gt;world webkit&lt;/code&gt;&lt;/em&gt; rocks&lt;/u&gt;, expected &lt;u&gt;hello&lt;/u&gt; &lt;em&gt;&lt;code&gt;world&lt;u&gt; webkit&lt;/u&gt;&lt;/code&gt;&lt;/em&gt;&lt;u&gt; rocks&lt;/u&gt;
+FAIL strikeThrough on all of &lt;s style=&quot;color: blue;&quot;&gt;hello world&lt;/strike&gt; yields &lt;s style=&quot;color: blue;&quot;&gt;hello world&lt;/s&gt;, expected &lt;span style=&quot;color: blue;&quot;&gt;hello world&lt;/span&gt;
+FAIL strikeThrough on first word of &lt;s style=&quot;color: blue;&quot;&gt;&lt;div&gt;hello&lt;/div&gt; &lt;b&gt;world&lt;/b&gt; webkit&lt;/strike&gt; yields &lt;s style=&quot;color: blue;&quot;&gt;&lt;div&gt;hello&lt;/div&gt; &lt;b&gt;world&lt;/b&gt; webkit&lt;/s&gt;, expected &lt;span style=&quot;color: blue;&quot;&gt;&lt;div&gt;hello&lt;/div&gt; &lt;b style=&quot;text-decoration: line-through;&quot;&gt;world&lt;/b&gt;&lt;strike&gt; webkit&lt;/strike&gt;&lt;/span&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylepushdowninlinestylesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-inline-styles-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-inline-styles-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/push-down-inline-styles-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+Test to make sure we push down inline styles properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS bold converted &lt;span style=&quot;font-weight: 900;&quot;&gt; &lt;div&gt;text&lt;/div&gt; &lt;/span&gt; to  &lt;div&gt;text&lt;/div&gt; 
+PASS bold converted &lt;span style=&quot;font-weight: 900;&quot;&gt;&lt;div&gt;text&lt;/div&gt;&lt;/span&gt; to &lt;div&gt;text&lt;/div&gt;
+PASS bold converted &lt;span style=&quot;font-weight: 900;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;&lt;/span&gt; to &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: 900;&quot;&gt;world&lt;/div&gt;
+FAIL bold converted &lt;div style=&quot;font-weight: bold;&quot;&gt;hello&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;/div&gt; to &lt;div style=&quot;font-weight: bold;&quot;&gt;hello&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;/div&gt;, expected &lt;div&gt;&lt;b&gt;hello&lt;/b&gt;&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;/div&gt;
+PASS bold converted &lt;span style=&quot;font-weight: bold;&quot;&gt;hello&lt;span id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;/div&gt; to &lt;b&gt;hello&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;world&lt;/span&gt;
+PASS bold converted &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;hello&lt;span id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;/div&gt; to &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;b&gt;hello&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;world&lt;/span&gt;&lt;/span&gt;
+FAIL bold converted &lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;div&gt;world&lt;/div&gt;webkit&lt;/div&gt; to &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;font-weight: normal;&quot;&gt;&lt;div&gt;world&lt;/div&gt;webkit&lt;/div&gt;, expected &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div&gt;world&lt;/div&gt;webkit
+PASS italic converted &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;/span&gt; to &lt;div&gt;hello&lt;/div&gt;
+PASS italic converted &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;span style=&quot;font-style: oblique;&quot;&gt;world&lt;/span&gt; to &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;span style=&quot;font-style: oblique;&quot;&gt;world&lt;/span&gt;
+PASS italic converted &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;/span&gt; to &lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;/span&gt;
+PASS italic converted &lt;span style=&quot;font-style: italic; text-decoration: line-through;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;/span&gt; to &lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;/span&gt;
+PASS italic converted &lt;span style=&quot;font-style: italic;&quot;&gt;hello&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;blockquote&gt;webkit&lt;/blockquote&gt;&lt;/span&gt; to &lt;i&gt;hello&lt;/i&gt;&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;blockquote style=&quot;font-style: italic;&quot;&gt;webkit&lt;/blockquote&gt;
+PASS italic converted &lt;span style=&quot;font-style: italic;&quot;&gt;hello &lt;span id=&quot;test&quot;&gt;world&lt;/span&gt; webkit&lt;/span&gt; to &lt;i&gt;hello &lt;/i&gt;&lt;span id=&quot;test&quot;&gt;world&lt;/span&gt;&lt;i&gt; webkit&lt;/i&gt;
+PASS underline converted &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;world&lt;/span&gt; to &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;u&gt;world&lt;/u&gt;
+PASS underline converted &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;blockquote&gt;world&lt;br&gt;webkit&lt;/blockquote&gt;&lt;/span&gt; to &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;blockquote style=&quot;text-decoration: underline;&quot;&gt;world&lt;br&gt;webkit&lt;/blockquote&gt;
+FAIL underline converted &lt;span style=&quot;text-decoration: underline;&quot;&gt;hello&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;webkit&lt;/u&gt; to &lt;span style=&quot;text-decoration: underline;&quot;&gt;hello&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;webkit&lt;/span&gt;, expected &lt;u&gt;hello&lt;/u&gt;&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;u&gt;webkit&lt;/u&gt;
+FAIL underline converted &lt;div style=&quot;text-decoration: underline;&quot;&gt;&lt;div&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;test&quot;&gt;webkit&lt;/div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;rocks&lt;/span&gt; to &lt;div style=&quot;text-decoration: underline;&quot;&gt;&lt;div&gt;hello&lt;/div&gt;&lt;div id=&quot;test&quot;&gt;webkit&lt;/div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;rocks&lt;/span&gt;&lt;/div&gt;, expected &lt;div&gt;&lt;div style=&quot;text-decoration: underline;&quot;&gt;hello&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;test&quot;&gt;webkit&lt;/div&gt;&lt;u&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;rocks&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
+PASS underline converted &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;div style=&quot;text-decoration: line-through;&quot;&gt;hello&lt;/div&gt;&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;&lt;/span&gt; to &lt;div style=&quot;text-decoration: underline line-through;&quot;&gt;hello&lt;/div&gt;&lt;div id=&quot;test&quot;&gt;world&lt;/div&gt;
+FAIL strikeThrough converted &lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;text-decoration: underline;&quot;&gt;world&lt;/div&gt;&lt;/span&gt; to &lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;text-decoration: underline;&quot;&gt;world&lt;/div&gt;&lt;/span&gt;, expected &lt;div id=&quot;test&quot;&gt;hello&lt;/div&gt;&lt;div style=&quot;text-decoration: line-through underline;&quot;&gt;world&lt;/div&gt;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylequerytypingstyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/query-typing-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/query-typing-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/query-typing-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests querying BackColor and FontSize of the typing style. WebKit should not modify the typing style and should return the correct values.
+
+FAIL: background color; expected rgb(255, 0, 0) but got 
+FAIL: font size; expected 5 but got 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleredundantbackgroundcolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/redundant-background-color-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/redundant-background-color-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/redundant-background-color-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+This tests to make sure that WebKit removes redundant background-color property after execCommand. (See the bug 91783). There should be no background-color property below.
+| &lt;ul&gt;
+|   &lt;li&gt;
+|     &quot;Hello&quot;
+|     &lt;br&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 715x58
+          text run at (14,15) width 709: &quot;Size check should say: 30px. All text in the red boxes should appear to be&quot;
+          text run at (722,15) width 7: &quot; &quot;
+          text run at (14,45) width 54: &quot;30px.&quot;
+      RenderBlock {DIV} at (0,112) size 784x30
+        RenderText {#text} at (0,1) size 116x28
+          text run at (0,1) width 116: &quot;Size check: &quot;
+        RenderInline {SPAN} at (0,0) size 49x28
+          RenderText {#text} at (115,1) size 49x28
+            text run at (115,1) width 49: &quot;27px&quot;
+      RenderBlock {DIV} at (0,158) size 784x155
+        RenderBlock {DIV} at (0,0) size 784x155 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x33
+            RenderText {#text} at (0,1) size 154x31
+              text run at (0,1) width 154: &quot;There is a tide&quot;
+          RenderBlock {DIV} at (14,47) size 756x61 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 220x31
+              text run at (14,15) width 220: &quot;In the affairs of men&quot;
+          RenderBlock (anonymous) at (14,108) size 756x33
+            RenderText {#text} at (0,1) size 267x31
+              text run at (0,1) width 267: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 748x58
+          text run at (14,15) width 742: &quot;Size check should say: 30px. All text on the first line, and the first two words&quot;
+          text run at (755,15) width 7: &quot; &quot;
+          text run at (14,45) width 430: &quot;of the second line, should appear to be 30px.&quot;
+      RenderBlock {DIV} at (0,112) size 784x30
+        RenderText {#text} at (0,1) size 116x28
+          text run at (0,1) width 116: &quot;Size check: &quot;
+        RenderInline {SPAN} at (0,0) size 49x28
+          RenderText {#text} at (115,1) size 49x28
+            text run at (115,1) width 49: &quot;27px&quot;
+      RenderBlock {DIV} at (0,158) size 784x152
+        RenderBlock {DIV} at (0,0) size 784x152 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x33
+            RenderInline {SPAN} at (0,0) size 154x31
+              RenderText {#text} at (0,1) size 154x31
+                text run at (0,1) width 154: &quot;There is a tide&quot;
+          RenderBlock {DIV} at (14,47) size 756x61 [border: (2px solid #FF0000)]
+            RenderInline {SPAN} at (0,0) size 69x31
+              RenderText {#text} at (14,15) size 69x31
+                text run at (14,15) width 69: &quot;In the &quot;
+            RenderText {#text} at (82,18) size 136x28
+              text run at (82,18) width 136: &quot;affairs of men&quot;
+          RenderBlock (anonymous) at (14,108) size 756x30
+            RenderText {#text} at (0,1) size 238x28
+              text run at (0,1) width 238: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+CONSOLE MESSAGE: line 60: TypeError: null is not an object (evaluating 'document.defaultView.getComputedStyle(test, &quot;&quot;).getPropertyValue')
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 738x88
+          text run at (14,15) width 719: &quot;Size check should say: 24px. The first two words of the second line should&quot;
+          text run at (732,15) width 7: &quot; &quot;
+          text run at (14,45) width 329: &quot;appear to be 24px. The rest of the &quot;
+          text run at (342,45) width 404: &quot;words on the second line should appear to&quot;
+          text run at (745,45) width 7: &quot; &quot;
+          text run at (14,75) width 83: &quot;be 30px.&quot;
+      RenderBlock {DIV} at (0,142) size 784x30
+        RenderText {#text} at (0,1) size 110x28
+          text run at (0,1) width 110: &quot;Size check:&quot;
+        RenderInline {SPAN} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,188) size 784x150
+        RenderBlock {DIV} at (0,0) size 784x150 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 137x28
+              text run at (0,1) width 137: &quot;There is a tide&quot;
+          RenderBlock {DIV} at (14,44) size 756x61 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 220x31
+              text run at (14,15) width 220: &quot;In the affairs of men&quot;
+          RenderBlock (anonymous) at (14,105) size 756x31
+            RenderInline {SPAN} at (0,0) size 248x29
+              RenderText {#text} at (0,1) size 248x29
+                text run at (0,1) width 248: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylerelativefontsizechange004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/relative-font-size-change-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 25 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 8 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x118 [border: (2px solid #0000FF)]
+        RenderText {#text} at (14,15) size 715x88
+          text run at (14,15) width 709: &quot;Size check should say: 30px. All text in the red boxes should appear to be&quot;
+          text run at (722,15) width 7: &quot; &quot;
+          text run at (14,45) width 682: &quot;24px. This test checks removing font size tags when they are no longer&quot;
+          text run at (695,45) width 7: &quot; &quot;
+          text run at (14,75) width 98: &quot;necessary.&quot;
+      RenderBlock {DIV} at (0,142) size 784x30
+        RenderText {#text} at (0,1) size 116x28
+          text run at (0,1) width 116: &quot;Size check: &quot;
+        RenderInline {SPAN} at (0,0) size 49x28
+          RenderText {#text} at (115,1) size 49x28
+            text run at (115,1) width 49: &quot;28px&quot;
+      RenderBlock {DIV} at (0,188) size 784x151
+        RenderBlock {DIV} at (0,0) size 784x151 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (14,14) size 756x30
+            RenderText {#text} at (0,1) size 137x28
+              text run at (0,1) width 137: &quot;There is a tide&quot;
+          RenderBlock {DIV} at (14,44) size 756x62 [border: (2px solid #FF0000)]
+            RenderText {#text} at (14,15) size 229x32
+              text run at (14,15) width 229: &quot;In the affairs of men&quot;
+          RenderBlock (anonymous) at (14,106) size 756x31
+            RenderInline {SPAN} at (0,0) size 248x29
+              RenderText {#text} at (0,1) size 248x29
+                text run at (0,1) width 248: &quot;Which taken at the flood&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremovestyledelementwithstylespanexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-styled-element-with-style-span-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-styled-element-with-style-span-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-styled-element-with-style-span-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+This test ensures WebKit removes implicitly styled elements even if they had class=&quot;Apple-style-span&quot;. There should be no span below.
+| &quot;hello &quot;
+| &lt;em&gt;
+|   class=&quot;Apple-style-span&quot;
+|   &quot;world&quot;
+| &quot; WebKit&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineacrossparagraphexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+x
+execUnderlineCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execInsertParagraphCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execUnderlineCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineacrossparagraphinboldexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-in-bold-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-in-bold-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-across-paragraph-in-bold-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+xxxxxx xxxxxx

+execBoldCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execUnderlineCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx x&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execInsertParagraphCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;br&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
+execUnderlineCommand: &lt;b&gt;&lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineafterparagraphinboldexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-after-paragraph-in-bold-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-after-paragraph-in-bold-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-after-paragraph-in-bold-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+x
+execBoldCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execUnderlineCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execInsertParagraphCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execUnderlineCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+xxxxxx xxxxxx xxxxxx
+execUnderlineCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx&amp;nbsp;&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx x&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx&amp;nbsp;&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx x&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx xx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx xxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx xxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxxx xxxxxx xxxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execUnderlineCommand: &lt;u&gt;xxxxxx &lt;/u&gt;xxxxxx &lt;u&gt;xxxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlinefromstylesheetexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-from-stylesheet-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-from-stylesheet-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-from-stylesheet-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests removing underline from stylesheet (.editing has underline). Because text-decoration that comes from a style rule cannot be pushed down, the underline should stay. (see bug 27809).
+| &quot;xxxxxx xx&quot;
+| &lt;span&gt;
+|   id=&quot;test&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleremoveunderlineinboldexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-in-bold-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-in-bold-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/remove-underline-in-bold-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+xxxxx
+execUnderlineCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execBoldCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;x&lt;/u&gt;&lt;/b&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execUnderlineCommand: &lt;b&gt;&lt;u&gt;xxxxx&lt;/u&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylesmooshstyles001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x194 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 718x58
+            text run at (0,31) width 718: &quot;Pasting black (document default color) text into a block of text with a non-&quot;
+            text run at (0,61) width 127: &quot;default color.&quot;
+        RenderBlock {DIV} at (14,120) size 756x60
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 438x28
+            text run at (0,31) width 438: &quot;Should see this content in the red box below: &quot;
+          RenderInline {SPAN} at (0,0) size 77x28 [color=#FF0000]
+            RenderText {#text} at (437,31) size 24x28
+              text run at (437,31) width 24: &quot;ab&quot;
+            RenderInline {SPAN} at (0,0) size 34x28 [color=#000000]
+              RenderText {#text} at (460,31) size 34x28
+                text run at (460,31) width 34: &quot;cde&quot;
+            RenderText {#text} at (493,31) size 21x28
+              text run at (493,31) width 21: &quot;fg&quot;
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,218) size 784x68
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {SPAN} at (0,0) size 43x28 [color=#FF0000]
+            RenderText {#text} at (2,3) size 43x28
+              text run at (2,3) width 43: &quot;abfg&quot;
+          RenderText {#text} at (0,0) size 0x0
+        RenderBlock {DIV} at (0,34) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 34x28
+            text run at (2,3) width 34: &quot;cde&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylesmooshstyles003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/smoosh-styles-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fd59a535dc0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; SPAN &gt; FONT &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x284 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x120
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 747x58
+            text run at (0,31) width 747: &quot;Pasting styles we should not remove during the \&quot;smoosh styles\&quot; process. This&quot;
+            text run at (0,61) width 151: &quot;tests the fix for &quot;
+          RenderInline {A} at (0,0) size 257x28 [color=#0000EE]
+            RenderText {#text} at (150,61) size 257x28
+              text run at (150,61) width 257: &quot;&lt;rdar://problem/3972665&gt;&quot;
+          RenderText {#text} at (406,61) size 732x58
+            text run at (406,61) width 326: &quot; 8A360: HTML message partially&quot;
+            text run at (0,91) width 553: &quot;truncated on left hand side, text-indent from Script Editor&quot;
+        RenderBlock {DIV} at (14,150) size 756x120
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 754x58
+            text run at (0,31) width 754: &quot;Should see this content in the red box below: foo. Note that there should be no&quot;
+            text run at (0,61) width 142: &quot;visible indent. &quot;
+          RenderBR {BR} at (141,83) size 1x0
+          RenderText {#text} at (0,91) size 182x28
+            text run at (0,91) width 182: &quot;This demonstrates &quot;
+          RenderInline {A} at (0,0) size 53x28 [color=#0000EE]
+            RenderText {#text} at (181,91) size 53x28
+              text run at (181,91) width 53: &quot;a bug&quot;
+          RenderText {#text} at (233,91) size 252x28
+            text run at (233,91) width 252: &quot;, the caret is one pixel off.&quot;
+      RenderBlock {DIV} at (0,308) size 784x24
+        RenderBlock {DIV} at (0,0) size 784x24 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (42,2) size 740x20
+            RenderInline {FONT} at (0,0) size 22x19
+              RenderInline {SPAN} at (0,0) size 22x19 [bgcolor=#FFFFFF00]
+                RenderText {#text} at (0,0) size 22x19
+                  text run at (0,0) width 22: &quot;foo&quot;
+caret: position 3 of child 0 {#text} of child 0 {SPAN} of child 0 {FONT} of child 1 {DIV} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyle3681552fix001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 154x28
+          RenderText {#text} at (14,15) size 70x28
+            text run at (14,15) width 70: &quot;here is &quot;
+          RenderInline {I} at (0,0) size 43x28
+            RenderText {#text} at (83,15) size 43x28
+              text run at (83,15) width 43: &quot;xxxx&quot;
+          RenderText {#text} at (125,15) size 43x28
+            text run at (125,15) width 43: &quot; text&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyle3681552fix002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-3681552-fix-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #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: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 133x28
+          RenderText {#text} at (14,15) size 70x28
+            text run at (14,15) width 70: &quot;here is &quot;
+          RenderInline {I} at (0,0) size 22x28
+            RenderText {#text} at (83,15) size 22x28
+              text run at (83,15) width 22: &quot;xx&quot;
+          RenderText {#text} at (104,15) size 43x28
+            text run at (104,15) width 43: &quot; text&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyle3998892fixexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-3998892-fix-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-3998892-fix-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-3998892-fix-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 4 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x194 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x90
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 113x28
+            text run at (0,31) width 113: &quot;Bug fix for &quot;
+          RenderInline {A} at (0,0) size 258x28 [color=#0000EE]
+            RenderText {#text} at (112,31) size 258x28
+              text run at (112,31) width 258: &quot;&lt;rdar://problem/3998892&gt;&quot;
+          RenderText {#text} at (369,31) size 693x58
+            text run at (369,31) width 324: &quot; REGRESSION (Mail): bolding a&quot;
+            text run at (0,61) width 92: &quot;selection &quot;
+            text run at (91,61) width 545: &quot;from end of line changes unselected text on starting line.&quot;
+        RenderBlock {DIV} at (14,120) size 756x60
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 599x28
+            text run at (0,31) width 599: &quot;Should see first line (\&quot;foo\&quot;) not bold; second line (\&quot;bar\&quot;) bold.&quot;
+      RenderBlock {DIV} at (0,218) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 32x28
+              text run at (0,1) width 32: &quot;foo&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderInline {B} at (0,0) size 36x28
+              RenderText {#text} at (0,1) size 36x28
+                text run at (0,1) width 36: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 595x28
+            text run at (0,31) width 595: &quot;Style checks performed on boundaries between style changes.&quot;
+        RenderBlock {DIV} at (14,90) size 756x60
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 438x28
+            text run at (0,31) width 438: &quot;Should see this content in the red box below: &quot;
+          RenderInline {B} at (0,0) size 27x28
+            RenderText {#text} at (437,31) size 27x28
+              text run at (437,31) width 27: &quot;ab&quot;
+          RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,188) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 26x28
+            RenderText {#text} at (2,3) size 12x28
+              text run at (2,3) width 12: &quot;a&quot;
+            RenderText {#text} at (14,3) size 14x28
+              text run at (14,3) width 14: &quot;b&quot;
+selection start: position 0 of child 1 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
+selection end:   position 1 of child 1 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 595x28
+            text run at (0,31) width 595: &quot;Style checks performed on boundaries between style changes.&quot;
+        RenderBlock {DIV} at (14,90) size 756x60
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 438x28
+            text run at (0,31) width 438: &quot;Should see this content in the red box below: &quot;
+          RenderInline {B} at (0,0) size 27x28
+            RenderText {#text} at (437,31) size 27x28
+              text run at (437,31) width 27: &quot;ab&quot;
+          RenderText {#text} at (463,31) size 11x28
+            text run at (463,31) width 11: &quot;c&quot;
+      RenderBlock {DIV} at (0,188) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 26x28
+            RenderText {#text} at (2,3) size 26x28
+              text run at (2,3) width 26: &quot;ab&quot;
+          RenderText {#text} at (27,3) size 11x28
+            text run at (27,3) width 11: &quot;c&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 595x28
+            text run at (0,31) width 595: &quot;Style checks performed on boundaries between style changes.&quot;
+        RenderBlock {DIV} at (14,90) size 756x60
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,31) size 438x28
+            text run at (0,31) width 438: &quot;Should see this content in the red box below: &quot;
+          RenderInline {B} at (0,0) size 13x28
+            RenderText {#text} at (437,31) size 13x28
+              text run at (437,31) width 13: &quot;a&quot;
+          RenderText {#text} at (449,31) size 24x28
+            text run at (449,31) width 24: &quot;bc&quot;
+      RenderBlock {DIV} at (0,188) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderInline {B} at (0,0) size 12x28
+            RenderText {#text} at (2,3) size 12x28
+              text run at (2,3) width 12: &quot;a&quot;
+          RenderText {#text} at (14,3) size 12x28
+            text run at (14,3) width 12: &quot;b&quot;
+          RenderText {#text} at (26,3) size 11x28
+            text run at (26,3) width 11: &quot;c&quot;
+caret: position 1 of child 1 {#text} of child 1 {DIV} of child 3 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-004-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-004-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x224 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 595x28
+            text run at (0,31) width 595: &quot;Style checks performed on boundaries between style changes.&quot;
+        RenderBlock {DIV} at (14,90) size 756x120
+          RenderBlock (anonymous) at (0,0) size 756x60
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 432x28
+              text run at (0,31) width 432: &quot;Should see this content in the red box below:&quot;
+            RenderInline {B} at (0,0) size 0x0
+          RenderBlock (anonymous) at (0,60) size 756x60
+            RenderBlock {DIV} at (0,0) size 756x30
+              RenderText {#text} at (0,1) size 12x28
+                text run at (0,1) width 12: &quot;a&quot;
+            RenderBlock {DIV} at (0,30) size 756x30
+              RenderText {#text} at (0,1) size 14x28
+                text run at (0,1) width 14: &quot;b&quot;
+          RenderBlock (anonymous) at (0,120) size 756x0
+            RenderInline {B} at (0,0) size 0x0
+            RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,248) size 784x64
+        RenderBlock {DIV} at (0,0) size 784x64 [border: (2px solid #FF0000)]
+          RenderBlock {DIV} at (2,2) size 780x30
+            RenderInline {B} at (0,0) size 12x28
+              RenderText {#text} at (0,1) size 12x28
+                text run at (0,1) width 12: &quot;a&quot;
+          RenderBlock {DIV} at (2,32) size 780x30
+            RenderInline {B} at (0,0) size 14x28
+              RenderText {#text} at (0,1) size 14x28
+                text run at (0,1) width 14: &quot;b&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyleboundary005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-005-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-boundary-005-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+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 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldApplyStyle:&lt;DOMCSSStyleDeclaration: 0x7fd59d08a8f0&gt; toElementsInDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x194 [border: (2px solid #0000FF)]
+        RenderBlock {DIV} at (14,14) size 756x60
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,31) size 694x28
+            text run at (0,31) width 694: &quot;Pasting at style boundary does not crash or produce empty style span(s).&quot;
+        RenderBlock {DIV} at (14,90) size 756x90
+          RenderBlock (anonymous) at (0,0) size 756x60
+            RenderText {#text} at (0,1) size 190x28
+              text run at (0,1) width 190: &quot;Expected Results: &quot;
+            RenderBR {BR} at (189,23) size 1x0
+            RenderText {#text} at (0,31) size 438x28
+              text run at (0,31) width 438: &quot;Should see this content in the red box below: &quot;
+            RenderBR {BR} at (437,53) size 1x0
+          RenderBlock {DIV} at (0,60) size 756x30
+            RenderText {#text} at (0,1) size 137x28
+              text run at (0,1) width 137: &quot;one two three &quot;
+            RenderInline {B} at (0,0) size 45x28
+              RenderText {#text} at (136,1) size 45x28
+                text run at (136,1) width 45: &quot;four&quot;
+            RenderText {#text} at (180,1) size 36x28
+              text run at (180,1) width 36: &quot;one&quot;
+      RenderBlock {DIV} at (0,218) size 784x24
+        RenderBlock {DIV} at (0,0) size 784x24 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,2) size 88x19
+            text run at (2,2) width 88: &quot;one two three&quot;
+          RenderInline {B} at (0,0) size 34x19
+            RenderText {#text} at (89,2) size 34x19
+              text run at (89,2) width 34: &quot; four&quot;
+          RenderInline {SPAN} at (0,0) size 28x19 [bgcolor=#FFFFFF00]
+            RenderText {#text} at (122,2) size 28x19
+              text run at (122,2) width 24: &quot;one&quot;
+              text run at (145,2) width 5: &quot; &quot;
+        RenderBlock (anonymous) at (0,24) size 784x0
+caret: position 4 of child 0 {#text} of child 2 {SPAN} of child 1 {DIV} of child 3 {DIV} of body (upstream affinity)
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstylestyletextnodewithouteditableparentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/style-text-node-without-editable-parent-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/style-text-node-without-editable-parent-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/style-text-node-without-editable-parent-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,135 @@
</span><ins>+This tests applying inline style to a text node, which is a child of the editable root. Style should be applied properly and the test should not crash. (See the bug 39989).
+
+bold first:
+| &lt;b&gt;
+|   &quot;&lt;#selection-anchor&gt;hello, &lt;#selection-focus&gt;&quot;
+| &quot;world WebKit&quot;
+
+bold middle:
+| &quot;hello, &quot;
+| &lt;b&gt;
+|   &quot;world&quot;
+| &quot; WebKit&quot;
+
+bold last:
+| &quot;hello, world&quot;
+| &lt;b&gt;
+|   &quot;&lt;#selection-anchor&gt; WebKit&lt;#selection-focus&gt;&quot;
+
+bold all:
+| &lt;b&gt;
+|   &quot;&lt;#selection-anchor&gt;hello, world WebKit&lt;#selection-focus&gt;&quot;
+
+italic first:
+| &lt;i&gt;
+|   &quot;hello, &quot;
+| &quot;world WebKit&quot;
+
+italic middle:
+| &quot;hello, &quot;
+| &lt;i&gt;
+|   &quot;world&quot;
+| &quot; WebKit&quot;
+
+italic last:
+| &quot;hello, world&quot;
+| &lt;i&gt;
+|   &quot;&lt;#selection-anchor&gt; WebKit&lt;#selection-focus&gt;&quot;
+
+italic all:
+| &lt;i&gt;
+|   &quot;hello, world WebKit&quot;
+
+underline first:
+| &lt;u&gt;
+|   &quot;&lt;#selection-anchor&gt;hello, &lt;#selection-focus&gt;&quot;
+| &quot;world WebKit&quot;
+
+underline middle:
+| &quot;hello, &quot;
+| &lt;u&gt;
+|   &quot;world&quot;
+| &quot; WebKit&quot;
+
+underline last:
+| &quot;hello, world&quot;
+| &lt;u&gt;
+|   &quot;&lt;#selection-anchor&gt; WebKit&lt;#selection-focus&gt;&quot;
+
+underline all:
+| &lt;u&gt;
+|   &quot;hello, world WebKit&quot;
+
+strikeThrough first:
+| &lt;strike&gt;
+|   &quot;hello, &quot;
+| &quot;world WebKit&quot;
+
+strikeThrough middle:
+| &quot;hello, world WebKit&quot;
+
+strikeThrough last:
+| &quot;hello, world WebKit&quot;
+
+strikeThrough all:
+| &quot;hello, world WebKit&quot;
+
+foreColor first:
+| &quot;hello, world WebKit&quot;
+
+foreColor middle:
+| &quot;hello, world WebKit&quot;
+
+foreColor last:
+| &quot;hello, world WebKit&quot;
+
+foreColor all:
+| &quot;hello, world WebKit&quot;
+
+hiliteColor first:
+| &quot;hello, world WebKit&quot;
+
+hiliteColor middle:
+| &quot;hello, world WebKit&quot;
+
+hiliteColor last:
+| &quot;hello, world WebKit&quot;
+
+hiliteColor all:
+| &quot;hello, world WebKit&quot;
+
+subscript first:
+| &quot;hello, world WebKit&quot;
+
+subscript middle:
+| &quot;hello, world WebKit&quot;
+
+subscript last:
+| &quot;hello, world WebKit&quot;
+
+subscript all:
+| &quot;hello, world WebKit&quot;
+
+superscript first:
+| &quot;hello, world WebKit&quot;
+
+superscript middle:
+| &quot;hello, world WebKit&quot;
+
+superscript last:
+| &quot;hello, world WebKit&quot;
+
+superscript all:
+| &quot;hello, world WebKit&quot;
+
+createLink first:
+| &quot;hello, world WebKit&quot;
+
+createLink middle:
+| &quot;hello, world WebKit&quot;
+
+createLink last:
+| &quot;hello, world WebKit&quot;
+
+createLink all:
+| &quot;hello, world WebKit&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletableselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/table-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/table-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/table-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 4 of BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x78 [border: (2px solid #FF0000)]
+        RenderTable {TABLE} at (14,14) size 28x50
+          RenderTableSection {TBODY} at (0,0) size 28x50
+            RenderTableRow {TR} at (0,2) size 28x22
+              RenderTableCell {TD} at (2,2) size 24x22 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x19
+                  text run at (1,1) width 22: &quot;foo&quot;
+            RenderTableRow {TR} at (0,26) size 28x22
+              RenderTableCell {TD} at (2,26) size 24x22 [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (1,1) size 22x19
+                  text run at (1,1) width 22: &quot;bar&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletextdecorationstatechangeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-change-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-change-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-change-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+Test to make sure we return correct text-decoration state on applying different command.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e style='text-decoration: none !important;'&gt;hello world&lt;/span&gt;&quot;, &quot;underline&quot;) should be false. Was true.
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e style='text-decoration: underline !important;'&gt;hello world&lt;/span&gt;&quot;, &quot;underline&quot;) should be true. Was false.
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span id=e style='text-decoration: underline !important;'&gt;hello world&lt;/span&gt;&quot;, &quot;strikethrough&quot;) is false
+FAIL textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span style='text-decoration: underline !important;'&gt;&lt;em id=e&gt;hello world&lt;/em&gt;&lt;/span&gt;&quot;, &quot;strikethrough&quot;) should be true. Was false.
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e class='underline_important'&gt;hello world&lt;/span&gt;&quot;, &quot;removeFormat&quot;) should be true. Was false.
+FAIL textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span id=e class='linethrough_important'&gt;hello world&lt;/span&gt;&quot;, &quot;removeFormat&quot;) should be true. Was false.
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;u&gt;&lt;span id=e style='text-decoration: underline !important;'&gt;hello world&lt;/span&gt;&lt;/u&gt;&quot;, &quot;underline&quot;) is false
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e style='text-decoration: none;'&gt;hello world&lt;/span&gt;&quot;, &quot;underline&quot;) should be true. Was false.
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e style='text-decoration: underline;'&gt;hello world&lt;/span&gt;&quot;, &quot;underline&quot;) is false
+FAIL textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span id=e style='text-decoration: underline;'&gt;hello world&lt;/span&gt;&quot;, &quot;strikethrough&quot;) should be true. Was false.
+FAIL textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span style='text-decoration: underline;'&gt;&lt;em id=e&gt;hello world&lt;/em&gt;&lt;/span&gt;&quot;, &quot;strikethrough&quot;) should be true. Was false.
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e  class='underline_decoration'&gt;hello world&lt;/span&gt;&quot;, &quot;removeFormat&quot;) should be false. Was true.
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span id=e class='linethrough_decoration'&gt;hello world&lt;/span&gt;&quot;, &quot;removeFormat&quot;) is true
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e style='text-decoration: underline;'&gt;hello world&lt;/span&gt;&quot;, &quot;removeFormat&quot;) is false
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;span id=e&gt;hello world&lt;/span&gt;&quot;, &quot;underline&quot;) is true
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;u&gt;&lt;span id=e&gt;hello world&lt;/span&gt;&lt;/u&gt;&quot;, &quot;underline&quot;) is false
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;u&gt;&lt;span id=e style='text-decoration: underline;'&gt;hello world&lt;/span&gt;&lt;/u&gt;&quot;, &quot;underline&quot;) is false
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletextdecorationstateexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/text-decoration-state-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Test to make sure we return correct text-decoration state. Note that &quot;text-decoration: none&quot; SHOULD NOT cancel text decorations.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;u&gt;&lt;b&gt;&lt;i&gt;&lt;span id=e&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&quot;) should be true. Was false.
+FAIL textdecorationState(&quot;underline&quot;,&quot;&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span id=e&gt;hello world&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&quot;) should be true. Was false.
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;b&gt;&lt;i&gt;&lt;span id=e style='text-decoration: underline;'&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&quot;) is true
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;span style='text-decoration: underline;'&gt;&lt;em id=e&gt;hello world&lt;/em&gt;&lt;/span&gt;&quot;) is true
+PASS textdecorationState(&quot;underline&quot;,&quot;&lt;u&gt;&lt;b&gt;&lt;i&gt;&lt;span id=e style='text-decoration:none'&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&quot;) is true
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;b&gt;&lt;i&gt;&lt;span id=e&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&quot;) is false
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;s&gt;&lt;b&gt;&lt;i&gt;&lt;span id=e&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/s&gt;&quot;) is true
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;b&gt;&lt;i&gt;&lt;s&gt;&lt;span id=e&gt;hello world&lt;/span&gt;&lt;/s&gt;&lt;/i&gt;&lt;/b&gt;&quot;) is true
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;b&gt;&lt;i&gt;&lt;span id=e style='text-decoration: line-through;'&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&quot;) is true
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;span style='text-decoration: line-through;'&gt;&lt;em id=e&gt;hello world&lt;/em&gt;&lt;/span&gt;&quot;) is true
+PASS textdecorationState(&quot;strikeThrough&quot;,&quot;&lt;s&gt;&lt;b&gt;&lt;i&gt;&lt;span id=e style='text-decoration:none'&gt;hello world&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/s&gt;&quot;) is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletextindentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/text-indent-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/text-indent-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/text-indent-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+CONSOLE MESSAGE: line 14: ReferenceError: Can't find variable: textInputController
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletogglestylebolditalicexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; B &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; I &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; I &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; DIV &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 14 of #text &gt; P &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+Tests bold/italic style toggling on a content that has text node without renderer (Ex: Tab/Space used for indentation)
+
+Some text
+Some more text
+
+
+Test for mac
+execBoldCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;b&gt;Some text&lt;/b&gt;&lt;/div&gt; &lt;p&gt;&lt;b&gt;Some more text&lt;/b&gt;&lt;/p&gt; &lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;b&gt;&lt;i&gt;Some text&lt;/i&gt;&lt;/b&gt;&lt;/div&gt; &lt;p&gt;&lt;b&gt;&lt;i&gt;Some more text&lt;/i&gt;&lt;/b&gt;&lt;/p&gt; &lt;/div&gt;
+execBoldCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;i&gt;Some text&lt;/i&gt;&lt;/div&gt; &lt;p&gt;&lt;i&gt;Some more text&lt;/i&gt;&lt;/p&gt; &lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;Some text&lt;/div&gt; &lt;p&gt;Some more text&lt;/p&gt; &lt;/div&gt;
+
+Test for win
+execBoldCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;b&gt;Some text&lt;/b&gt;&lt;/div&gt; &lt;p&gt;&lt;b&gt;Some more text&lt;/b&gt;&lt;/p&gt; &lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;b&gt;&lt;i&gt;Some text&lt;/i&gt;&lt;/b&gt;&lt;/div&gt; &lt;p&gt;&lt;b&gt;&lt;i&gt;Some more text&lt;/i&gt;&lt;/b&gt;&lt;/p&gt; &lt;/div&gt;
+execBoldCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;i&gt;Some text&lt;/i&gt;&lt;/div&gt; &lt;p&gt;&lt;i&gt;Some more text&lt;/i&gt;&lt;/p&gt; &lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;Some text&lt;/div&gt; &lt;p&gt;Some more text&lt;/p&gt; &lt;/div&gt;
+
+Test for unix
+execBoldCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;b&gt;Some text&lt;/b&gt;&lt;/div&gt; &lt;p&gt;&lt;b&gt;Some more text&lt;/b&gt;&lt;/p&gt; &lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;b&gt;&lt;i&gt;Some text&lt;/i&gt;&lt;/b&gt;&lt;/div&gt; &lt;p&gt;&lt;b&gt;&lt;i&gt;Some more text&lt;/i&gt;&lt;/b&gt;&lt;/p&gt; &lt;/div&gt;
+execBoldCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;&lt;i&gt;Some text&lt;/i&gt;&lt;/div&gt; &lt;p&gt;&lt;i&gt;Some more text&lt;/i&gt;&lt;/p&gt; &lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; &lt;div&gt;Some text&lt;/div&gt; &lt;p&gt;Some more text&lt;/p&gt; &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletogglestylebolditalicmixededitabilityexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-mixed-editability-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-mixed-editability-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/toggle-style-bold-italic-mixed-editability-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; B &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; I &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests bold/italic style toggling for a content with mixed editability
+
+Editable Non-editable Editable
+
+Test for mac
+execBoldCommand: &lt;div id=&quot;test&quot;&gt;&lt;b&gt; Editable &lt;/b&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;b&gt; Editable &lt;/b&gt;&lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt;&lt;b&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/b&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;b&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
+execBoldCommand: &lt;div id=&quot;test&quot;&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; Editable &lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt; Editable &lt;/div&gt;
+
+Test for win
+execBoldCommand: &lt;div id=&quot;test&quot;&gt;&lt;b&gt; Editable &lt;/b&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;b&gt; Editable &lt;/b&gt;&lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt;&lt;b&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/b&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;b&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
+execBoldCommand: &lt;div id=&quot;test&quot;&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; Editable &lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt; Editable &lt;/div&gt;
+
+Test for unix
+execBoldCommand: &lt;div id=&quot;test&quot;&gt;&lt;b&gt; Editable &lt;/b&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;b&gt; Editable &lt;/b&gt;&lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt;&lt;b&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/b&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;b&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
+execBoldCommand: &lt;div id=&quot;test&quot;&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt;&lt;i&gt; Editable &lt;/i&gt;&lt;/div&gt;
+execItalicCommand: &lt;div id=&quot;test&quot;&gt; Editable &lt;span contenteditable=&quot;false&quot;&gt;Non-editable&lt;/span&gt; Editable &lt;/div&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletypingstyle001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldDeleteDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 9 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 10 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 154x28
+          RenderText {#text} at (14,15) size 112x28
+            text run at (14,15) width 112: &quot;here isxxxx&quot;
+          RenderText {#text} at (125,15) size 43x28
+            text run at (125,15) width 43: &quot; text&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 11 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletypingstyle002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldDeleteDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 4 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 5 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 5 of #text &gt; I &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 164x28
+          RenderText {#text} at (14,15) size 70x28
+            text run at (14,15) width 70: &quot;here is &quot;
+          RenderInline {I} at (0,0) size 53x28
+            RenderText {#text} at (83,15) size 53x28
+              text run at (83,15) width 53: &quot;sxxxx&quot;
+          RenderText {#text} at (135,15) size 43x28
+            text run at (135,15) width 43: &quot; text&quot;
+        RenderText {#text} at (0,0) size 0x0
+caret: position 5 of child 0 {#text} of child 1 {I} of child 1 {SPAN} of child 1 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyletypingstyle003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/typing-style-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; I &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 5 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+xxxxxxxxxxxxxxx
+execTypeCharacterCommand: x &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xx&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execBoldCommand: xxx&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;x&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xx&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execItalicCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;i&gt;x&lt;/i&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;i&gt;xx&lt;/i&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;i&gt;xxx&lt;/i&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execBoldCommand: xxx&lt;b&gt;xxx&lt;i&gt;xxx&lt;/i&gt;&lt;/b&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;x&lt;/i&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;xx&lt;/i&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;xxx&lt;/i&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execItalicCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;xxx&lt;/i&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;xxx&lt;/i&gt;x&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;xxx&lt;/i&gt;xx&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: xxx&lt;b&gt;xxx&lt;/b&gt;&lt;i&gt;&lt;b&gt;xxx&lt;/b&gt;xxx&lt;/i&gt;xxx&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleunboldinboldexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/unbold-in-bold-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/unbold-in-bold-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/unbold-in-bold-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {B} at (0,0) size 12x28
+          RenderText {#text} at (14,15) size 12x28
+            text run at (14,15) width 12: &quot;x&quot;
+        RenderText {#text} at (0,0) size 0x0
+        RenderInline {SPAN} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingstyleunderlineexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/style/underline-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/style/underline-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/style/underline-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+xxxxx
+execUnderlineCommand: &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;x&lt;/u&gt; &lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
+execTypeCharacterCommand: &lt;u&gt;xxxxx&lt;/u&gt;&lt;span id=&quot;test&quot;&gt;&lt;/span&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingtextiteratorbasiciterationshadowdomexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/basic-iteration-shadowdom-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/basic-iteration-shadowdom-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/basic-iteration-shadowdom-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Unit tests for WebCore text iterator with shadow tree support enabled
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+FAIL addShadowTreeWithDivElement(div); range.selectNodeContents(internals.oldestShadowRoot(div)); internals.rangeAsText(range) should be b. Threw exception TypeError: undefined is not a function (evaluating 'node.webkitCreateShadowRoot()')
+FAIL appendBrElement(internals.oldestShadowRoot(div).childNodes[0]); range.selectNodeContents(internals.oldestShadowRoot(div)); internals.rangeAsText(range) should be b
+. Threw exception TypeError: undefined is not a function (evaluating 'internals.oldestShadowRoot(div)')
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingtextiteratorfirstletterwordboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/first-letter-word-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/first-letter-word-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/first-letter-word-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+This tests moving caret around a word with a first-letter rule. WebKit should not crash. This test also demonstrates a bug that word position is incorrectly reported.
+
+ hello world'
+white-space: normal;
+FAIL: moving forward by word from offset 4 put caret at offset 5 but expected 6
+PASS: moving backward by word from offset 4 put caret at offset 1
+white-space: pre;
+FAIL: moving forward by word from offset 4 put caret at offset 5 but expected 6
+PASS: moving backward by word from offset 4 put caret at offset 1
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingtextiteratorthaicursormovementexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/thai-cursor-movement-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/thai-cursor-movement-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/text-iterator/thai-cursor-movement-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 1 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+Test that moving insertion point over Thai text (without ligatures) always moves one character at a time.
+
+Should say PASS:
+
+อยากไปความ
+FAIL: 1
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundo4063751expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/4063751-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/4063751-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/4063751-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 321x19
+          text run at (0,0) width 321: &quot;This tests RebalanceWhitespace's ability to Undo.&quot;
+      RenderBlock {P} at (0,36) size 784x20
+        RenderText {#text} at (0,0) size 333x19
+          text run at (0,0) width 333: &quot;You should see \&quot;( this is a test. )\&quot;, minus the quotes.&quot;
+      RenderBlock {HR} at (0,72) size 784x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,82) size 784x28 [border: (2px solid #FFAAAA)]
+        RenderBlock {DIV} at (2,2) size 780x24 [border: (2px solid #AAAAFF)]
+          RenderText {#text} at (2,2) size 20x19
+            text run at (2,2) width 20: &quot;( t)&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundo5378473expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/5378473-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/5378473-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/5378473-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundo5658727expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/5658727-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/5658727-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/5658727-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+This tests for a bug where changing focus away from a textarea that has been emptied out by the Undo operation would clear the Undo stack. You should see a textarea with &quot;foo&quot; inside it below.
+
+ Failure: Redo didn't work after the textarea lost focus.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoredosplittextnodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-node-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-node-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-node-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+This test splits a text node by inserting a new paragraph and bolds the the first half.
+If splitTextNode correctly reapplied the split, undo and redo should preserve the style. (See bug 42941).
+
+before undo:
+| &lt;b&gt;
+|   &quot;he&quot;
+| &lt;div&gt;
+|   &quot;llo&quot;
+
+after undo:
+| &lt;b&gt;
+|   &quot;he&quot;
+| &lt;div&gt;
+|   &quot;llo&quot;
+
+after redo:
+| &lt;b&gt;
+|   &quot;he&quot;
+| &lt;div&gt;
+|   &quot;llo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoredosplittextwithremovalexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-with-removal-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-with-removal-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-split-text-with-removal-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+This test splits a text node by inserting a new paragraph and bolds the the first half.
+After undoing these two steps, it removes the text node, and then redo. The test should not crash. (See bug 42941).
+
+before undo:
+| &lt;b&gt;
+|   &quot;he&quot;
+| &lt;div&gt;
+|   &quot;llo&quot;
+
+after undo:
+| &lt;b&gt;
+|   &quot;he&quot;
+| &lt;div&gt;
+|   &quot;llo&quot;
+
+after node removal:
+| &lt;div&gt;
+|   &quot;llo&quot;
+
+after redo:
+| &lt;div&gt;
+|   &quot;llo&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoredostyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 0 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; SPAN &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 7 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+This tests applying a background color at the beginning, the middle and the end of one sentence, then undo and redo.
+Bug 30892
+
+Hello!
+Hello!
+Hello!
+
+Test 1: FAILED
+Test 2: FAILED
+Test 3: FAILED
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoredotyping001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-typing-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-typing-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/redo-typing-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 47x28
+          RenderText {#text} at (14,15) size 47x28
+            text run at (14,15) width 47: &quot;xXX&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoremovecsspropertyandremovestyleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/remove-css-property-and-remove-style-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/remove-css-property-and-remove-style-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/remove-css-property-and-remove-style-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,76 @@
</span><ins>+This tests removing style attribute after removing CSS property. Undo should bring back the CSS property we removed.
+
+Initially &quot;test&quot; should be bold wrapped with a span:
+| &lt;span&gt;
+|   style=&quot;font-weight: 900;&quot;
+|   &quot;test&quot;
+
+Unbolding should remove the CSS style and also remove the span:
+| &quot;test&quot;
+
+Undo should bring back both the span and style attribute so that &quot;test&quot; is once again bold:
+| &quot;test&quot;
+
+Redo should unbold &quot;test&quot; and there should be no span:
+| &quot;test&quot;
+
+Undo once more:
+| &quot;test&quot;
+
+Reset, and added id and title:
+| &lt;span&gt;
+|   id=&quot;test_span&quot;
+|   style=&quot;font-weight: 900;&quot;
+|   title=&quot;hello, world&quot;
+|   &quot;test&quot;
+
+Unbolding should remove the CSS style but shouldn't remove the span:
+| &lt;span&gt;
+|   id=&quot;test_span&quot;
+|   style=&quot;font-weight: 900;&quot;
+|   title=&quot;hello, world&quot;
+|   &quot;test&quot;
+
+Undo should restore the style attribute and &quot;test&quot; should be bold:
+| &lt;span&gt;
+|   id=&quot;test_span&quot;
+|   style=&quot;font-weight: 900;&quot;
+|   title=&quot;hello, world&quot;
+|   &quot;test&quot;
+
+Redo should remove the style attribute again:
+| &lt;span&gt;
+|   id=&quot;test_span&quot;
+|   style=&quot;font-weight: 900;&quot;
+|   title=&quot;hello, world&quot;
+|   &quot;test&quot;
+
+Reset, and added color:blue:
+| &lt;span&gt;
+|   style=&quot;font-weight: 900; color: blue;&quot;
+|   &quot;&lt;#selection-anchor&gt;test&lt;#selection-focus&gt;&quot;
+
+Unbolding should remove the font-weight but shouldn't remove the style attribute:
+| &lt;span&gt;
+|   style=&quot;color: blue;&quot;
+|   &quot;test&quot;
+
+Undo should reset the style attribute so that &quot;test&quot; is both bold and blue:
+| &lt;span&gt;
+|   style=&quot;color: blue;&quot;
+|   &quot;test&quot;
+
+Redo should only remove font-weight and leave &quot;test&quot; blue:
+| &lt;span&gt;
+|   style=&quot;color: blue;&quot;
+|   &quot;test&quot;
+
+Setting the forecolor to black should remove both the style attribute and the span:
+| &lt;span&gt;
+|   style=&quot;color: blue;&quot;
+|   &quot;test&quot;
+
+Undo should make &quot;test&quot; blue again:
+| &lt;span&gt;
+|   style=&quot;color: blue;&quot;
+|   &quot;test&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoreplacebyspanthenremoveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-by-span-then-remove-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-by-span-then-remove-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-by-span-then-remove-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+initial:&lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;
+after removing bold:&lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;
+after removing italic:&lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;
+after undo:&lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;
+after redo:&lt;b style=&quot;font-style: italic;&quot;&gt;world&lt;/b&gt;
+PASS
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoreplacetextinnodepreservingmarkerscrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-text-in-node-preserving-markers-crash-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-text-in-node-preserving-markers-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/replace-text-in-node-preserving-markers-crash-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+PASSEDabcd efg hijkl
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundocombineddeleteboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; B &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+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: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 750x58
+          RenderText {#text} at (14,15) size 78x28
+            text run at (14,15) width 78: &quot;This wo&quot;
+          RenderInline {B} at (0,0) size 20x28
+            RenderText {#text} at (92,15) size 20x28
+              text run at (92,15) width 20: &quot;d &quot;
+          RenderText {#text} at (111,15) size 750x58
+            text run at (111,15) width 647: &quot;should be selected, since the test deleted it a character at a time and&quot;
+            text run at (757,15) width 7: &quot; &quot;
+            text run at (14,45) width 167: &quot;then did an undo.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundocombineddeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-combined-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 756x58
+          RenderText {#text} at (14,15) size 756x58
+            text run at (14,15) width 751: &quot;This word should be selected, since the test deleted it a character at a time and&quot;
+            text run at (764,15) width 6: &quot; &quot;
+            text run at (14,45) width 167: &quot;then did an undo.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundodeleteboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 756x58
+          RenderText {#text} at (14,15) size 78x28
+            text run at (14,15) width 78: &quot;This wo&quot;
+          RenderInline {B} at (0,0) size 30x28
+            RenderText {#text} at (92,15) size 30x28
+              text run at (92,15) width 30: &quot;rd &quot;
+          RenderText {#text} at (122,15) size 756x58
+            text run at (122,15) width 647: &quot;should be selected, since the test deleted it a character at a time and&quot;
+            text run at (768,15) width 2: &quot; &quot;
+            text run at (14,45) width 167: &quot;then did an undo.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundodeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 756x58
+          RenderText {#text} at (14,15) size 756x58
+            text run at (14,15) width 751: &quot;This word should be selected, since the test deleted it a character at a time and&quot;
+            text run at (764,15) width 6: &quot; &quot;
+            text run at (14,45) width 167: &quot;then did an undo.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundodeleteWordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-deleteWord-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-deleteWord-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-deleteWord-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+Tests: 
+Undo a delete word after a series of insertText does not wipe out the entire content.
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundoforwarddeleteboundaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-boundary-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-boundary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-boundary-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 749x58
+          RenderText {#text} at (14,15) size 66x28
+            text run at (14,15) width 66: &quot;This w&quot;
+          RenderInline {B} at (0,0) size 30x28
+            RenderText {#text} at (80,15) size 30x28
+              text run at (80,15) width 30: &quot;rd &quot;
+          RenderText {#text} at (110,15) size 749x58
+            text run at (110,15) width 647: &quot;should be selected, since the test deleted it a character at a time and&quot;
+            text run at (756,15) width 7: &quot; &quot;
+            text run at (14,45) width 167: &quot;then did an undo.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundoforwarddeleteexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-forward-delete-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; SPAN &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 745x58
+          RenderText {#text} at (14,15) size 745x58
+            text run at (14,15) width 739: &quot;This wrd should be selected, since the test deleted it a character at a time and&quot;
+            text run at (752,15) width 7: &quot; &quot;
+            text run at (14,45) width 167: &quot;then did an undo.&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundoiframelocationchangeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-iframe-location-change-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-iframe-location-change-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-iframe-location-change-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+
+FAIL: could not insert text.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundoindentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-indent-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-indent-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-indent-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document to 9 of OL &gt; DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests indenting &quot;three&quot; then undoing the indent. You should see one, two and three numbered 1 through 3 then four as a sublist with number 1.
+Bugzilla bug 
+Radar bug
+
+one
+two
+three
+four
+Before indent: &lt;li&gt;one&lt;/li&gt; &lt;li&gt;two&lt;/li&gt; &lt;li id=&quot;test&quot;&gt;three&lt;/li&gt; &lt;ol&gt;&lt;li&gt;four&lt;/li&gt;&lt;/ol&gt;
+After indent: &lt;li&gt;one&lt;/li&gt; &lt;li&gt;two&lt;/li&gt; &lt;li id=&quot;test&quot;&gt;three&lt;/li&gt; &lt;ol&gt;&lt;li&gt;four&lt;/li&gt;&lt;/ol&gt;
+After undoing: &lt;li&gt;one&lt;/li&gt; &lt;li&gt;two&lt;/li&gt; &lt;li id=&quot;test&quot;&gt;three&lt;/li&gt; &lt;ol&gt;&lt;li&gt;four&lt;/li&gt;&lt;/ol&gt;
+The test passed
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundomisspellingsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-misspellings-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-misspellings-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-misspellings-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 0 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x20
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundosmartdeletereversedselectionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-reversed-selection-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-reversed-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-reversed-selection-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+CONSOLE MESSAGE: line 10: TypeError: null is not an object (evaluating 'node.data')
+FAIL: Timed out waiting for notifyDone to be called
+Tests: 
+Double-click the green &quot;a&quot; and drag backwards to select &quot;bar baz&quot; with word granularity. Delete, then undo the delete. The space that got smart deleted should now be selected and the anchor of the selection should be at the end of the selection.
+
+foo bar bz biz
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundosmartdeletewordexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-word-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-word-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-smart-delete-word-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+CONSOLE MESSAGE: line 28: null
+CONSOLE MESSAGE: line 29: 0
+CONSOLE MESSAGE: line 30: null
+CONSOLE MESSAGE: line 31: 0
+Tests: 
+Select a word via double-click. Delete. Then undo the delete. The space that got smart deleted should now be selected.
+foo bar baz
+FAILED
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingundoundotyping001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-typing-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-typing-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/undo/undo-typing-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x58 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 35x28
+          RenderText {#text} at (14,15) size 35x28
+            text run at (14,15) width 35: &quot;XX&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlistdelete001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-001-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-001-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 166x21
+            text run at (97,52) width 166: &quot;Select and delete a list.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x118
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 700x43
+            text run at (97,74) width 603: &quot;Only list content should get deleted. Surrounding content that is not selected should&quot;
+            text run at (0,96) width 199: &quot;(obviously) not be affected.&quot;
+      RenderBlock {DIV} at (0,264) size 784x34 [border: (2px solid #008000)]
+        RenderText {#text} at (2,3) size 106x28
+          text run at (2,3) width 106: &quot;beforeafter&quot;
+      RenderBlock {DIV} at (0,308) size 784x202
+        RenderBlock {DIV} at (0,0) size 784x202 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 62x28
+              text run at (0,1) width 62: &quot;before&quot;
+          RenderBlock {UL} at (2,56) size 780x90
+            RenderListItem {LI} at (40,0) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderListItem {LI} at (40,30) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 78x28
+                text run at (0,1) width 78: &quot;line two&quot;
+            RenderListItem {LI} at (40,60) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 90x28
+                text run at (0,1) width 90: &quot;line three&quot;
+          RenderBlock (anonymous) at (2,170) size 780x30
+            RenderText {#text} at (0,1) size 44x28
+              text run at (0,1) width 44: &quot;after&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlistdelete003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-003-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-delete-003-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 388x21
+            text run at (97,52) width 388: &quot;Select and delete a list and some surrounding content.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x118
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 736x43
+            text run at (97,74) width 301: &quot;Only selected content should get deleted. &quot;
+            text run at (397,74) width 339: &quot;Surrounding content that is not selected should&quot;
+            text run at (0,96) width 199: &quot;(obviously) not be affected.&quot;
+      RenderBlock {DIV} at (0,264) size 784x34 [border: (2px solid #008000)]
+        RenderText {#text} at (2,3) size 44x28
+          text run at (2,3) width 44: &quot;after&quot;
+      RenderBlock {DIV} at (0,308) size 784x202
+        RenderBlock {DIV} at (0,0) size 784x202 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 62x28
+              text run at (0,1) width 62: &quot;before&quot;
+          RenderBlock {UL} at (2,56) size 780x90
+            RenderListItem {LI} at (40,0) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderListItem {LI} at (40,30) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 78x28
+                text run at (0,1) width 78: &quot;line two&quot;
+            RenderListItem {LI} at (40,60) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 90x28
+                text run at (0,1) width 90: &quot;line three&quot;
+          RenderBlock (anonymous) at (2,170) size 780x30
+            RenderText {#text} at (0,1) size 44x28
+              text run at (0,1) width 44: &quot;after&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlisttypeafterexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-after-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-after-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-after-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x232 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 219x21
+            text run at (97,52) width 219: &quot;Test typing at the end of a list.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x96
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 418x21
+            text run at (97,74) width 418: &quot;Typed text should appear after (on the line below) the list.&quot;
+      RenderBlock {DIV} at (0,242) size 784x142 [border: (2px solid #008000)]
+        RenderBlock {UL} at (2,26) size 780x90
+          RenderListItem {LI} at (40,0) size 740x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 77x28
+              text run at (0,1) width 77: &quot;line one&quot;
+          RenderListItem {LI} at (40,30) size 740x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 78x28
+              text run at (0,1) width 78: &quot;line two&quot;
+          RenderListItem {LI} at (40,60) size 740x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 126x28
+              text run at (0,1) width 126: &quot;line threexxx&quot;
+      RenderBlock {DIV} at (0,394) size 784x142
+        RenderBlock {DIV} at (0,0) size 784x142 [border: (2px solid #FF0000)]
+          RenderBlock {UL} at (2,26) size 780x90
+            RenderListItem {LI} at (40,0) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderListItem {LI} at (40,30) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 78x28
+                text run at (0,1) width 78: &quot;line two&quot;
+            RenderListItem {LI} at (40,60) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 90x28
+                text run at (0,1) width 90: &quot;line three&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontentlisttypebeforeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-before-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-before-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/list-type-before-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x232 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 224x21
+            text run at (97,52) width 224: &quot;Test typing at the start of a list.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x96
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 409x21
+            text run at (97,74) width 409: &quot;Typed text should appear at the start of the first list item.&quot;
+      RenderBlock {DIV} at (0,242) size 784x142 [border: (2px solid #008000)]
+        RenderBlock {UL} at (2,26) size 780x90
+          RenderListItem {LI} at (40,0) size 740x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 113x28
+              text run at (0,1) width 113: &quot;xxxline one&quot;
+          RenderListItem {LI} at (40,30) size 740x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 78x28
+              text run at (0,1) width 78: &quot;line two&quot;
+          RenderListItem {LI} at (40,60) size 740x30
+            RenderListMarker at (-22,1) size 9x28: bullet
+            RenderText {#text} at (0,1) size 90x28
+              text run at (0,1) width 90: &quot;line three&quot;
+      RenderBlock {DIV} at (0,394) size 784x142
+        RenderBlock {DIV} at (0,0) size 784x142 [border: (2px solid #FF0000)]
+          RenderBlock {UL} at (2,26) size 780x90
+            RenderListItem {LI} at (40,0) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 77x28
+                text run at (0,1) width 77: &quot;line one&quot;
+            RenderListItem {LI} at (40,30) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 78x28
+                text run at (0,1) width 78: &quot;line two&quot;
+            RenderListItem {LI} at (40,60) size 740x30
+              RenderListMarker at (-22,1) size 9x28: bullet
+              RenderText {#text} at (0,1) size 90x28
+                text run at (0,1) width 90: &quot;line three&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontenttabledelete002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-delete-002-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-delete-002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-delete-002-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldDeleteDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 6 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document
+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: shouldChangeSelectedDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 7 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x254 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 401x21
+            text run at (97,52) width 401: &quot;Select and delete a table and some surrounding content.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x118
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 736x43
+            text run at (97,74) width 301: &quot;Only selected content should get deleted. &quot;
+            text run at (397,74) width 339: &quot;Surrounding content that is not selected should&quot;
+            text run at (0,96) width 199: &quot;(obviously) not be affected.&quot;
+      RenderBlock {DIV} at (0,264) size 784x34 [border: (2px solid #008000)]
+        RenderText {#text} at (2,3) size 62x28
+          text run at (2,3) width 62: &quot;before&quot;
+      RenderBlock {DIV} at (0,308) size 784x34
+        RenderBlock {DIV} at (0,0) size 784x34 [border: (2px solid #FF0000)]
+          RenderText {#text} at (2,3) size 62x28
+            text run at (2,3) width 62: &quot;before&quot;
+caret: position 7 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontenttabletypeafterexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-after-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-after-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-after-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,129 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #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: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x232 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 175x21
+            text run at (97,52) width 175: &quot;Test typing after a table.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x96
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 431x21
+            text run at (97,74) width 431: &quot;Typed text should appear after (on the line below) the table.&quot;
+      RenderBlock {DIV} at (0,242) size 784x116 [border: (2px solid #008000)]
+        RenderTable {TABLE} at (2,2) size 46x82 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x80
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;1&quot;
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;2&quot;
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;3&quot;
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;4&quot;
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;5&quot;
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;6&quot;
+            RenderTableRow {TR} at (0,54) size 44x24
+              RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;7&quot;
+              RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;8&quot;
+              RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;9&quot;
+        RenderBlock (anonymous) at (2,84) size 780x30
+          RenderText {#text} at (0,1) size 36x28
+            text run at (0,1) width 36: &quot;xxx&quot;
+      RenderBlock {DIV} at (0,368) size 784x116
+        RenderBlock {DIV} at (0,0) size 784x116 [border: (2px solid #FF0000)]
+          RenderTable {TABLE} at (2,2) size 46x82 [border: (1px outset #808080)]
+            RenderTableSection {TBODY} at (1,1) size 44x80
+              RenderTableRow {TR} at (0,2) size 44x24
+                RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;1&quot;
+                RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;2&quot;
+                RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;3&quot;
+              RenderTableRow {TR} at (0,28) size 44x24
+                RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;4&quot;
+                RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;5&quot;
+                RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;6&quot;
+              RenderTableRow {TR} at (0,54) size 44x24
+                RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;7&quot;
+                RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;8&quot;
+                RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;9&quot;
+          RenderBlock (anonymous) at (2,84) size 780x30
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;xxx&quot;
+caret: position 3 of child 2 {#text} of child 1 {DIV} of child 5 {DIV} of body
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatoreditingunsupportedcontenttabletypebeforeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-before-expected.txt (0 => 174514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-before-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/editing/unsupported-content/table-type-before-expected.txt        2014-10-09 18:41:00 UTC (rev 174514)
</span><span class="lines">@@ -0,0 +1,119 @@
</span><ins>+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV &gt; BODY &gt; HTML &gt; #document to 3 of DIV &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 1 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 2 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document to 3 of #text &gt; DIV &gt; DIV &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x232 [border: (4px solid #0000FF)]
+        RenderBlock {DIV} at (20,20) size 744x74
+          RenderText {#text} at (0,1) size 66x28
+            text run at (0,1) width 66: &quot;Tests: &quot;
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {#text} at (0,30) size 655x21
+            text run at (0,30) width 655: &quot;Our ability to \&quot;edit around\&quot; content the HTML editing code does not yet handle very well. &quot;
+          RenderBR {BR} at (654,47) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,52) size 98x21
+              text run at (0,52) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,52) size 188x21
+            text run at (97,52) width 188: &quot;Test typing before a table.&quot;
+        RenderBlock (anonymous) at (20,94) size 744x22
+          RenderBR {BR} at (0,0) size 0x21
+        RenderBlock {DIV} at (20,116) size 744x96
+          RenderText {#text} at (0,1) size 190x28
+            text run at (0,1) width 190: &quot;Expected Results: &quot;
+          RenderBR {BR} at (189,23) size 1x0
+          RenderText {#text} at (0,30) size 700x43
+            text run at (0,30) width 700: &quot;The content in the red box must exactly match the content in the green box (except for the border&quot;
+            text run at (0,52) width 52: &quot;color). &quot;
+          RenderBR {BR} at (51,69) size 1x0
+          RenderInline {I} at (0,0) size 98x21
+            RenderText {#text} at (0,74) size 98x21
+              text run at (0,74) width 98: &quot;For this test: &quot;
+          RenderText {#text} at (97,74) size 443x21
+            text run at (97,74) width 443: &quot;Typed text should appear before (on the line above) the table.&quot;
+      RenderBlock {DIV} at (0,242) size 784x116 [border: (2px solid #008000)]
+        RenderBlock (anonymous) at (2,2) size 780x30
+          RenderText {#text} at (0,1) size 36x28
+            text run at (0,1) width 36: &quot;xxx&quot;
+        RenderTable {TABLE} at (2,32) size 46x82 [border: (1px outset #808080)]
+          RenderTableSection {TBODY} at (1,1) size 44x80
+            RenderTableRow {TR} at (0,2) size 44x24
+              RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;1&quot;
+              RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;2&quot;
+              RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;3&quot;
+            RenderTableRow {TR} at (0,28) size 44x24
+              RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;4&quot;
+              RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;5&quot;
+              RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;6&quot;
+            RenderTableRow {TR} at (0,54) size 44x24
+              RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;7&quot;
+              RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;8&quot;
+              RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                RenderText {#text} at (2,2) size 8x19
+                  text run at (2,2) width 8: &quot;9&quot;
+      RenderBlock {DIV} at (0,368) size 784x116
+        RenderBlock {DIV} at (0,0) size 784x116 [border: (2px solid #FF0000)]
+          RenderBlock (anonymous) at (2,2) size 780x30
+            RenderText {#text} at (0,1) size 36x28
+              text run at (0,1) width 36: &quot;xxx&quot;
+          RenderTable {TABLE} at (2,32) size 46x82 [border: (1px outset #808080)]
+            RenderTableSection {TBODY} at (1,1) size 44x80
+              RenderTableRow {TR} at (0,2) size 44x24
+                RenderTableCell {TD} at (2,2) size 12x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;1&quot;
+                RenderTableCell {TD} at (16,2) size 12x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;2&quot;
+                RenderTableCell {TD} at (30,2) size 12x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;3&quot;
+              RenderTableRow {TR} at (0,28) size 44x24
+                RenderTableCell {TD} at (2,28) size 12x24 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;4&quot;
+                RenderTableCell {TD} at (16,28) size 12x24 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;5&quot;
+                RenderTableCell {TD} at (30,28) size 12x24 [border: (1px inset #808080)] [r=1 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;6&quot;
+              RenderTableRow {TR} at (0,54) size 44x24
+                RenderTableCell {TD} at (2,54) size 12x24 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;7&quot;
+                RenderTableCell {TD} at (16,54) size 12x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;8&quot;
+                RenderTableCell {TD} at (30,54) size 12x24 [border: (1px inset #808080)] [r=2 c=2 rs=1 cs=1]
+                  RenderText {#text} at (2,2) size 8x19
+                    text run at (2,2) width 8: &quot;9&quot;
+caret: position 3 of child 1 {#text} of child 1 {DIV} of child 5 {DIV} of body
</ins></span></pre>
</div>
</div>

</body>
</html>