<!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>[208255] branches/safari-602-branch/Source</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/208255">208255</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2016-11-01 15:58:49 -0700 (Tue, 01 Nov 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Roll out <a href="http://trac.webkit.org/projects/webkit/changeset/208168">r208168</a> via <a href="http://trac.webkit.org/projects/webkit/changeset/208173">r208173</a>. rdar://problem/28962886</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari602branchSourceWebCoreChangeLog">branches/safari-602-branch/Source/WebCore/ChangeLog</a></li>
<li><a href="#branchessafari602branchSourceWebCoreeditingAlternativeTextControllercpp">branches/safari-602-branch/Source/WebCore/editing/AlternativeTextController.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCoreeditingEditorcpp">branches/safari-602-branch/Source/WebCore/editing/Editor.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCoreeditingEditorCommandcpp">branches/safari-602-branch/Source/WebCore/editing/EditorCommand.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCoreeditingTypingCommandcpp">branches/safari-602-branch/Source/WebCore/editing/TypingCommand.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCoreeditingmacEditorMacmm">branches/safari-602-branch/Source/WebCore/editing/mac/EditorMac.mm</a></li>
<li><a href="#branchessafari602branchSourceWebCorepageContextMenuControllercpp">branches/safari-602-branch/Source/WebCore/page/ContextMenuController.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCorepageDOMSelectioncpp">branches/safari-602-branch/Source/WebCore/page/DOMSelection.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCorepageDragControllercpp">branches/safari-602-branch/Source/WebCore/page/DragController.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCorepageFramecpp">branches/safari-602-branch/Source/WebCore/page/Frame.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebCorepageTextIndicatorcpp">branches/safari-602-branch/Source/WebCore/page/TextIndicator.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebKit2ChangeLog">branches/safari-602-branch/Source/WebKit2/ChangeLog</a></li>
<li><a href="#branchessafari602branchSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleRangeHandlecpp">branches/safari-602-branch/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebKit2WebProcessWebPageWebPagecpp">branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#branchessafari602branchSourceWebKit2WebProcessWebPagemacWebPageMacmm">branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari602branchSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/ChangeLog (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/ChangeLog        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/ChangeLog        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,9 @@
</span><span class="cx"> 2016-11-01  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Rollout r208173. rdar://problem/28962886
+
+2016-11-01  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
+
</ins><span class="cx">         Merge r208175. rdar://problem/29032335
</span><span class="cx"> 
</span><span class="cx">     2016-10-31  Jer Noble  &lt;jer.noble@apple.com&gt;
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCoreeditingAlternativeTextControllercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/editing/AlternativeTextController.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/editing/AlternativeTextController.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/editing/AlternativeTextController.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2006-2008, 2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -317,8 +317,6 @@
</span><span class="cx"> {
</span><span class="cx">     if (AlternativeTextClient* client = alternativeTextClient())
</span><span class="cx">         client-&gt;recordAutocorrectionResponse(AutocorrectionReverted, corrected, correction);
</span><del>-
-    Ref&lt;Frame&gt; protector(m_frame);
</del><span class="cx">     m_frame.document()-&gt;updateLayout();
</span><span class="cx">     m_frame.selection().setSelection(selectionOfCorrected, FrameSelection::defaultSetSelectionOptions() | FrameSelection::SpellCorrectionTriggered);
</span><span class="cx">     RefPtr&lt;Range&gt; range = Range::create(*m_frame.document(), m_frame.selection().selection().start(), m_frame.selection().selection().end());
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCoreeditingEditorcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/editing/Editor.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/editing/Editor.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/editing/Editor.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2006-2008, 2011, 2013-2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2006, 2007, 2008, 2011, 2013-2015 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -1790,8 +1790,6 @@
</span><span class="cx"> 
</span><span class="cx"> void Editor::setComposition(const String&amp; text, const Vector&lt;CompositionUnderline&gt;&amp; underlines, unsigned selectionStart, unsigned selectionEnd)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protection(m_frame);
-
</del><span class="cx">     UserTypingGestureIndicator typingGestureIndicator(m_frame);
</span><span class="cx"> 
</span><span class="cx">     setIgnoreCompositionSelectionChange(true);
</span><span class="lines">@@ -1925,8 +1923,6 @@
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="cx"> void Editor::advanceToNextMisspelling(bool startBeforeSelection)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protection(m_frame);
-
</del><span class="cx">     // The basic approach is to search in two phases - from the selection end to the end of the doc, and
</span><span class="cx">     // then we wrap and search from the doc start to (approximately) where we started.
</span><span class="cx">     
</span><span class="lines">@@ -2245,8 +2241,6 @@
</span><span class="cx"> 
</span><span class="cx"> void Editor::markMisspellingsAfterTypingToWord(const VisiblePosition &amp;wordStart, const VisibleSelection&amp; selectionAfterTyping, bool doReplacement)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protection(m_frame);
-
</del><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     UNUSED_PARAM(selectionAfterTyping);
</span><span class="cx">     UNUSED_PARAM(doReplacement);
</span><span class="lines">@@ -2497,7 +2491,6 @@
</span><span class="cx"> 
</span><span class="cx"> void Editor::markAndReplaceFor(PassRefPtr&lt;SpellCheckRequest&gt; request, const Vector&lt;TextCheckingResult&gt;&amp; results)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protection(m_frame);
</del><span class="cx">     ASSERT(request);
</span><span class="cx"> 
</span><span class="cx">     TextCheckingTypeMask textCheckingOptions = request-&gt;data().mask();
</span><span class="lines">@@ -2956,8 +2949,6 @@
</span><span class="cx"> 
</span><span class="cx"> void Editor::changeSelectionAfterCommand(const VisibleSelection&amp; newSelection, FrameSelection::SetSelectionOptions options)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protection(m_frame);
-
</del><span class="cx">     // If the new selection is orphaned, then don't update the selection.
</span><span class="cx">     if (newSelection.start().isOrphan() || newSelection.end().isOrphan())
</span><span class="cx">         return;
</span><span class="lines">@@ -3148,8 +3139,6 @@
</span><span class="cx"> 
</span><span class="cx"> bool Editor::findString(const String&amp; target, FindOptions options)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protection(m_frame);
-
</del><span class="cx">     VisibleSelection selection = m_frame.selection().selection();
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;Range&gt; resultRange = rangeOfString(target, selection.firstRange().get(), options);
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCoreeditingEditorCommandcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/editing/EditorCommand.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/editing/EditorCommand.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/editing/EditorCommand.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2006-2008, 2014, 2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2006, 2007, 2008, 2014 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
</span><span class="cx">  * Copyright (C) 2009 Igalia S.L.
</span><span class="cx">  *
</span><span class="lines">@@ -1061,7 +1061,6 @@
</span><span class="cx"> 
</span><span class="cx"> static bool executeSwapWithMark(Frame&amp; frame, Event*, EditorCommandSource, const String&amp;)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protector(frame);
</del><span class="cx">     const VisibleSelection&amp; mark = frame.editor().mark();
</span><span class="cx">     const VisibleSelection&amp; selection = frame.selection().selection();
</span><span class="cx">     if (mark.isNone() || selection.isNone()) {
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCoreeditingTypingCommandcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/editing/TypingCommand.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/editing/TypingCommand.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/editing/TypingCommand.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2005-2008, 2016 Apple Inc.  All rights reserved.
</del><ins>+ * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc.  All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -475,7 +475,6 @@
</span><span class="cx"> void TypingCommand::deleteKeyPressed(TextGranularity granularity, bool shouldAddToKillRing)
</span><span class="cx"> {
</span><span class="cx">     Frame&amp; frame = this-&gt;frame();
</span><del>-    Ref&lt;Frame&gt; protector(frame);
</del><span class="cx"> 
</span><span class="cx">     frame.editor().updateMarkersForWordsAffectedByEditing(false);
</span><span class="cx"> 
</span><span class="lines">@@ -589,7 +588,6 @@
</span><span class="cx"> void TypingCommand::forwardDeleteKeyPressed(TextGranularity granularity, bool shouldAddToKillRing)
</span><span class="cx"> {
</span><span class="cx">     Frame&amp; frame = this-&gt;frame();
</span><del>-    Ref&lt;Frame&gt; protector(frame);
</del><span class="cx"> 
</span><span class="cx">     frame.editor().updateMarkersForWordsAffectedByEditing(false);
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCoreeditingmacEditorMacmm"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/editing/mac/EditorMac.mm (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/editing/mac/EditorMac.mm        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/editing/mac/EditorMac.mm        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -260,7 +260,6 @@
</span><span class="cx">     if (&amp;node-&gt;document() != m_frame.document())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(m_frame);
</del><span class="cx">     RefPtr&lt;Range&gt; range = Range::create(node-&gt;document(), Position(node, Position::PositionIsBeforeAnchor), Position(node, Position::PositionIsAfterAnchor));
</span><span class="cx">     m_frame.selection().setSelection(VisibleSelection(*range), FrameSelection::DoNotSetFocus);
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCorepageContextMenuControllercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/page/ContextMenuController.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/page/ContextMenuController.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/page/ContextMenuController.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2006-2007, 2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2010 Igalia S.L
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -223,8 +223,6 @@
</span><span class="cx">     if (!frame)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*frame);
-
</del><span class="cx">     switch (action) {
</span><span class="cx">     case ContextMenuItemTagOpenLinkInNewWindow:
</span><span class="cx">         openNewWindow(m_context.hitTestResult().absoluteLinkURL(), frame, ShouldOpenExternalURLsPolicy::ShouldAllowExternalSchemes);
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCorepageDOMSelectioncpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/page/DOMSelection.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/page/DOMSelection.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/page/DOMSelection.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2007, 2009, 2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2012 Google Inc. All rights reserved.
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -201,7 +201,6 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Eliminate legacy editing positions
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().moveTo(createLegacyEditingPosition(node, offset), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -217,7 +216,6 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().moveTo(selection.end(), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -233,7 +231,6 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().moveTo(selection.start(), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -258,7 +255,6 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Eliminate legacy editing positions
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().moveTo(createLegacyEditingPosition(baseNode, baseOffset), createLegacyEditingPosition(extentNode, extentOffset), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -275,7 +271,6 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Eliminate legacy editing positions
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().moveTo(createLegacyEditingPosition(node, offset), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -326,7 +321,6 @@
</span><span class="cx">     else
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().modify(alter, direction, granularity);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -344,7 +338,6 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Eliminate legacy editing positions
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     m_frame-&gt;selection().setExtent(createLegacyEditingPosition(&amp;node, offset), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -384,8 +377,6 @@
</span><span class="cx">     if (!r)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
-
</del><span class="cx">     FrameSelection&amp; selection = m_frame-&gt;selection();
</span><span class="cx"> 
</span><span class="cx">     if (selection.isNone()) {
</span><span class="lines">@@ -437,7 +428,6 @@
</span><span class="cx">     if (!selectedRange)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*m_frame);
</del><span class="cx">     selectedRange-&gt;deleteContents(ASSERT_NO_EXCEPTION);
</span><span class="cx"> 
</span><span class="cx">     setBaseAndExtent(&amp;selectedRange-&gt;startContainer(), selectedRange-&gt;startOffset(), &amp;selectedRange-&gt;startContainer(), selectedRange-&gt;startOffset(), ASSERT_NO_EXCEPTION);
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCorepageDragControllercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/page/DragController.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/page/DragController.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/page/DragController.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2007, 2009-2010, 2013, 2015-2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2007, 2009, 2010, 2013, 2015 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -432,7 +432,6 @@
</span><span class="cx"> 
</span><span class="cx"> static bool setSelectionToDragCaret(Frame* frame, VisibleSelection&amp; dragCaret, RefPtr&lt;Range&gt;&amp; range, const IntPoint&amp; point)
</span><span class="cx"> {
</span><del>-    Ref&lt;Frame&gt; protector(*frame);
</del><span class="cx">     frame-&gt;selection().setSelection(dragCaret);
</span><span class="cx">     if (frame-&gt;selection().selection().isNone()) {
</span><span class="cx">         dragCaret = frame-&gt;visiblePositionForPoint(point);
</span><span class="lines">@@ -753,7 +752,6 @@
</span><span class="cx">     if (!src.view() || !src.contentRenderer() || !state.source)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(src);
</del><span class="cx">     HitTestResult hitTestResult = src.eventHandler().hitTestResultAtPoint(dragOrigin, HitTestRequest::ReadOnly | HitTestRequest::Active);
</span><span class="cx"> 
</span><span class="cx">     // FIXME(136836): Investigate whether all elements should use the containsIncludingShadowDOM() path here.
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCorepageFramecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/page/Frame.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/page/Frame.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/page/Frame.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -603,8 +603,6 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protectedThis(*this);
-
</del><span class="cx">     if (action == PerformOverflowScroll &amp;&amp; (deltaX || deltaY)) {
</span><span class="cx">         layer-&gt;scrollToOffset(layer-&gt;scrollOffset() + IntSize(deltaX, deltaY));
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari602branchSourceWebCorepageTextIndicatorcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebCore/page/TextIndicator.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebCore/page/TextIndicator.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebCore/page/TextIndicator.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010, 2015-2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010, 2015 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -69,8 +69,6 @@
</span><span class="cx">     if (!frame)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*frame);
-
</del><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     frame-&gt;editor().setIgnoreCompositionSelectionChange(true);
</span><span class="cx">     frame-&gt;selection().setUpdateAppearanceEnabled(true);
</span></span></pre></div>
<a id="branchessafari602branchSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebKit2/ChangeLog (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebKit2/ChangeLog        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebKit2/ChangeLog        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,3 +1,7 @@
</span><ins>+2016-11-01  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
+
+        Rollout r208173. rdar://problem/28962886
+
</ins><span class="cx"> 2016-10-31  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r208168. rdar://problem/28962886
</span></span></pre></div>
<a id="branchessafari602branchSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleRangeHandlecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010, 2015-2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010, 2015 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -113,8 +113,6 @@
</span><span class="cx">     if (!frameView)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*frame);
-
</del><span class="cx">     VisibleSelection oldSelection = frame-&gt;selection().selection();
</span><span class="cx">     frame-&gt;selection().setSelection(VisibleSelection(*m_range));
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari602branchSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -4582,8 +4582,6 @@
</span><span class="cx"> {
</span><span class="cx">     Frame&amp; frame = m_page-&gt;focusController().focusedOrMainFrame();
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(frame);
-
</del><span class="cx">     if (replacementEditingRange.location != notFound) {
</span><span class="cx">         RefPtr&lt;Range&gt; replacementRange = rangeFromEditingRange(frame, replacementEditingRange, static_cast&lt;EditingRangeIsRelativeTo&gt;(editingRangeIsRelativeTo));
</span><span class="cx">         if (replacementRange) {
</span><span class="lines">@@ -4748,8 +4746,6 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(*targetFrame);
-
</del><span class="cx">     if (replacementLength &gt; 0) {
</span><span class="cx">         // The layout needs to be uptodate before setting a selection
</span><span class="cx">         targetFrame-&gt;document()-&gt;updateLayout();
</span></span></pre></div>
<a id="branchessafari602branchSourceWebKit2WebProcessWebPagemacWebPageMacmm"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm (208254 => 208255)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm        2016-11-01 22:55:32 UTC (rev 208254)
+++ branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm        2016-11-01 22:58:49 UTC (rev 208255)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010-2012, 2015-2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010, 2011, 2012, 2015 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -327,8 +327,6 @@
</span><span class="cx"> {
</span><span class="cx">     Frame&amp; frame = m_page-&gt;focusController().focusedOrMainFrame();
</span><span class="cx"> 
</span><del>-    Ref&lt;Frame&gt; protector(frame);
-
</del><span class="cx">     if (replacementEditingRange.location != notFound) {
</span><span class="cx">         RefPtr&lt;Range&gt; replacementRange = rangeFromEditingRange(frame, replacementEditingRange);
</span><span class="cx">         if (replacementRange)
</span></span></pre>
</div>
</div>

</body>
</html>