<!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>[175570] branches/safari-600.3-branch/Source/WebKit2</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/175570">175570</a></dd>
<dt>Author</dt> <dd>dburkart@apple.com</dd>
<dt>Date</dt> <dd>2014-11-04 12:35:37 -0800 (Tue, 04 Nov 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/175476">r175476</a>. &lt;rdar://problem/18855190&gt;</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari6003branchSourceWebKit2CMakeListstxt">branches/safari-600.3-branch/Source/WebKit2/CMakeLists.txt</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2ChangeLog">branches/safari-600.3-branch/Source/WebKit2/ChangeLog</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessAPImacWKViewmm">branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKView.mm</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessAPImacWKViewInternalh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKViewInternal.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessPageClienth">branches/safari-600.3-branch/Source/WebKit2/UIProcess/PageClient.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessWebPageProxycpp">branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessWebPageProxyh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessWebPageProxymessagesin">branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.messages.in</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessiosPageClientImplIOSh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessiosPageClientImplIOSmm">branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.mm</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessiosWKContentViewh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/WKContentView.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessmacPageClientImplh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessmacPageClientImplmm">branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.mm</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2WebKit2xcodeprojprojectpbxproj">branches/safari-600.3-branch/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2WebProcessWebPageFindControllercpp">branches/safari-600.3-branch/Source/WebKit2/WebProcess/WebPage/FindController.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessTextIndicatorcpp">branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.cpp</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessTextIndicatorh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessmacTextIndicatorWindowh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessmacTextIndicatorWindowmm">branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessFindIndicatorcpp">branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.cpp</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessFindIndicatorh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessmacFindIndicatorWindowh">branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.h</a></li>
<li><a href="#branchessafari6003branchSourceWebKit2UIProcessmacFindIndicatorWindowmm">branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari6003branchSourceWebKit2CMakeListstxt"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/CMakeLists.txt (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/CMakeLists.txt        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/CMakeLists.txt        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -293,7 +293,6 @@
</span><span class="cx">     UIProcess/APISession.cpp
</span><span class="cx">     UIProcess/BackingStore.cpp
</span><span class="cx">     UIProcess/DrawingAreaProxy.cpp
</span><del>-    UIProcess/FindIndicator.cpp
</del><span class="cx">     UIProcess/FrameLoadState.cpp
</span><span class="cx">     UIProcess/GeolocationPermissionRequestManagerProxy.cpp
</span><span class="cx">     UIProcess/GeolocationPermissionRequestProxy.cpp
</span><span class="lines">@@ -304,6 +303,7 @@
</span><span class="cx">     UIProcess/ResponsivenessTimer.cpp
</span><span class="cx">     UIProcess/StatisticsRequest.cpp
</span><span class="cx">     UIProcess/TextCheckerCompletion.cpp
</span><ins>+    UIProcess/TextIndicator.cpp
</ins><span class="cx">     UIProcess/VisitedLinkProvider.cpp
</span><span class="cx">     UIProcess/WebApplicationCacheManagerProxy.cpp
</span><span class="cx">     UIProcess/WebBackForwardList.cpp
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/ChangeLog (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/ChangeLog        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/ChangeLog        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -1,3 +1,43 @@
</span><ins>+2014-11-04  Dana Burkart  &lt;dburkart@apple.com&gt;
+
+        Merge r175476. &lt;rdar://problem/18855190&gt;
+
+    2014-11-03  Tim Horton  &lt;timothy_horton@apple.com&gt;
+    
+            Rename FindIndicator{Window} to TextIndicator{Window}
+            https://bugs.webkit.org/show_bug.cgi?id=138302
+            &lt;rdar://problem/18855190&gt;
+    
+            Reviewed by Anders Carlsson.
+    
+            Rename FindIndicator{Window} to TextIndicator{Window} (and related),
+            because it will soon be used to indicate ranges of text that are not
+            necessarily find-in-page results.
+    
+            FindController still has things named 'findIndicator' internally,
+            and I left the API alone (because all the API bits are actually find-specific),
+            but the actual FindIndicator/Window and the message to set it up, etc. are all
+            now called Text*.
+    
+            * CMakeLists.txt:
+            * UIProcess/API/mac/WKView.mm:
+            * UIProcess/API/mac/WKViewInternal.h:
+            * UIProcess/PageClient.h:
+            * UIProcess/TextIndicator.cpp: Renamed from Source/WebKit2/UIProcess/FindIndicator.cpp.
+            * UIProcess/TextIndicator.h: Renamed from Source/WebKit2/UIProcess/FindIndicator.h.
+            * UIProcess/WebPageProxy.cpp:
+            * UIProcess/WebPageProxy.h:
+            * UIProcess/WebPageProxy.messages.in:
+            * UIProcess/ios/PageClientImplIOS.h:
+            * UIProcess/ios/PageClientImplIOS.mm:
+            * UIProcess/ios/WKContentView.h:
+            * UIProcess/mac/PageClientImpl.h:
+            * UIProcess/mac/PageClientImpl.mm:
+            * UIProcess/mac/TextIndicatorWindow.h: Renamed from Source/WebKit2/UIProcess/mac/FindIndicatorWindow.h.
+            * UIProcess/mac/TextIndicatorWindow.mm: Renamed from Source/WebKit2/UIProcess/mac/FindIndicatorWindow.mm.
+            * WebKit2.xcodeproj/project.pbxproj:
+            * WebProcess/WebPage/FindController.cpp:
+    
</ins><span class="cx"> 2014-11-04  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r175425. &lt;rdar://problem/18841659&gt;
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessAPImacWKViewmm"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKView.mm (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKView.mm        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKView.mm        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -40,8 +40,6 @@
</span><span class="cx"> #import &quot;DataReference.h&quot;
</span><span class="cx"> #import &quot;EditingRange.h&quot;
</span><span class="cx"> #import &quot;EditorState.h&quot;
</span><del>-#import &quot;FindIndicator.h&quot;
-#import &quot;FindIndicatorWindow.h&quot;
</del><span class="cx"> #import &quot;LayerTreeContext.h&quot;
</span><span class="cx"> #import &quot;Logging.h&quot;
</span><span class="cx"> #import &quot;NativeWebKeyboardEvent.h&quot;
</span><span class="lines">@@ -53,6 +51,8 @@
</span><span class="cx"> #import &quot;StringUtilities.h&quot;
</span><span class="cx"> #import &quot;TextChecker.h&quot;
</span><span class="cx"> #import &quot;TextCheckerState.h&quot;
</span><ins>+#import &quot;TextIndicator.h&quot;
+#import &quot;TextIndicatorWindow.h&quot;
</ins><span class="cx"> #import &quot;TiledCoreAnimationDrawingAreaProxy.h&quot;
</span><span class="cx"> #import &quot;ViewGestureController.h&quot;
</span><span class="cx"> #import &quot;ViewSnapshotStore.h&quot;
</span><span class="lines">@@ -182,7 +182,7 @@
</span><span class="cx">     // For asynchronous validation.
</span><span class="cx">     ValidationMap _validationMap;
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;FindIndicatorWindow&gt; _findIndicatorWindow;
</del><ins>+    std::unique_ptr&lt;TextIndicatorWindow&gt; _textIndicatorWindow;
</ins><span class="cx"> 
</span><span class="cx">     // We keep here the event when resending it to
</span><span class="cx">     // the application to distinguish the case of a new event from one 
</span><span class="lines">@@ -492,7 +492,7 @@
</span><span class="cx"> - (void)renewGState
</span><span class="cx"> {
</span><span class="cx">     // Hide the find indicator.
</span><del>-    _data-&gt;_findIndicatorWindow = nullptr;
</del><ins>+    _data-&gt;_textIndicatorWindow = nullptr;
</ins><span class="cx"> 
</span><span class="cx">     // Update the view frame.
</span><span class="cx">     if ([self window])
</span><span class="lines">@@ -3041,17 +3041,17 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (void)_setFindIndicator:(PassRefPtr&lt;FindIndicator&gt;)findIndicator fadeOut:(BOOL)fadeOut animate:(BOOL)animate
</del><ins>+- (void)_setTextIndicator:(PassRefPtr&lt;TextIndicator&gt;)textIndicator fadeOut:(BOOL)fadeOut animate:(BOOL)animate
</ins><span class="cx"> {
</span><del>-    if (!findIndicator) {
-        _data-&gt;_findIndicatorWindow = nullptr;
</del><ins>+    if (!textIndicator) {
+        _data-&gt;_textIndicatorWindow = nullptr;
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (!_data-&gt;_findIndicatorWindow)
-        _data-&gt;_findIndicatorWindow = std::make_unique&lt;FindIndicatorWindow&gt;(self);
</del><ins>+    if (!_data-&gt;_textIndicatorWindow)
+        _data-&gt;_textIndicatorWindow = std::make_unique&lt;TextIndicatorWindow&gt;(self);
</ins><span class="cx"> 
</span><del>-    _data-&gt;_findIndicatorWindow-&gt;setFindIndicator(findIndicator, fadeOut, animate);
</del><ins>+    _data-&gt;_textIndicatorWindow-&gt;setTextIndicator(textIndicator, fadeOut, animate);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (CALayer *)_rootLayer
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessAPImacWKViewInternalh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKViewInternal.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKViewInternal.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKViewInternal.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -46,8 +46,8 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> class DrawingAreaProxy;
</span><del>-class FindIndicator;
</del><span class="cx"> class LayerTreeContext;
</span><ins>+class TextIndicator;
</ins><span class="cx"> class ViewSnapshot;
</span><span class="cx"> class WebContext;
</span><span class="cx"> struct ActionMenuHitTestResult;
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> - (void)_setIntrinsicContentSize:(NSSize)intrinsicContentSize;
</span><span class="cx"> - (NSRect)_convertToDeviceSpace:(NSRect)rect;
</span><span class="cx"> - (NSRect)_convertToUserSpace:(NSRect)rect;
</span><del>-- (void)_setFindIndicator:(PassRefPtr&lt;WebKit::FindIndicator&gt;)findIndicator fadeOut:(BOOL)fadeOut animate:(BOOL)animate;
</del><ins>+- (void)_setTextIndicator:(PassRefPtr&lt;WebKit::TextIndicator&gt;)textIndicator fadeOut:(BOOL)fadeOut animate:(BOOL)animate;
</ins><span class="cx"> 
</span><span class="cx"> - (void)_setAcceleratedCompositingModeRootLayer:(CALayer *)rootLayer;
</span><span class="cx"> - (CALayer *)_acceleratedCompositingModeRootLayer;
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessFindIndicatorcpp"></a>
<div class="delfile"><h4>Deleted: branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.cpp (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.cpp        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.cpp        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -1,277 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;FindIndicator.h&quot;
-
-#include &quot;ShareableBitmap.h&quot;
-#include &lt;WebCore/GeometryUtilities.h&gt;
-#include &lt;WebCore/Gradient.h&gt;
-#include &lt;WebCore/GraphicsContext.h&gt;
-#include &lt;WebCore/IntRect.h&gt;
-#include &lt;WebCore/Path.h&gt;
-
-#if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &lt; 101000
-#define ENABLE_LEGACY_FIND_INDICATOR_STYLE 1
-#else
-#define ENABLE_LEGACY_FIND_INDICATOR_STYLE 0
-#endif
-
-using namespace WebCore;
-
-#if ENABLE(LEGACY_FIND_INDICATOR_STYLE)
-static const float cornerRadius = 3.0;
-
-static const float shadowOffsetX = 0.0;
-static const float shadowOffsetY = 1.0;
-static const float shadowBlurRadius = 3.0;
-
-static const int shadowRed = 0;
-static const int shadowGreen = 0;
-static const int shadowBlue = 0;
-static const int shadowAlpha = 204;
-
-static const float lightBorderThickness = 1.0;
-static const float horizontalPaddingInsideLightBorder = 3.0;
-static const float verticalPaddingInsideLightBorder = 1.0;
-
-static const float horizontalBorderInsideShadow = lightBorderThickness + horizontalPaddingInsideLightBorder;
-static const float verticalBorderInsideShadow = lightBorderThickness + verticalPaddingInsideLightBorder;
-
-static const float leftBorderThickness = horizontalBorderInsideShadow + shadowOffsetX + shadowBlurRadius / 2.0;
-static const float topBorderThickness = verticalBorderInsideShadow - shadowOffsetY + shadowBlurRadius / 2.0;
-static const float rightBorderThickness = horizontalBorderInsideShadow - shadowOffsetX + shadowBlurRadius / 2.0;
-static const float bottomBorderThickness = verticalBorderInsideShadow + shadowOffsetY + shadowBlurRadius / 2.0;
-
-static const float horizontalOutsetToCenterOfLightBorder = horizontalBorderInsideShadow - lightBorderThickness / 2.0;
-static const float verticalOutsetToCenterOfLightBorder = verticalBorderInsideShadow - lightBorderThickness / 2.0;
-
-static const int lightBorderRed = 245;
-static const int lightBorderGreen = 230;
-static const int lightBorderBlue = 0;
-static const int lightBorderAlpha = 255;
-
-static const int gradientDarkRed = 237;
-static const int gradientDarkGreen = 204;
-static const int gradientDarkBlue = 0;
-static const int gradientDarkAlpha = 255;
-
-static const int gradientLightRed = 242;
-static const int gradientLightGreen = 239;
-static const int gradientLightBlue = 0;
-static const int gradientLightAlpha = 255;
-#else
-const float flatStyleHorizontalBorder = 2;
-const float flatStyleVerticalBorder = 1;
-const float flatShadowOffsetX = 0;
-const float flatShadowOffsetY = 5;
-const float flatShadowBlurRadius = 25;
-const float flatRimShadowBlurRadius = 2;
-#endif
-
-namespace WebKit {
-
-PassRefPtr&lt;FindIndicator&gt; FindIndicator::create(const FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle)
-{
-    RefPtr&lt;ShareableBitmap&gt; contentImage = ShareableBitmap::create(contentImageHandle);
-    if (!contentImage)
-        return 0;
-    ASSERT(contentImageScaleFactor != 1 || contentImage-&gt;size() == enclosingIntRect(selectionRectInWindowCoordinates).size());
-
-    return adoptRef(new FindIndicator(selectionRectInWindowCoordinates, textRectsInSelectionRectCoordinates, contentImageScaleFactor, contentImage.release()));
-}
-
-static FloatRect inflateRect(const FloatRect&amp; rect, float inflateX, float inflateY)
-{
-    FloatRect inflatedRect = rect;
-    inflatedRect.inflateX(inflateX);
-    inflatedRect.inflateY(inflateY);
-    return inflatedRect;
-}
-
-static FloatRect outsetIndicatorRectIncludingShadow(const FloatRect rect)
-{
-#if ENABLE(LEGACY_FIND_INDICATOR_STYLE)
-    FloatRect outsetRect = rect;
-    outsetRect.move(-leftBorderThickness, -topBorderThickness);
-    outsetRect.expand(leftBorderThickness + rightBorderThickness, topBorderThickness + bottomBorderThickness);
-    return outsetRect;
-#else
-    return inflateRect(rect, flatShadowBlurRadius + flatStyleHorizontalBorder, flatShadowBlurRadius + flatStyleVerticalBorder);
-#endif
-}
-
-static bool findIndicatorsForTextRectsOverlap(const Vector&lt;FloatRect&gt;&amp; textRects)
-{
-    size_t count = textRects.size();
-    if (count &lt;= 1)
-        return false;
-
-    Vector&lt;FloatRect&gt; indicatorRects;
-    indicatorRects.reserveInitialCapacity(count);
-
-    for (size_t i = 0; i &lt; count; ++i) {
-        FloatRect indicatorRect = outsetIndicatorRectIncludingShadow(textRects[i]);
-
-        for (size_t j = indicatorRects.size(); j; ) {
-            --j;
-            if (indicatorRect.intersects(indicatorRects[j]))
-                return true;
-        }
-
-        indicatorRects.uncheckedAppend(indicatorRect);
-    }
-
-    return false;
-}
-
-FindIndicator::FindIndicator(const WebCore::FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;WebCore::FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, PassRefPtr&lt;ShareableBitmap&gt; contentImage)
-    : m_selectionRectInWindowCoordinates(selectionRectInWindowCoordinates)
-    , m_textRectsInSelectionRectCoordinates(textRectsInSelectionRectCoordinates)
-    , m_contentImageScaleFactor(contentImageScaleFactor)
-    , m_contentImage(contentImage)
-{
-    if (findIndicatorsForTextRectsOverlap(m_textRectsInSelectionRectCoordinates)) {
-        m_textRectsInSelectionRectCoordinates[0] = unionRect(m_textRectsInSelectionRectCoordinates);
-        m_textRectsInSelectionRectCoordinates.shrink(1);
-    }
-}
-
-FindIndicator::~FindIndicator()
-{
-}
-
-FloatRect FindIndicator::frameRect() const
-{
-    return outsetIndicatorRectIncludingShadow(m_selectionRectInWindowCoordinates);
-}
-
-#if ENABLE(LEGACY_FIND_INDICATOR_STYLE)
-static inline Color lightBorderColor()
-{
-    return Color(lightBorderRed, lightBorderGreen, lightBorderBlue, lightBorderAlpha);
-}
-
-static inline Color shadowColor()
-{
-    return Color(shadowRed, shadowGreen, shadowBlue, shadowAlpha);
-}
-
-static inline Color gradientLightColor()
-{
-    return Color(gradientLightRed, gradientLightGreen, gradientLightBlue, gradientLightAlpha);
-}
-
-static inline Color gradientDarkColor()
-{
-    return Color(gradientDarkRed, gradientDarkGreen, gradientDarkBlue, gradientDarkAlpha);
-}
-
-static Path pathWithRoundedRect(const FloatRect&amp; pathRect, float radius)
-{
-    Path path;
-    path.addRoundedRect(pathRect, FloatSize(radius, radius));
-
-    return path;
-}
-#else
-static inline Color flatHighlightColor()
-{
-    return Color(255, 255, 0, 255);
-}
-
-static inline Color flatRimShadowColor()
-{
-    return Color(0, 0, 0, 38);
-}
-
-static inline Color flatDropShadowColor()
-{
-    return Color(0, 0, 0, 51);
-}
-#endif
-    
-void FindIndicator::draw(GraphicsContext&amp; graphicsContext, const IntRect&amp; /*dirtyRect*/)
-{
-#if ENABLE(LEGACY_FIND_INDICATOR_STYLE)
-    for (size_t i = 0; i &lt; m_textRectsInSelectionRectCoordinates.size(); ++i) {
-        FloatRect textRect = m_textRectsInSelectionRectCoordinates[i];
-        textRect.move(leftBorderThickness, topBorderThickness);
-
-        FloatRect outerPathRect = inflateRect(textRect, horizontalOutsetToCenterOfLightBorder, verticalOutsetToCenterOfLightBorder);
-        FloatRect innerPathRect = inflateRect(textRect, horizontalPaddingInsideLightBorder, verticalPaddingInsideLightBorder);
-
-        {
-            GraphicsContextStateSaver stateSaver(graphicsContext);
-            graphicsContext.setShadow(FloatSize(shadowOffsetX, shadowOffsetY), shadowBlurRadius, shadowColor(), ColorSpaceSRGB);
-            graphicsContext.setFillColor(lightBorderColor(), ColorSpaceDeviceRGB);
-            graphicsContext.fillPath(pathWithRoundedRect(outerPathRect, cornerRadius));
-        }
-
-        {
-            GraphicsContextStateSaver stateSaver(graphicsContext);
-            graphicsContext.clip(pathWithRoundedRect(innerPathRect, cornerRadius));
-            RefPtr&lt;Gradient&gt; gradient = Gradient::create(FloatPoint(innerPathRect.x(), innerPathRect.y()), FloatPoint(innerPathRect.x(), innerPathRect.maxY()));
-            gradient-&gt;addColorStop(0, gradientLightColor());
-            gradient-&gt;addColorStop(1, gradientDarkColor());
-            graphicsContext.setFillGradient(gradient);
-            graphicsContext.fillRect(outerPathRect);
-        }
-
-        {
-            GraphicsContextStateSaver stateSaver(graphicsContext);
-            graphicsContext.translate(FloatSize(roundf(leftBorderThickness), roundf(topBorderThickness)));
-
-            IntRect contentImageRect = enclosingIntRect(m_textRectsInSelectionRectCoordinates[i]);
-            m_contentImage-&gt;paint(graphicsContext, m_contentImageScaleFactor, contentImageRect.location(), contentImageRect);
-        }
-    }
-#else
-    for (auto&amp; textRect : m_textRectsInSelectionRectCoordinates) {
-        FloatRect blurRect = textRect;
-        blurRect.move(flatShadowBlurRadius + flatStyleHorizontalBorder, flatShadowBlurRadius + flatStyleVerticalBorder);
-        FloatRect outerPathRect = inflateRect(blurRect, flatStyleHorizontalBorder, flatStyleVerticalBorder);
-
-        {
-            GraphicsContextStateSaver stateSaver(graphicsContext);
-            graphicsContext.setShadow(FloatSize(), flatRimShadowBlurRadius, flatRimShadowColor(), ColorSpaceSRGB);
-            graphicsContext.setFillColor(flatHighlightColor(), ColorSpaceSRGB);
-            graphicsContext.fillRect(outerPathRect);
-            graphicsContext.setShadow(FloatSize(flatShadowOffsetX, flatShadowOffsetY), flatShadowBlurRadius, flatDropShadowColor(), ColorSpaceSRGB);
-            graphicsContext.fillRect(outerPathRect);
-        }
-
-        {
-            GraphicsContextStateSaver stateSaver(graphicsContext);
-            graphicsContext.translate(FloatSize(flatShadowBlurRadius + flatStyleHorizontalBorder, flatShadowBlurRadius + flatStyleVerticalBorder));
-
-            IntRect contentImageRect = enclosingIntRect(textRect);
-            m_contentImage-&gt;paint(graphicsContext, m_contentImageScaleFactor, contentImageRect.location(), contentImageRect);
-        }
-    }
-#endif
-}
-
-} // namespace WebKit
</del></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessFindIndicatorh"></a>
<div class="delfile"><h4>Deleted: branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/FindIndicator.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -1,64 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef FindIndicator_h
-#define FindIndicator_h
-
-#include &quot;ShareableBitmap.h&quot;
-#include &lt;WebCore/FloatRect.h&gt;
-#include &lt;wtf/PassRefPtr.h&gt;
-#include &lt;wtf/RefCounted.h&gt;
-#include &lt;wtf/Vector.h&gt;
-
-namespace WebCore {
-    class GraphicsContext;
-}
-
-namespace WebKit {
-
-class FindIndicator : public RefCounted&lt;FindIndicator&gt; {
-public:
-    static PassRefPtr&lt;FindIndicator&gt; create(const WebCore::FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;WebCore::FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle);
-    ~FindIndicator();
-
-    WebCore::FloatRect selectionRectInWindowCoordinates() const { return m_selectionRectInWindowCoordinates; }
-    WebCore::FloatRect frameRect() const;
-
-    ShareableBitmap* contentImage() const { return m_contentImage.get(); }
-
-    void draw(WebCore::GraphicsContext&amp;, const WebCore::IntRect&amp; dirtyRect);
-
-private:
-    FindIndicator(const WebCore::FloatRect&amp; selectionRect, const Vector&lt;WebCore::FloatRect&gt;&amp; textRects, float contentImageScaleFactor, PassRefPtr&lt;ShareableBitmap&gt; contentImage);
-
-    WebCore::FloatRect m_selectionRectInWindowCoordinates;
-    Vector&lt;WebCore::FloatRect&gt; m_textRectsInSelectionRectCoordinates;
-    float m_contentImageScaleFactor;
-    RefPtr&lt;ShareableBitmap&gt; m_contentImage;
-};
-
-} // namespace WebKit
-
-#endif // FindIndicator_h
</del></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessPageClienth"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/PageClient.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/PageClient.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/PageClient.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> class DrawingAreaProxy;
</span><del>-class FindIndicator;
</del><ins>+class TextIndicator;
</ins><span class="cx"> class NativeWebKeyboardEvent;
</span><span class="cx"> class RemoteLayerTreeTransaction;
</span><span class="cx"> class ViewSnapshot;
</span><span class="lines">@@ -214,7 +214,7 @@
</span><span class="cx">     virtual PassRefPtr&lt;WebColorPicker&gt; createColorPicker(WebPageProxy*, const WebCore::Color&amp; initialColor, const WebCore::IntRect&amp;) = 0;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    virtual void setFindIndicator(PassRefPtr&lt;FindIndicator&gt;, bool fadeOut, bool animate) = 0;
</del><ins>+    virtual void setTextIndicator(PassRefPtr&lt;TextIndicator&gt;, bool fadeOut, bool animate) = 0;
</ins><span class="cx"> 
</span><span class="cx">     virtual void enterAcceleratedCompositingMode(const LayerTreeContext&amp;) = 0;
</span><span class="cx">     virtual void exitAcceleratedCompositingMode() = 0;
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessTextIndicatorcppfromrev175476trunkSourceWebKit2UIProcessTextIndicatorcpp"></a>
<div class="copfile"><h4>Copied: branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.cpp (from rev 175476, trunk/Source/WebKit2/UIProcess/TextIndicator.cpp) (0 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.cpp                                (rev 0)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.cpp        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -0,0 +1,277 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include &quot;config.h&quot;
+#include &quot;TextIndicator.h&quot;
+
+#include &quot;ShareableBitmap.h&quot;
+#include &lt;WebCore/GeometryUtilities.h&gt;
+#include &lt;WebCore/Gradient.h&gt;
+#include &lt;WebCore/GraphicsContext.h&gt;
+#include &lt;WebCore/IntRect.h&gt;
+#include &lt;WebCore/Path.h&gt;
+
+#if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &lt; 101000
+#define ENABLE_LEGACY_TEXT_INDICATOR_STYLE 1
+#else
+#define ENABLE_LEGACY_TEXT_INDICATOR_STYLE 0
+#endif
+
+using namespace WebCore;
+
+#if ENABLE(LEGACY_TEXT_INDICATOR_STYLE)
+static const float cornerRadius = 3.0;
+
+static const float shadowOffsetX = 0.0;
+static const float shadowOffsetY = 1.0;
+static const float shadowBlurRadius = 3.0;
+
+static const int shadowRed = 0;
+static const int shadowGreen = 0;
+static const int shadowBlue = 0;
+static const int shadowAlpha = 204;
+
+static const float lightBorderThickness = 1.0;
+static const float horizontalPaddingInsideLightBorder = 3.0;
+static const float verticalPaddingInsideLightBorder = 1.0;
+
+static const float horizontalBorderInsideShadow = lightBorderThickness + horizontalPaddingInsideLightBorder;
+static const float verticalBorderInsideShadow = lightBorderThickness + verticalPaddingInsideLightBorder;
+
+static const float leftBorderThickness = horizontalBorderInsideShadow + shadowOffsetX + shadowBlurRadius / 2.0;
+static const float topBorderThickness = verticalBorderInsideShadow - shadowOffsetY + shadowBlurRadius / 2.0;
+static const float rightBorderThickness = horizontalBorderInsideShadow - shadowOffsetX + shadowBlurRadius / 2.0;
+static const float bottomBorderThickness = verticalBorderInsideShadow + shadowOffsetY + shadowBlurRadius / 2.0;
+
+static const float horizontalOutsetToCenterOfLightBorder = horizontalBorderInsideShadow - lightBorderThickness / 2.0;
+static const float verticalOutsetToCenterOfLightBorder = verticalBorderInsideShadow - lightBorderThickness / 2.0;
+
+static const int lightBorderRed = 245;
+static const int lightBorderGreen = 230;
+static const int lightBorderBlue = 0;
+static const int lightBorderAlpha = 255;
+
+static const int gradientDarkRed = 237;
+static const int gradientDarkGreen = 204;
+static const int gradientDarkBlue = 0;
+static const int gradientDarkAlpha = 255;
+
+static const int gradientLightRed = 242;
+static const int gradientLightGreen = 239;
+static const int gradientLightBlue = 0;
+static const int gradientLightAlpha = 255;
+#else
+const float flatStyleHorizontalBorder = 2;
+const float flatStyleVerticalBorder = 1;
+const float flatShadowOffsetX = 0;
+const float flatShadowOffsetY = 5;
+const float flatShadowBlurRadius = 25;
+const float flatRimShadowBlurRadius = 2;
+#endif
+
+namespace WebKit {
+
+PassRefPtr&lt;TextIndicator&gt; TextIndicator::create(const FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle)
+{
+    RefPtr&lt;ShareableBitmap&gt; contentImage = ShareableBitmap::create(contentImageHandle);
+    if (!contentImage)
+        return 0;
+    ASSERT(contentImageScaleFactor != 1 || contentImage-&gt;size() == enclosingIntRect(selectionRectInWindowCoordinates).size());
+
+    return adoptRef(new TextIndicator(selectionRectInWindowCoordinates, textRectsInSelectionRectCoordinates, contentImageScaleFactor, contentImage.release()));
+}
+
+static FloatRect inflateRect(const FloatRect&amp; rect, float inflateX, float inflateY)
+{
+    FloatRect inflatedRect = rect;
+    inflatedRect.inflateX(inflateX);
+    inflatedRect.inflateY(inflateY);
+    return inflatedRect;
+}
+
+static FloatRect outsetIndicatorRectIncludingShadow(const FloatRect rect)
+{
+#if ENABLE(LEGACY_TEXT_INDICATOR_STYLE)
+    FloatRect outsetRect = rect;
+    outsetRect.move(-leftBorderThickness, -topBorderThickness);
+    outsetRect.expand(leftBorderThickness + rightBorderThickness, topBorderThickness + bottomBorderThickness);
+    return outsetRect;
+#else
+    return inflateRect(rect, flatShadowBlurRadius + flatStyleHorizontalBorder, flatShadowBlurRadius + flatStyleVerticalBorder);
+#endif
+}
+
+static bool textIndicatorsForTextRectsOverlap(const Vector&lt;FloatRect&gt;&amp; textRects)
+{
+    size_t count = textRects.size();
+    if (count &lt;= 1)
+        return false;
+
+    Vector&lt;FloatRect&gt; indicatorRects;
+    indicatorRects.reserveInitialCapacity(count);
+
+    for (size_t i = 0; i &lt; count; ++i) {
+        FloatRect indicatorRect = outsetIndicatorRectIncludingShadow(textRects[i]);
+
+        for (size_t j = indicatorRects.size(); j; ) {
+            --j;
+            if (indicatorRect.intersects(indicatorRects[j]))
+                return true;
+        }
+
+        indicatorRects.uncheckedAppend(indicatorRect);
+    }
+
+    return false;
+}
+
+TextIndicator::TextIndicator(const WebCore::FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;WebCore::FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, PassRefPtr&lt;ShareableBitmap&gt; contentImage)
+    : m_selectionRectInWindowCoordinates(selectionRectInWindowCoordinates)
+    , m_textRectsInSelectionRectCoordinates(textRectsInSelectionRectCoordinates)
+    , m_contentImageScaleFactor(contentImageScaleFactor)
+    , m_contentImage(contentImage)
+{
+    if (textIndicatorsForTextRectsOverlap(m_textRectsInSelectionRectCoordinates)) {
+        m_textRectsInSelectionRectCoordinates[0] = unionRect(m_textRectsInSelectionRectCoordinates);
+        m_textRectsInSelectionRectCoordinates.shrink(1);
+    }
+}
+
+TextIndicator::~TextIndicator()
+{
+}
+
+FloatRect TextIndicator::frameRect() const
+{
+    return outsetIndicatorRectIncludingShadow(m_selectionRectInWindowCoordinates);
+}
+
+#if ENABLE(LEGACY_TEXT_INDICATOR_STYLE)
+static inline Color lightBorderColor()
+{
+    return Color(lightBorderRed, lightBorderGreen, lightBorderBlue, lightBorderAlpha);
+}
+
+static inline Color shadowColor()
+{
+    return Color(shadowRed, shadowGreen, shadowBlue, shadowAlpha);
+}
+
+static inline Color gradientLightColor()
+{
+    return Color(gradientLightRed, gradientLightGreen, gradientLightBlue, gradientLightAlpha);
+}
+
+static inline Color gradientDarkColor()
+{
+    return Color(gradientDarkRed, gradientDarkGreen, gradientDarkBlue, gradientDarkAlpha);
+}
+
+static Path pathWithRoundedRect(const FloatRect&amp; pathRect, float radius)
+{
+    Path path;
+    path.addRoundedRect(pathRect, FloatSize(radius, radius));
+
+    return path;
+}
+#else
+static inline Color flatHighlightColor()
+{
+    return Color(255, 255, 0, 255);
+}
+
+static inline Color flatRimShadowColor()
+{
+    return Color(0, 0, 0, 38);
+}
+
+static inline Color flatDropShadowColor()
+{
+    return Color(0, 0, 0, 51);
+}
+#endif
+    
+void TextIndicator::draw(GraphicsContext&amp; graphicsContext, const IntRect&amp; /*dirtyRect*/)
+{
+#if ENABLE(LEGACY_TEXT_INDICATOR_STYLE)
+    for (size_t i = 0; i &lt; m_textRectsInSelectionRectCoordinates.size(); ++i) {
+        FloatRect textRect = m_textRectsInSelectionRectCoordinates[i];
+        textRect.move(leftBorderThickness, topBorderThickness);
+
+        FloatRect outerPathRect = inflateRect(textRect, horizontalOutsetToCenterOfLightBorder, verticalOutsetToCenterOfLightBorder);
+        FloatRect innerPathRect = inflateRect(textRect, horizontalPaddingInsideLightBorder, verticalPaddingInsideLightBorder);
+
+        {
+            GraphicsContextStateSaver stateSaver(graphicsContext);
+            graphicsContext.setShadow(FloatSize(shadowOffsetX, shadowOffsetY), shadowBlurRadius, shadowColor(), ColorSpaceSRGB);
+            graphicsContext.setFillColor(lightBorderColor(), ColorSpaceDeviceRGB);
+            graphicsContext.fillPath(pathWithRoundedRect(outerPathRect, cornerRadius));
+        }
+
+        {
+            GraphicsContextStateSaver stateSaver(graphicsContext);
+            graphicsContext.clip(pathWithRoundedRect(innerPathRect, cornerRadius));
+            RefPtr&lt;Gradient&gt; gradient = Gradient::create(FloatPoint(innerPathRect.x(), innerPathRect.y()), FloatPoint(innerPathRect.x(), innerPathRect.maxY()));
+            gradient-&gt;addColorStop(0, gradientLightColor());
+            gradient-&gt;addColorStop(1, gradientDarkColor());
+            graphicsContext.setFillGradient(gradient.releaseNonNull());
+            graphicsContext.fillRect(outerPathRect);
+        }
+
+        {
+            GraphicsContextStateSaver stateSaver(graphicsContext);
+            graphicsContext.translate(FloatSize(roundf(leftBorderThickness), roundf(topBorderThickness)));
+
+            IntRect contentImageRect = enclosingIntRect(m_textRectsInSelectionRectCoordinates[i]);
+            m_contentImage-&gt;paint(graphicsContext, m_contentImageScaleFactor, contentImageRect.location(), contentImageRect);
+        }
+    }
+#else
+    for (auto&amp; textRect : m_textRectsInSelectionRectCoordinates) {
+        FloatRect blurRect = textRect;
+        blurRect.move(flatShadowBlurRadius + flatStyleHorizontalBorder, flatShadowBlurRadius + flatStyleVerticalBorder);
+        FloatRect outerPathRect = inflateRect(blurRect, flatStyleHorizontalBorder, flatStyleVerticalBorder);
+
+        {
+            GraphicsContextStateSaver stateSaver(graphicsContext);
+            graphicsContext.setShadow(FloatSize(), flatRimShadowBlurRadius, flatRimShadowColor(), ColorSpaceSRGB);
+            graphicsContext.setFillColor(flatHighlightColor(), ColorSpaceSRGB);
+            graphicsContext.fillRect(outerPathRect);
+            graphicsContext.setShadow(FloatSize(flatShadowOffsetX, flatShadowOffsetY), flatShadowBlurRadius, flatDropShadowColor(), ColorSpaceSRGB);
+            graphicsContext.fillRect(outerPathRect);
+        }
+
+        {
+            GraphicsContextStateSaver stateSaver(graphicsContext);
+            graphicsContext.translate(FloatSize(flatShadowBlurRadius + flatStyleHorizontalBorder, flatShadowBlurRadius + flatStyleVerticalBorder));
+
+            IntRect contentImageRect = enclosingIntRect(textRect);
+            m_contentImage-&gt;paint(graphicsContext, m_contentImageScaleFactor, contentImageRect.location(), contentImageRect);
+        }
+    }
+#endif
+}
+
+} // namespace WebKit
</ins></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessTextIndicatorhfromrev175476trunkSourceWebKit2UIProcessTextIndicatorh"></a>
<div class="copfile"><h4>Copied: branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.h (from rev 175476, trunk/Source/WebKit2/UIProcess/TextIndicator.h) (0 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.h                                (rev 0)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/TextIndicator.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef TextIndicator_h
+#define TextIndicator_h
+
+#include &quot;ShareableBitmap.h&quot;
+#include &lt;WebCore/FloatRect.h&gt;
+#include &lt;wtf/PassRefPtr.h&gt;
+#include &lt;wtf/RefCounted.h&gt;
+#include &lt;wtf/Vector.h&gt;
+
+namespace WebCore {
+class GraphicsContext;
+}
+
+namespace WebKit {
+
+class TextIndicator : public RefCounted&lt;TextIndicator&gt; {
+public:
+    static PassRefPtr&lt;TextIndicator&gt; create(const WebCore::FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;WebCore::FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle);
+    ~TextIndicator();
+
+    WebCore::FloatRect selectionRectInWindowCoordinates() const { return m_selectionRectInWindowCoordinates; }
+    WebCore::FloatRect frameRect() const;
+
+    ShareableBitmap* contentImage() const { return m_contentImage.get(); }
+
+    void draw(WebCore::GraphicsContext&amp;, const WebCore::IntRect&amp; dirtyRect);
+
+private:
+    TextIndicator(const WebCore::FloatRect&amp; selectionRect, const Vector&lt;WebCore::FloatRect&gt;&amp; textRects, float contentImageScaleFactor, PassRefPtr&lt;ShareableBitmap&gt; contentImage);
+
+    WebCore::FloatRect m_selectionRectInWindowCoordinates;
+    Vector&lt;WebCore::FloatRect&gt; m_textRectsInSelectionRectCoordinates;
+    float m_contentImageScaleFactor;
+    RefPtr&lt;ShareableBitmap&gt; m_contentImage;
+};
+
+} // namespace WebKit
+
+#endif // TextIndicator_h
</ins></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.cpp (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.cpp        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.cpp        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -41,7 +41,6 @@
</span><span class="cx"> #include &quot;DrawingAreaProxy.h&quot;
</span><span class="cx"> #include &quot;DrawingAreaProxyMessages.h&quot;
</span><span class="cx"> #include &quot;EventDispatcherMessages.h&quot;
</span><del>-#include &quot;FindIndicator.h&quot;
</del><span class="cx"> #include &quot;Logging.h&quot;
</span><span class="cx"> #include &quot;NativeWebKeyboardEvent.h&quot;
</span><span class="cx"> #include &quot;NativeWebMouseEvent.h&quot;
</span><span class="lines">@@ -55,6 +54,7 @@
</span><span class="cx"> #include &quot;PrintInfo.h&quot;
</span><span class="cx"> #include &quot;TextChecker.h&quot;
</span><span class="cx"> #include &quot;TextCheckerState.h&quot;
</span><ins>+#include &quot;TextIndicator.h&quot;
</ins><span class="cx"> #include &quot;WKContextPrivate.h&quot;
</span><span class="cx"> #include &quot;WebBackForwardList.h&quot;
</span><span class="cx"> #include &quot;WebBackForwardListItem.h&quot;
</span><span class="lines">@@ -3548,10 +3548,10 @@
</span><span class="cx">     m_findMatchesClient.didGetImageForMatchResult(this, WebImage::create(ShareableBitmap::create(contentImageHandle)).get(), matchIndex);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebPageProxy::setFindIndicator(const FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle, bool fadeOut, bool animate)
</del><ins>+void WebPageProxy::setTextIndicator(const FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle, bool fadeOut, bool animate)
</ins><span class="cx"> {
</span><del>-    RefPtr&lt;FindIndicator&gt; findIndicator = FindIndicator::create(selectionRectInWindowCoordinates, textRectsInSelectionRectCoordinates, contentImageScaleFactor, contentImageHandle);
-    m_pageClient.setFindIndicator(findIndicator.release(), fadeOut, animate);
</del><ins>+    RefPtr&lt;TextIndicator&gt; textIndicator = TextIndicator::create(selectionRectInWindowCoordinates, textRectsInSelectionRectCoordinates, contentImageScaleFactor, contentImageHandle);
+    m_pageClient.setTextIndicator(textIndicator.release(), fadeOut, animate);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPageProxy::didFindString(const String&amp; string, uint32_t matchCount, int32_t matchIndex)
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessWebPageProxyh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -656,7 +656,7 @@
</span><span class="cx">     void hideFindUI();
</span><span class="cx">     void countStringMatches(const String&amp;, FindOptions, unsigned maxMatchCount);
</span><span class="cx">     void didCountStringMatches(const String&amp;, uint32_t matchCount);
</span><del>-    void setFindIndicator(const WebCore::FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;WebCore::FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle, bool fadeOut, bool animate);
</del><ins>+    void setTextIndicator(const WebCore::FloatRect&amp; selectionRectInWindowCoordinates, const Vector&lt;WebCore::FloatRect&gt;&amp; textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle&amp; contentImageHandle, bool fadeOut, bool animate);
</ins><span class="cx">     void didFindString(const String&amp;, uint32_t matchCount, int32_t matchIndex);
</span><span class="cx">     void didFailToFindString(const String&amp;);
</span><span class="cx">     void didFindStringMatches(const String&amp;, const Vector&lt;Vector&lt;WebCore::IntRect&gt;&gt;&amp; matchRects, int32_t firstIndexAfterSelection);
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessWebPageProxymessagesin"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.messages.in (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.messages.in        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/WebPageProxy.messages.in        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -223,7 +223,7 @@
</span><span class="cx"> 
</span><span class="cx">     # Find messages
</span><span class="cx">     DidCountStringMatches(String string, uint32_t matchCount)
</span><del>-    SetFindIndicator(WebCore::FloatRect selectionRect, Vector&lt;WebCore::FloatRect&gt; textRects, float contentImageScaleFactor, WebKit::ShareableBitmap::Handle contentImageHandle, bool fadeOut, bool animate)
</del><ins>+    SetTextIndicator(WebCore::FloatRect selectionRect, Vector&lt;WebCore::FloatRect&gt; textRects, float contentImageScaleFactor, WebKit::ShareableBitmap::Handle contentImageHandle, bool fadeOut, bool animate)
</ins><span class="cx">     DidFindString(String string, uint32_t matchCount, int32_t matchIndex)
</span><span class="cx">     DidFailToFindString(String string)
</span><span class="cx">     DidFindStringMatches(String string, Vector&lt;Vector&lt;WebCore::IntRect&gt;&gt; matches, int32_t firstIndexAfterSelection)
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessiosPageClientImplIOSh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> #endif
</span><span class="cx">     virtual PassRefPtr&lt;WebPopupMenuProxy&gt; createPopupMenuProxy(WebPageProxy*) override;
</span><span class="cx">     virtual PassRefPtr&lt;WebContextMenuProxy&gt; createContextMenuProxy(WebPageProxy*) override;
</span><del>-    virtual void setFindIndicator(PassRefPtr&lt;FindIndicator&gt;, bool fadeOut, bool animate) override;
</del><ins>+    virtual void setTextIndicator(PassRefPtr&lt;TextIndicator&gt;, bool fadeOut, bool animate) override;
</ins><span class="cx"> 
</span><span class="cx">     virtual void enterAcceleratedCompositingMode(const LayerTreeContext&amp;) override;
</span><span class="cx">     virtual void exitAcceleratedCompositingMode() override;
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessiosPageClientImplIOSmm"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.mm (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.mm        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/PageClientImplIOS.mm        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -31,10 +31,10 @@
</span><span class="cx"> #import &quot;APIData.h&quot;
</span><span class="cx"> #import &quot;DataReference.h&quot;
</span><span class="cx"> #import &quot;DownloadProxy.h&quot;
</span><del>-#import &quot;FindIndicator.h&quot;
</del><span class="cx"> #import &quot;InteractionInformationAtPosition.h&quot;
</span><span class="cx"> #import &quot;NativeWebKeyboardEvent.h&quot;
</span><span class="cx"> #import &quot;NavigationState.h&quot;
</span><ins>+#import &quot;TextIndicator.h&quot;
</ins><span class="cx"> #import &quot;ViewSnapshotStore.h&quot;
</span><span class="cx"> #import &quot;WKContentView.h&quot;
</span><span class="cx"> #import &quot;WKContentViewInteraction.h&quot;
</span><span class="lines">@@ -438,7 +438,7 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void PageClientImpl::setFindIndicator(PassRefPtr&lt;FindIndicator&gt; findIndicator, bool fadeOut, bool animate)
</del><ins>+void PageClientImpl::setTextIndicator(PassRefPtr&lt;TextIndicator&gt; textIndicator, bool fadeOut, bool animate)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessiosWKContentViewh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/WKContentView.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/WKContentView.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/ios/WKContentView.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -39,9 +39,9 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> class DrawingAreaProxy;
</span><del>-class FindIndicator;
</del><span class="cx"> class GeolocationPermissionRequestProxy;
</span><span class="cx"> class RemoteLayerTreeTransaction;
</span><ins>+class TextIndicator;
</ins><span class="cx"> class WebContext;
</span><span class="cx"> class WebFrameProxy;
</span><span class="cx"> class WebPageProxy;
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessmacFindIndicatorWindowh"></a>
<div class="delfile"><h4>Deleted: branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -1,79 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef FindIndicatorWindow_h
-#define FindIndicatorWindow_h
-
-#if PLATFORM(MAC)
-
-#import &quot;WebKitSystemInterface.h&quot;
-#import &lt;wtf/Noncopyable.h&gt;
-#import &lt;wtf/RefPtr.h&gt;
-#import &lt;wtf/RetainPtr.h&gt;
-#import &lt;wtf/RunLoop.h&gt;
-
-@class WKFindIndicatorWindowAnimation;
-@class WKView;
-
-namespace WebKit {
-
-class FindIndicator;
-
-class FindIndicatorWindow {
-    WTF_MAKE_NONCOPYABLE(FindIndicatorWindow);
-
-public:
-    explicit FindIndicatorWindow(WKView *);
-    ~FindIndicatorWindow();
-
-    void setFindIndicator(PassRefPtr&lt;FindIndicator&gt;, bool fadeOut, bool animate);
-
-private:
-    void closeWindow();
-
-    void startFadeOutTimerFired();
-
-    void fadeOutAnimationCallback(double);
-    void fadeOutAnimationDidEnd();
-
-    void bounceAnimationCallback(double);
-    void bounceAnimationDidEnd();
-
-    WKView* m_wkView;
-    RefPtr&lt;FindIndicator&gt; m_findIndicator;
-    RetainPtr&lt;NSWindow&gt; m_findIndicatorWindow;
-
-    WKWindowBounceAnimationContextRef m_bounceAnimationContext;
-    RetainPtr&lt;WKFindIndicatorWindowAnimation&gt; m_bounceAnimation;
-
-    RunLoop::Timer&lt;FindIndicatorWindow&gt; m_startFadeOutTimer;
-    RetainPtr&lt;WKFindIndicatorWindowAnimation&gt; m_fadeOutAnimation;
-};
-
-} // namespace WebKit
-
-#endif // FindIndicatorWindow_h
-
-#endif // PLATFORM(MAC)
</del></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessmacFindIndicatorWindowmm"></a>
<div class="delfile"><h4>Deleted: branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.mm (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.mm        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/FindIndicatorWindow.mm        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -1,250 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import &quot;config.h&quot;
-#import &quot;FindIndicatorWindow.h&quot;
-
-#if PLATFORM(MAC)
-
-#import &quot;FindIndicator.h&quot;
-#import &quot;WKView.h&quot;
-#import &lt;WebCore/GraphicsContext.h&gt;
-
-static const double bounceAnimationDuration = 0.12;
-static const double timeBeforeFadeStarts = bounceAnimationDuration + 0.2;
-static const double fadeOutAnimationDuration = 0.3;
-
-using namespace WebCore;
-
-@interface WKFindIndicatorView : NSView {
-    RefPtr&lt;WebKit::FindIndicator&gt; _findIndicator;
-}
-
-- (id)_initWithFindIndicator:(PassRefPtr&lt;WebKit::FindIndicator&gt;)findIndicator;
-@end
-
-@implementation WKFindIndicatorView
-
-- (id)_initWithFindIndicator:(PassRefPtr&lt;WebKit::FindIndicator&gt;)findIndicator
-{
-    if ((self = [super initWithFrame:NSZeroRect]))
-        _findIndicator = findIndicator;
-
-    return self;
-}
-
-- (void)drawRect:(NSRect)rect
-{
-    GraphicsContext graphicsContext(static_cast&lt;CGContextRef&gt;([[NSGraphicsContext currentContext] graphicsPort]));
-
-    _findIndicator-&gt;draw(graphicsContext, enclosingIntRect(rect));
-}
-
-- (BOOL)isFlipped
-{
-    return YES;
-}
-
-@end
-
-@interface WKFindIndicatorWindowAnimation : NSAnimation&lt;NSAnimationDelegate&gt; {
-    WebKit::FindIndicatorWindow* _findIndicatorWindow;
-    void (WebKit::FindIndicatorWindow::*_animationProgressCallback)(double progress);
-    void (WebKit::FindIndicatorWindow::*_animationDidEndCallback)();
-}
-
-- (id)_initWithFindIndicatorWindow:(WebKit::FindIndicatorWindow *)findIndicatorWindow 
-                 animationDuration:(CFTimeInterval)duration
-         animationProgressCallback:(void (WebKit::FindIndicatorWindow::*)(double progress))animationProgressCallback
-           animationDidEndCallback:(void (WebKit::FindIndicatorWindow::*)())animationDidEndCallback;
-@end
-
-@implementation WKFindIndicatorWindowAnimation
-
-- (id)_initWithFindIndicatorWindow:(WebKit::FindIndicatorWindow *)findIndicatorWindow 
-                 animationDuration:(CFTimeInterval)animationDuration
-         animationProgressCallback:(void (WebKit::FindIndicatorWindow::*)(double progress))animationProgressCallback
-           animationDidEndCallback:(void (WebKit::FindIndicatorWindow::*)())animationDidEndCallback
-{
-    if ((self = [super initWithDuration:animationDuration animationCurve:NSAnimationEaseInOut])) {
-        _findIndicatorWindow = findIndicatorWindow;
-        _animationProgressCallback = animationProgressCallback;
-        _animationDidEndCallback = animationDidEndCallback;
-        [self setDelegate:self];
-        [self setAnimationBlockingMode:NSAnimationNonblocking];
-    }
-    return self;
-}
-
-- (void)setCurrentProgress:(NSAnimationProgress)progress
-{
-    (_findIndicatorWindow-&gt;*_animationProgressCallback)(progress);
-}
-
-- (void)animationDidEnd:(NSAnimation *)animation
-{
-    ASSERT(animation == self);
-
-    (_findIndicatorWindow-&gt;*_animationDidEndCallback)();
-}
-
-@end
-
-namespace WebKit {
-
-FindIndicatorWindow::FindIndicatorWindow(WKView *wkView)
-    : m_wkView(wkView)
-    , m_bounceAnimationContext(0)
-    , m_startFadeOutTimer(RunLoop::main(), this, &amp;FindIndicatorWindow::startFadeOutTimerFired)
-{
-}
-
-FindIndicatorWindow::~FindIndicatorWindow()
-{
-    closeWindow();
-}
-
-void FindIndicatorWindow::setFindIndicator(PassRefPtr&lt;FindIndicator&gt; findIndicator, bool fadeOut, bool animate)
-{
-    if (m_findIndicator == findIndicator)
-        return;
-
-    m_findIndicator = findIndicator;
-
-    // Get rid of the old window.
-    closeWindow();
-
-    if (!m_findIndicator)
-        return;
-
-    NSRect contentRect = m_findIndicator-&gt;frameRect();
-    NSRect windowFrameRect = NSIntegralRect([m_wkView convertRect:contentRect toView:nil]);
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored &quot;-Wdeprecated-declarations&quot;
-    windowFrameRect.origin = [[m_wkView window] convertBaseToScreen:windowFrameRect.origin];
-#pragma clang diagnostic pop
-    NSRect windowContentRect = [NSWindow contentRectForFrameRect:windowFrameRect styleMask:NSBorderlessWindowMask];
-    
-    m_findIndicatorWindow = adoptNS([[NSWindow alloc] initWithContentRect:windowContentRect 
-                                                              styleMask:NSBorderlessWindowMask 
-                                                                backing:NSBackingStoreBuffered
-                                                                  defer:NO]);
-
-    [m_findIndicatorWindow setBackgroundColor:[NSColor clearColor]];
-    [m_findIndicatorWindow setOpaque:NO];
-    [m_findIndicatorWindow setIgnoresMouseEvents:YES];
-
-    RetainPtr&lt;WKFindIndicatorView&gt; findIndicatorView = adoptNS([[WKFindIndicatorView alloc] _initWithFindIndicator:m_findIndicator]);
-    [m_findIndicatorWindow setContentView:findIndicatorView.get()];
-
-    [[m_wkView window] addChildWindow:m_findIndicatorWindow.get() ordered:NSWindowAbove];
-    [m_findIndicatorWindow setReleasedWhenClosed:NO];
-
-    if (animate) {
-        // Start the bounce animation.
-        m_bounceAnimationContext = WKWindowBounceAnimationContextCreate(m_findIndicatorWindow.get());
-        m_bounceAnimation = adoptNS([[WKFindIndicatorWindowAnimation alloc] _initWithFindIndicatorWindow:this
-                                                                                    animationDuration:bounceAnimationDuration
-                                                                            animationProgressCallback:&amp;FindIndicatorWindow::bounceAnimationCallback
-                                                                              animationDidEndCallback:&amp;FindIndicatorWindow::bounceAnimationDidEnd]);
-        [m_bounceAnimation startAnimation];
-    }
-
-    if (fadeOut)
-        m_startFadeOutTimer.startOneShot(timeBeforeFadeStarts);
-}
-
-void FindIndicatorWindow::closeWindow()
-{
-    if (!m_findIndicatorWindow)
-        return;
-
-    m_startFadeOutTimer.stop();
-
-    if (m_fadeOutAnimation) {
-        [m_fadeOutAnimation stopAnimation];
-        m_fadeOutAnimation = nullptr;
-    }
-
-    if (m_bounceAnimation) {
-        [m_bounceAnimation stopAnimation];
-        m_bounceAnimation = nullptr;
-    }
-
-    if (m_bounceAnimationContext)
-        WKWindowBounceAnimationContextDestroy(m_bounceAnimationContext);
-    
-    [[m_findIndicatorWindow parentWindow] removeChildWindow:m_findIndicatorWindow.get()];
-    [m_findIndicatorWindow close];
-    m_findIndicatorWindow = nullptr;
-}
-
-void FindIndicatorWindow::startFadeOutTimerFired()
-{
-    ASSERT(!m_fadeOutAnimation);
-    
-    m_fadeOutAnimation = adoptNS([[WKFindIndicatorWindowAnimation alloc] _initWithFindIndicatorWindow:this
-                                                                                   animationDuration:fadeOutAnimationDuration
-                                                                           animationProgressCallback:&amp;FindIndicatorWindow::fadeOutAnimationCallback
-                                                                             animationDidEndCallback:&amp;FindIndicatorWindow::fadeOutAnimationDidEnd]);
-    [m_fadeOutAnimation startAnimation];
-}
-                        
-void FindIndicatorWindow::fadeOutAnimationCallback(double progress)
-{
-    ASSERT(m_fadeOutAnimation);
-
-    [m_findIndicatorWindow setAlphaValue:1.0 - progress];
-}
-
-void FindIndicatorWindow::fadeOutAnimationDidEnd()
-{
-    ASSERT(m_fadeOutAnimation);
-    ASSERT(m_findIndicatorWindow);
-
-    closeWindow();
-}
-
-void FindIndicatorWindow::bounceAnimationCallback(double progress)
-{
-    ASSERT(m_bounceAnimation);
-    ASSERT(m_bounceAnimationContext);
-
-    WKWindowBounceAnimationSetAnimationProgress(m_bounceAnimationContext, progress);
-}
-
-void FindIndicatorWindow::bounceAnimationDidEnd()
-{
-    ASSERT(m_bounceAnimation);
-    ASSERT(m_bounceAnimationContext);
-    ASSERT(m_findIndicatorWindow);
-
-    WKWindowBounceAnimationContextDestroy(m_bounceAnimationContext);
-    m_bounceAnimationContext = 0;
-}
-
-} // namespace WebKit
-
-#endif // PLATFORM(MAC)
</del></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessmacPageClientImplh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.h (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.h        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><del>-class FindIndicatorWindow;
</del><ins>+class TextIndicatorWindow;
</ins><span class="cx"> 
</span><span class="cx"> class PageClientImpl final : public PageClient
</span><span class="cx"> #if ENABLE(FULLSCREEN_API)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx">     virtual PassRefPtr&lt;WebColorPicker&gt; createColorPicker(WebPageProxy*, const WebCore::Color&amp; initialColor, const WebCore::IntRect&amp;);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    void setFindIndicator(PassRefPtr&lt;FindIndicator&gt;, bool fadeOut, bool animate);
</del><ins>+    void setTextIndicator(PassRefPtr&lt;TextIndicator&gt;, bool fadeOut, bool animate);
</ins><span class="cx"> 
</span><span class="cx">     virtual void enterAcceleratedCompositingMode(const LayerTreeContext&amp;);
</span><span class="cx">     virtual void exitAcceleratedCompositingMode();
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessmacPageClientImplmm"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.mm (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.mm        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.mm        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -33,11 +33,11 @@
</span><span class="cx"> #import &quot;DataReference.h&quot;
</span><span class="cx"> #import &quot;DictionaryPopupInfo.h&quot;
</span><span class="cx"> #import &quot;DownloadProxy.h&quot;
</span><del>-#import &quot;FindIndicator.h&quot;
</del><span class="cx"> #import &quot;NativeWebKeyboardEvent.h&quot;
</span><span class="cx"> #import &quot;NativeWebWheelEvent.h&quot;
</span><span class="cx"> #import &quot;NavigationState.h&quot;
</span><span class="cx"> #import &quot;StringUtilities.h&quot;
</span><ins>+#import &quot;TextIndicator.h&quot;
</ins><span class="cx"> #import &quot;ViewSnapshotStore.h&quot;
</span><span class="cx"> #import &quot;WKAPICast.h&quot;
</span><span class="cx"> #import &quot;WKFullScreenWindowController.h&quot;
</span><span class="lines">@@ -467,9 +467,9 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-void PageClientImpl::setFindIndicator(PassRefPtr&lt;FindIndicator&gt; findIndicator, bool fadeOut, bool animate)
</del><ins>+void PageClientImpl::setTextIndicator(PassRefPtr&lt;TextIndicator&gt; textIndicator, bool fadeOut, bool animate)
</ins><span class="cx"> {
</span><del>-    [m_wkView _setFindIndicator:findIndicator fadeOut:fadeOut animate:animate];
</del><ins>+    [m_wkView _setTextIndicator:textIndicator fadeOut:fadeOut animate:animate];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void PageClientImpl::accessibilityWebProcessTokenReceived(const IPC::DataReference&amp; data)
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessmacTextIndicatorWindowhfromrev175476trunkSourceWebKit2UIProcessmacTextIndicatorWindowh"></a>
<div class="copfile"><h4>Copied: branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h (from rev 175476, trunk/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h) (0 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h                                (rev 0)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -0,0 +1,79 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef TextIndicatorWindow_h
+#define TextIndicatorWindow_h
+
+#if PLATFORM(MAC)
+
+#import &quot;WebKitSystemInterface.h&quot;
+#import &lt;wtf/Noncopyable.h&gt;
+#import &lt;wtf/RefPtr.h&gt;
+#import &lt;wtf/RetainPtr.h&gt;
+#import &lt;wtf/RunLoop.h&gt;
+
+@class WKTextIndicatorWindowAnimation;
+@class WKView;
+
+namespace WebKit {
+
+class TextIndicator;
+
+class TextIndicatorWindow {
+    WTF_MAKE_NONCOPYABLE(TextIndicatorWindow);
+
+public:
+    explicit TextIndicatorWindow(WKView *);
+    ~TextIndicatorWindow();
+
+    void setTextIndicator(PassRefPtr&lt;TextIndicator&gt;, bool fadeOut, bool animate);
+
+private:
+    void closeWindow();
+
+    void startFadeOutTimerFired();
+
+    void fadeOutAnimationCallback(double);
+    void fadeOutAnimationDidEnd();
+
+    void bounceAnimationCallback(double);
+    void bounceAnimationDidEnd();
+
+    WKView* m_wkView;
+    RefPtr&lt;TextIndicator&gt; m_textIndicator;
+    RetainPtr&lt;NSWindow&gt; m_textIndicatorWindow;
+
+    WKWindowBounceAnimationContextRef m_bounceAnimationContext;
+    RetainPtr&lt;WKTextIndicatorWindowAnimation&gt; m_bounceAnimation;
+
+    RunLoop::Timer&lt;TextIndicatorWindow&gt; m_startFadeOutTimer;
+    RetainPtr&lt;WKTextIndicatorWindowAnimation&gt; m_fadeOutAnimation;
+};
+
+} // namespace WebKit
+
+#endif // TextIndicatorWindow_h
+
+#endif // PLATFORM(MAC)
</ins></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2UIProcessmacTextIndicatorWindowmmfromrev175476trunkSourceWebKit2UIProcessmacTextIndicatorWindowmm"></a>
<div class="copfile"><h4>Copied: branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm (from rev 175476, trunk/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm) (0 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm                                (rev 0)
+++ branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -0,0 +1,237 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import &quot;config.h&quot;
+#import &quot;TextIndicatorWindow.h&quot;
+
+#if PLATFORM(MAC)
+
+#import &quot;TextIndicator.h&quot;
+#import &quot;WKView.h&quot;
+#import &lt;WebCore/GraphicsContext.h&gt;
+
+static const double bounceAnimationDuration = 0.12;
+static const double timeBeforeFadeStarts = bounceAnimationDuration + 0.2;
+static const double fadeOutAnimationDuration = 0.3;
+
+using namespace WebCore;
+
+@interface WKTextIndicatorView : NSView {
+    RefPtr&lt;WebKit::TextIndicator&gt; _textIndicator;
+}
+
+- (id)_initWithTextIndicator:(PassRefPtr&lt;WebKit::TextIndicator&gt;)textIndicator;
+@end
+
+@implementation WKTextIndicatorView
+
+- (id)_initWithTextIndicator:(PassRefPtr&lt;WebKit::TextIndicator&gt;)textIndicator
+{
+    if ((self = [super initWithFrame:NSZeroRect]))
+        _textIndicator = textIndicator;
+
+    return self;
+}
+
+- (void)drawRect:(NSRect)rect
+{
+    GraphicsContext graphicsContext(static_cast&lt;CGContextRef&gt;([[NSGraphicsContext currentContext] graphicsPort]));
+
+    _textIndicator-&gt;draw(graphicsContext, enclosingIntRect(rect));
+}
+
+- (BOOL)isFlipped
+{
+    return YES;
+}
+
+@end
+
+@interface WKTextIndicatorWindowAnimation : NSAnimation&lt;NSAnimationDelegate&gt; {
+    WebKit::TextIndicatorWindow* _textIndicatorWindow;
+    void (WebKit::TextIndicatorWindow::*_animationProgressCallback)(double progress);
+    void (WebKit::TextIndicatorWindow::*_animationDidEndCallback)();
+}
+
+- (id)_initWithTextIndicatorWindow:(WebKit::TextIndicatorWindow *)textIndicatorWindow animationDuration:(CFTimeInterval)duration animationProgressCallback:(void (WebKit::TextIndicatorWindow::*)(double progress))animationProgressCallback animationDidEndCallback:(void (WebKit::TextIndicatorWindow::*)())animationDidEndCallback;
+@end
+
+@implementation WKTextIndicatorWindowAnimation
+
+- (id)_initWithTextIndicatorWindow:(WebKit::TextIndicatorWindow *)textIndicatorWindow animationDuration:(CFTimeInterval)animationDuration animationProgressCallback:(void (WebKit::TextIndicatorWindow::*)(double progress))animationProgressCallback animationDidEndCallback:(void (WebKit::TextIndicatorWindow::*)())animationDidEndCallback
+{
+    if ((self = [super initWithDuration:animationDuration animationCurve:NSAnimationEaseInOut])) {
+        _textIndicatorWindow = textIndicatorWindow;
+        _animationProgressCallback = animationProgressCallback;
+        _animationDidEndCallback = animationDidEndCallback;
+        [self setDelegate:self];
+        [self setAnimationBlockingMode:NSAnimationNonblocking];
+    }
+    return self;
+}
+
+- (void)setCurrentProgress:(NSAnimationProgress)progress
+{
+    (_textIndicatorWindow-&gt;*_animationProgressCallback)(progress);
+}
+
+- (void)animationDidEnd:(NSAnimation *)animation
+{
+    ASSERT(animation == self);
+
+    (_textIndicatorWindow-&gt;*_animationDidEndCallback)();
+}
+
+@end
+
+namespace WebKit {
+
+TextIndicatorWindow::TextIndicatorWindow(WKView *wkView)
+    : m_wkView(wkView)
+    , m_bounceAnimationContext(0)
+    , m_startFadeOutTimer(RunLoop::main(), this, &amp;TextIndicatorWindow::startFadeOutTimerFired)
+{
+}
+
+TextIndicatorWindow::~TextIndicatorWindow()
+{
+    closeWindow();
+}
+
+void TextIndicatorWindow::setTextIndicator(PassRefPtr&lt;TextIndicator&gt; textIndicator, bool fadeOut, bool animate)
+{
+    if (m_textIndicator == textIndicator)
+        return;
+
+    m_textIndicator = textIndicator;
+
+    // Get rid of the old window.
+    closeWindow();
+
+    if (!m_textIndicator)
+        return;
+
+    NSRect contentRect = m_textIndicator-&gt;frameRect();
+    NSRect windowFrameRect = NSIntegralRect([m_wkView convertRect:contentRect toView:nil]);
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored &quot;-Wdeprecated-declarations&quot;
+    windowFrameRect.origin = [[m_wkView window] convertBaseToScreen:windowFrameRect.origin];
+#pragma clang diagnostic pop
+    NSRect windowContentRect = [NSWindow contentRectForFrameRect:windowFrameRect styleMask:NSBorderlessWindowMask];
+    
+    m_textIndicatorWindow = adoptNS([[NSWindow alloc] initWithContentRect:windowContentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]);
+
+    [m_textIndicatorWindow setBackgroundColor:[NSColor clearColor]];
+    [m_textIndicatorWindow setOpaque:NO];
+    [m_textIndicatorWindow setIgnoresMouseEvents:YES];
+
+    RetainPtr&lt;WKTextIndicatorView&gt; textIndicatorView = adoptNS([[WKTextIndicatorView alloc] _initWithTextIndicator:m_textIndicator]);
+    [m_textIndicatorWindow setContentView:textIndicatorView.get()];
+
+    [[m_wkView window] addChildWindow:m_textIndicatorWindow.get() ordered:NSWindowAbove];
+    [m_textIndicatorWindow setReleasedWhenClosed:NO];
+
+    if (animate) {
+        // Start the bounce animation.
+        m_bounceAnimationContext = WKWindowBounceAnimationContextCreate(m_textIndicatorWindow.get());
+        m_bounceAnimation = adoptNS([[WKTextIndicatorWindowAnimation alloc] _initWithTextIndicatorWindow:this animationDuration:bounceAnimationDuration
+            animationProgressCallback:&amp;TextIndicatorWindow::bounceAnimationCallback animationDidEndCallback:&amp;TextIndicatorWindow::bounceAnimationDidEnd]);
+        [m_bounceAnimation startAnimation];
+    }
+
+    if (fadeOut)
+        m_startFadeOutTimer.startOneShot(timeBeforeFadeStarts);
+}
+
+void TextIndicatorWindow::closeWindow()
+{
+    if (!m_textIndicatorWindow)
+        return;
+
+    m_startFadeOutTimer.stop();
+
+    if (m_fadeOutAnimation) {
+        [m_fadeOutAnimation stopAnimation];
+        m_fadeOutAnimation = nullptr;
+    }
+
+    if (m_bounceAnimation) {
+        [m_bounceAnimation stopAnimation];
+        m_bounceAnimation = nullptr;
+    }
+
+    if (m_bounceAnimationContext)
+        WKWindowBounceAnimationContextDestroy(m_bounceAnimationContext);
+    
+    [[m_textIndicatorWindow parentWindow] removeChildWindow:m_textIndicatorWindow.get()];
+    [m_textIndicatorWindow close];
+    m_textIndicatorWindow = nullptr;
+}
+
+void TextIndicatorWindow::startFadeOutTimerFired()
+{
+    ASSERT(!m_fadeOutAnimation);
+    
+    m_fadeOutAnimation = adoptNS([[WKTextIndicatorWindowAnimation alloc] _initWithTextIndicatorWindow:this animationDuration:fadeOutAnimationDuration
+        animationProgressCallback:&amp;TextIndicatorWindow::fadeOutAnimationCallback animationDidEndCallback:&amp;TextIndicatorWindow::fadeOutAnimationDidEnd]);
+    [m_fadeOutAnimation startAnimation];
+}
+
+void TextIndicatorWindow::fadeOutAnimationCallback(double progress)
+{
+    ASSERT(m_fadeOutAnimation);
+
+    [m_textIndicatorWindow setAlphaValue:1.0 - progress];
+}
+
+void TextIndicatorWindow::fadeOutAnimationDidEnd()
+{
+    ASSERT(m_fadeOutAnimation);
+    ASSERT(m_textIndicatorWindow);
+
+    closeWindow();
+}
+
+void TextIndicatorWindow::bounceAnimationCallback(double progress)
+{
+    ASSERT(m_bounceAnimation);
+    ASSERT(m_bounceAnimationContext);
+
+    WKWindowBounceAnimationSetAnimationProgress(m_bounceAnimationContext, progress);
+}
+
+void TextIndicatorWindow::bounceAnimationDidEnd()
+{
+    ASSERT(m_bounceAnimation);
+    ASSERT(m_bounceAnimationContext);
+    ASSERT(m_textIndicatorWindow);
+
+    WKWindowBounceAnimationContextDestroy(m_bounceAnimationContext);
+    m_bounceAnimationContext = 0;
+}
+
+} // namespace WebKit
+
+#endif // PLATFORM(MAC)
</ins></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2WebKit2xcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -110,8 +110,8 @@
</span><span class="cx">                 0FCB4E5118BBE044000FCFC9 /* WKGeolocationProviderIOSObjCSecurityOrigin.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E4118BBE044000FCFC9 /* WKGeolocationProviderIOSObjCSecurityOrigin.mm */; };
</span><span class="cx">                 0FCB4E5418BBE044000FCFC9 /* WKScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FCB4E4418BBE044000FCFC9 /* WKScrollView.h */; };
</span><span class="cx">                 0FCB4E5518BBE044000FCFC9 /* WKScrollView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E4518BBE044000FCFC9 /* WKScrollView.mm */; };
</span><del>-                0FCB4E6018BBE3D9000FCFC9 /* FindIndicatorWindow.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FCB4E5618BBE3D9000FCFC9 /* FindIndicatorWindow.h */; };
-                0FCB4E6118BBE3D9000FCFC9 /* FindIndicatorWindow.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E5718BBE3D9000FCFC9 /* FindIndicatorWindow.mm */; };
</del><ins>+                0FCB4E6018BBE3D9000FCFC9 /* TextIndicatorWindow.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FCB4E5618BBE3D9000FCFC9 /* TextIndicatorWindow.h */; };
+                0FCB4E6118BBE3D9000FCFC9 /* TextIndicatorWindow.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E5718BBE3D9000FCFC9 /* TextIndicatorWindow.mm */; };
</ins><span class="cx">                 0FCB4E6218BBE3D9000FCFC9 /* PageClientImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FCB4E5818BBE3D9000FCFC9 /* PageClientImpl.h */; };
</span><span class="cx">                 0FCB4E6318BBE3D9000FCFC9 /* PageClientImpl.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E5918BBE3D9000FCFC9 /* PageClientImpl.mm */; };
</span><span class="cx">                 0FCB4E6618BBE3D9000FCFC9 /* WKPrintingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FCB4E5C18BBE3D9000FCFC9 /* WKPrintingView.h */; };
</span><span class="lines">@@ -307,8 +307,8 @@
</span><span class="cx">                 1A90C1EE1264FD50003E44D4 /* WebFindOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A90C1ED1264FD50003E44D4 /* WebFindOptions.h */; };
</span><span class="cx">                 1A90C1F41264FD71003E44D4 /* FindController.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A90C1F21264FD71003E44D4 /* FindController.h */; };
</span><span class="cx">                 1A90C1F51264FD71003E44D4 /* FindController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A90C1F31264FD71003E44D4 /* FindController.cpp */; };
</span><del>-                1A910071126675C4001842F5 /* FindIndicator.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A91006F126675C3001842F5 /* FindIndicator.h */; };
-                1A910072126675C4001842F5 /* FindIndicator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A910070126675C4001842F5 /* FindIndicator.cpp */; };
</del><ins>+                1A910071126675C4001842F5 /* TextIndicator.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A91006F126675C3001842F5 /* TextIndicator.h */; };
+                1A910072126675C4001842F5 /* TextIndicator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A910070126675C4001842F5 /* TextIndicator.cpp */; };
</ins><span class="cx">                 1A92DC1112F8BA460017AF65 /* LayerTreeContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A92DC1012F8BA460017AF65 /* LayerTreeContext.h */; };
</span><span class="cx">                 1A92DC1312F8BAB90017AF65 /* LayerTreeContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A92DC1212F8BAB90017AF65 /* LayerTreeContext.cpp */; };
</span><span class="cx">                 1A9E32891821636900F5D04C /* _WKRemoteObjectRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9E32871821636900F5D04C /* _WKRemoteObjectRegistry.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -2061,8 +2061,8 @@
</span><span class="cx">                 0FCB4E4118BBE044000FCFC9 /* WKGeolocationProviderIOSObjCSecurityOrigin.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKGeolocationProviderIOSObjCSecurityOrigin.mm; path = ios/WKGeolocationProviderIOSObjCSecurityOrigin.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 0FCB4E4418BBE044000FCFC9 /* WKScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WKScrollView.h; path = ios/WKScrollView.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 0FCB4E4518BBE044000FCFC9 /* WKScrollView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKScrollView.mm; path = ios/WKScrollView.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                0FCB4E5618BBE3D9000FCFC9 /* FindIndicatorWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FindIndicatorWindow.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                0FCB4E5718BBE3D9000FCFC9 /* FindIndicatorWindow.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FindIndicatorWindow.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><ins>+                0FCB4E5618BBE3D9000FCFC9 /* TextIndicatorWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextIndicatorWindow.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                0FCB4E5718BBE3D9000FCFC9 /* TextIndicatorWindow.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextIndicatorWindow.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 0FCB4E5818BBE3D9000FCFC9 /* PageClientImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageClientImpl.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 0FCB4E5918BBE3D9000FCFC9 /* PageClientImpl.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PageClientImpl.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 0FCB4E5C18BBE3D9000FCFC9 /* WKPrintingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPrintingView.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -2283,8 +2283,8 @@
</span><span class="cx">                 1A90C1ED1264FD50003E44D4 /* WebFindOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebFindOptions.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1A90C1F21264FD71003E44D4 /* FindController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FindController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1A90C1F31264FD71003E44D4 /* FindController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FindController.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                1A91006F126675C3001842F5 /* FindIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FindIndicator.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                1A910070126675C4001842F5 /* FindIndicator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FindIndicator.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><ins>+                1A91006F126675C3001842F5 /* TextIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextIndicator.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                1A910070126675C4001842F5 /* TextIndicator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextIndicator.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 1A92DC1012F8BA460017AF65 /* LayerTreeContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayerTreeContext.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1A92DC1212F8BAB90017AF65 /* LayerTreeContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LayerTreeContext.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1A9E32871821636900F5D04C /* _WKRemoteObjectRegistry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _WKRemoteObjectRegistry.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -5798,10 +5798,10 @@
</span><span class="cx">                                 BC2652121182608100243E12 /* DrawingAreaProxy.cpp */,
</span><span class="cx">                                 BC2652131182608100243E12 /* DrawingAreaProxy.h */,
</span><span class="cx">                                 1A6422FC12DD08FE00CAAE2C /* DrawingAreaProxy.messages.in */,
</span><del>-                                1A910070126675C4001842F5 /* FindIndicator.cpp */,
</del><ins>+                                1A910070126675C4001842F5 /* TextIndicator.cpp */,
</ins><span class="cx">                                 1AE00D5E1831792100087DD7 /* FrameLoadState.cpp */,
</span><span class="cx">                                 1AE00D5F1831792100087DD7 /* FrameLoadState.h */,
</span><del>-                                1A91006F126675C3001842F5 /* FindIndicator.h */,
</del><ins>+                                1A91006F126675C3001842F5 /* TextIndicator.h */,
</ins><span class="cx">                                 BC17753E118BABF0007D9E9A /* GenericCallback.h */,
</span><span class="cx">                                 BC06F44912DBD1F5002D78DE /* GeolocationPermissionRequestManagerProxy.cpp */,
</span><span class="cx">                                 BC06F44812DBD1F5002D78DE /* GeolocationPermissionRequestManagerProxy.h */,
</span><span class="lines">@@ -6605,8 +6605,8 @@
</span><span class="cx">                         children = (
</span><span class="cx">                                 B878B613133428DC006888E9 /* CorrectionPanel.h */,
</span><span class="cx">                                 B878B614133428DC006888E9 /* CorrectionPanel.mm */,
</span><del>-                                0FCB4E5618BBE3D9000FCFC9 /* FindIndicatorWindow.h */,
-                                0FCB4E5718BBE3D9000FCFC9 /* FindIndicatorWindow.mm */,
</del><ins>+                                0FCB4E5618BBE3D9000FCFC9 /* TextIndicatorWindow.h */,
+                                0FCB4E5718BBE3D9000FCFC9 /* TextIndicatorWindow.mm */,
</ins><span class="cx">                                 1AFDE65B1954E8D500C48FFA /* LegacySessionStateCoding.cpp */,
</span><span class="cx">                                 0FCB4E5818BBE3D9000FCFC9 /* PageClientImpl.h */,
</span><span class="cx">                                 0FCB4E5918BBE3D9000FCFC9 /* PageClientImpl.mm */,
</span><span class="lines">@@ -7181,7 +7181,7 @@
</span><span class="cx">                                 1A7C6CDB1378950800B9C04D /* EnvironmentVariables.h in Headers */,
</span><span class="cx">                                 1AA575FB1496B52600A4EE06 /* EventDispatcher.h in Headers */,
</span><span class="cx">                                 1A90C1F41264FD71003E44D4 /* FindController.h in Headers */,
</span><del>-                                1A910071126675C4001842F5 /* FindIndicator.h in Headers */,
</del><ins>+                                1A910071126675C4001842F5 /* TextIndicator.h in Headers */,
</ins><span class="cx">                                 515E7728183DD6F60007203F /* AsyncRequest.h in Headers */,
</span><span class="cx">                                 BCE81D8D1319F7EF00241910 /* FontInfo.h in Headers */,
</span><span class="cx">                                 1ABC3DFC1899F51C004F0626 /* WKNavigationDelegate.h in Headers */,
</span><span class="lines">@@ -7230,7 +7230,7 @@
</span><span class="cx">                                 51654EFE184EF33F007DC837 /* UniqueIDBDatabaseBackingStoreSQLite.h in Headers */,
</span><span class="cx">                                 BC33E0D112408E8600360F3F /* InjectedBundleRangeHandle.h in Headers */,
</span><span class="cx">                                 A115DC72191D82DA00DA8072 /* _WKWebViewPrintFormatter.h in Headers */,
</span><del>-                                0FCB4E6018BBE3D9000FCFC9 /* FindIndicatorWindow.h in Headers */,
</del><ins>+                                0FCB4E6018BBE3D9000FCFC9 /* TextIndicatorWindow.h in Headers */,
</ins><span class="cx">                                 BC14DF77120B5B7900826C0C /* InjectedBundleScriptWorld.h in Headers */,
</span><span class="cx">                                 BCB0B0DE12305A8C00B1341E /* InjectedBundleUserMessageCoders.h in Headers */,
</span><span class="cx">                                 1AE49A4911FFA8CE0048B464 /* JSNPMethod.h in Headers */,
</span><span class="lines">@@ -8857,7 +8857,7 @@
</span><span class="cx">                                 1AA576021496B97900A4EE06 /* EventDispatcherMessageReceiver.cpp in Sources */,
</span><span class="cx">                                 1A1E093318861D3800D2DC49 /* WebProgressTrackerClient.cpp in Sources */,
</span><span class="cx">                                 1A90C1F51264FD71003E44D4 /* FindController.cpp in Sources */,
</span><del>-                                1A910072126675C4001842F5 /* FindIndicator.cpp in Sources */,
</del><ins>+                                1A910072126675C4001842F5 /* TextIndicator.cpp in Sources */,
</ins><span class="cx">                                 BCE81D8C1319F7EF00241910 /* FontInfo.cpp in Sources */,
</span><span class="cx">                                 378E1A4918208CD60031007A /* WKNSString.mm in Sources */,
</span><span class="cx">                                 1AAF08B719269E6D00B6390C /* WebUserContentControllerMessageReceiver.cpp in Sources */,
</span><span class="lines">@@ -9359,7 +9359,7 @@
</span><span class="cx">                                 BCBAAC72144E61990053F82F /* WKBrowsingContextController.mm in Sources */,
</span><span class="cx">                                 BCBAACF51452324F0053F82F /* WKBrowsingContextGroup.mm in Sources */,
</span><span class="cx">                                 51290992183ACEAF005522A6 /* WebIDBServerConnection.cpp in Sources */,
</span><del>-                                0FCB4E6118BBE3D9000FCFC9 /* FindIndicatorWindow.mm in Sources */,
</del><ins>+                                0FCB4E6118BBE3D9000FCFC9 /* TextIndicatorWindow.mm in Sources */,
</ins><span class="cx">                                 BC204EEE11C83EC8008F3375 /* WKBundle.cpp in Sources */,
</span><span class="cx">                                 7C6E70FB18B2DC7A00F24E2E /* WebProcessCocoa.mm in Sources */,
</span><span class="cx">                                 935EEB9E127761AC003322B8 /* WKBundleBackForwardList.cpp in Sources */,
</span></span></pre></div>
<a id="branchessafari6003branchSourceWebKit2WebProcessWebPageFindControllercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.3-branch/Source/WebKit2/WebProcess/WebPage/FindController.cpp (175569 => 175570)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.3-branch/Source/WebKit2/WebProcess/WebPage/FindController.cpp        2014-11-04 20:30:52 UTC (rev 175569)
+++ branches/safari-600.3-branch/Source/WebKit2/WebProcess/WebPage/FindController.cpp        2014-11-04 20:35:37 UTC (rev 175570)
</span><span class="lines">@@ -368,7 +368,7 @@
</span><span class="cx">         textRectsInSelectionRectCoordinates.append(textRectInSelectionRectCoordinates);
</span><span class="cx">     }            
</span><span class="cx"> 
</span><del>-    m_webPage-&gt;send(Messages::WebPageProxy::SetFindIndicator(selectionRectInWindowCoordinates, textRectsInSelectionRectCoordinates, m_webPage-&gt;corePage()-&gt;deviceScaleFactor(), handle, !isShowingOverlay, shouldAnimate));
</del><ins>+    m_webPage-&gt;send(Messages::WebPageProxy::SetTextIndicator(selectionRectInWindowCoordinates, textRectsInSelectionRectCoordinates, m_webPage-&gt;corePage()-&gt;deviceScaleFactor(), handle, !isShowingOverlay, shouldAnimate));
</ins><span class="cx">     m_findIndicatorRect = selectionRectInWindowCoordinates;
</span><span class="cx">     m_isShowingFindIndicator = true;
</span><span class="cx"> 
</span><span class="lines">@@ -381,7 +381,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ShareableBitmap::Handle handle;
</span><del>-    m_webPage-&gt;send(Messages::WebPageProxy::SetFindIndicator(FloatRect(), Vector&lt;FloatRect&gt;(), m_webPage-&gt;corePage()-&gt;deviceScaleFactor(), handle, false, true));
</del><ins>+    m_webPage-&gt;send(Messages::WebPageProxy::SetTextIndicator(FloatRect(), Vector&lt;FloatRect&gt;(), m_webPage-&gt;corePage()-&gt;deviceScaleFactor(), handle, false, true));
</ins><span class="cx">     m_isShowingFindIndicator = false;
</span><span class="cx">     m_foundStringMatchIndex = -1;
</span><span class="cx">     didHideFindIndicator();
</span></span></pre>
</div>
</div>

</body>
</html>