<!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>[179095] branches/safari-600.1.4.15-branch/Source</title>
</head>
<body>

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

<h3>Log Message</h3>
<pre>Merged <a href="http://trac.webkit.org/projects/webkit/changeset/177301">r177301</a>.  rdar://problem/19419933</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari6001415branchSourceWebCoreChangeLog">branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog</a></li>
<li><a href="#branchessafari6001415branchSourceWebCoreWebCoreexpin">branches/safari-600.1.4.15-branch/Source/WebCore/WebCore.exp.in</a></li>
<li><a href="#branchessafari6001415branchSourceWebCoreaccessibilityAccessibilitySlidercpp">branches/safari-600.1.4.15-branch/Source/WebCore/accessibility/AccessibilitySlider.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCoredomContainerNodecpp">branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCoredomContainerNodeh">branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.h</a></li>
<li><a href="#branchessafari6001415branchSourceWebCoredomNodecpp">branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCoredomNodeh">branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.h</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorehtmlColorInputTypecpp">branches/safari-600.1.4.15-branch/Source/WebCore/html/ColorInputType.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorehtmlHTMLInputElementcpp">branches/safari-600.1.4.15-branch/Source/WebCore/html/HTMLInputElement.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorehtmlValidationMessagecpp">branches/safari-600.1.4.15-branch/Source/WebCore/html/ValidationMessage.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorehtmlshadowTextControlInnerElementscpp">branches/safari-600.1.4.15-branch/Source/WebCore/html/shadow/TextControlInnerElements.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorepageFrameViewcpp">branches/safari-600.1.4.15-branch/Source/WebCore/page/FrameView.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorepageSpatialNavigationcpp">branches/safari-600.1.4.15-branch/Source/WebCore/page/SpatialNavigation.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebCorerenderingRenderElementh">branches/safari-600.1.4.15-branch/Source/WebCore/rendering/RenderElement.h</a></li>
<li><a href="#branchessafari6001415branchSourceWebKitmacChangeLog">branches/safari-600.1.4.15-branch/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#branchessafari6001415branchSourceWebKit2ChangeLog">branches/safari-600.1.4.15-branch/Source/WebKit2/ChangeLog</a></li>
<li><a href="#branchessafari6001415branchSourceWebKit2SharedWebHitTestResultcpp">branches/safari-600.1.4.15-branch/Source/WebKit2/Shared/WebHitTestResult.cpp</a></li>
<li><a href="#branchessafari6001415branchSourceWebKit2WebProcessWebPageCoordinatedGraphicsWebPageCoordinatedGraphicscpp">branches/safari-600.1.4.15-branch/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari6001415branchSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -1,3 +1,46 @@
</span><ins>+2015-01-25  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Merge r177301.
+
+        * html/shadow/TextControlInnerElements.cpp:
+        (WebCore::InputFieldSpeechButtonElement::startSpeechInput):
+
+    2014-12-15  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
+
+        Addressing post-review comments in r177035
+        https://bugs.webkit.org/show_bug.cgi?id=139557
+
+        Reviewed by Darin Adler.
+
+        This patch deletes the helper functions rendererBoundingBox() and rendererAnchorRect() and
+        migrates callers to using renderers directly.
+
+        It also improves the comment in RenderElement.h regarding RenderElement::anchorRect().
+
+        No new tests because this is simply refactoring.
+
+        * WebCore.exp.in: Delete exported symbol for rendererBoundingBox()
+        * accessibility/AccessibilitySlider.cpp:
+        (WebCore::AccessibilitySliderThumb::elementRect): Migrate off rendererBoundingBox()
+        * dom/ContainerNode.cpp:
+        (WebCore::rendererAnchorRect): Deleted.
+        * dom/ContainerNode.h:
+        * dom/Node.cpp:
+        (WebCore::rendererBoundingBox): Deleted.
+        * dom/Node.h:
+        * html/ColorInputType.cpp:
+        (WebCore::ColorInputType::elementRectRelativeToRootView): Migrate off rendererBoundingBox().
+        * html/HTMLInputElement.cpp:
+        (WebCore::HTMLInputElement::setupDateTimeChooserParameters): Ditto.
+        * html/ValidationMessage.cpp:
+        (WebCore::ValidationMessage::buildBubbleTree): Ditto.
+        * page/FrameView.cpp:
+        (WebCore::FrameView::scrollElementToRect): Migrate off rendererAnchorRect().
+        (WebCore::FrameView::scrollToAnchor): Ditto.
+        * page/SpatialNavigation.cpp:
+        (WebCore::nodeRectInAbsoluteCoordinates): Migrate off rendererBoundingBox().
+        * rendering/RenderElement.h:
+
</ins><span class="cx"> 2015-01-24  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r177050.
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCoreWebCoreexpin"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/WebCore.exp.in (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/WebCore.exp.in        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/WebCore.exp.in        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -847,7 +847,6 @@
</span><span class="cx"> __ZN7WebCore19enclosingLayoutRectERKNS_9FloatRectE
</span><span class="cx"> __ZN7WebCore19floatValueForLengthERKNS_6LengthEf
</span><span class="cx"> __ZN7WebCore19getFileCreationTimeERKN3WTF6StringERl
</span><del>-__ZN7WebCore19rendererBoundingBoxERKNS_4NodeE
</del><span class="cx"> __ZN7WebCore19toInt32EnforceRangeEPN3JSC9ExecStateENS0_7JSValueE
</span><span class="cx"> __ZN7WebCore20ApplicationCacheHost17maybeLoadResourceEPNS_14ResourceLoaderERKNS_15ResourceRequestERKNS_3URLE
</span><span class="cx"> __ZN7WebCore20ApplicationCacheHost25maybeLoadFallbackForErrorEPNS_14ResourceLoaderERKNS_13ResourceErrorE
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCoreaccessibilityAccessibilitySlidercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/accessibility/AccessibilitySlider.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/accessibility/AccessibilitySlider.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/accessibility/AccessibilitySlider.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -159,7 +159,9 @@
</span><span class="cx">     RenderObject* sliderRenderer = m_parent-&gt;renderer();
</span><span class="cx">     if (!sliderRenderer || !sliderRenderer-&gt;isSlider())
</span><span class="cx">         return LayoutRect();
</span><del>-    return rendererBoundingBox(*toHTMLInputElement(sliderRenderer-&gt;node())-&gt;sliderThumbElement());
</del><ins>+    if (RenderElement* thumbRenderer = toHTMLInputElement(sliderRenderer-&gt;node())-&gt;sliderThumbElement()-&gt;renderer())
+        return thumbRenderer-&gt;absoluteBoundingBoxRect();
+    return LayoutRect();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool AccessibilitySliderThumb::computeAccessibilityIsIgnored() const
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCoredomContainerNodecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -938,11 +938,4 @@
</span><span class="cx">     return ensureRareData().ensureNodeLists().addCacheWithAtomicName&lt;RadioNodeList&gt;(*this, name);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-LayoutRect rendererAnchorRect(const ContainerNode&amp; node)
-{
-    if (RenderElement* renderer = node.renderer())
-        return renderer-&gt;anchorRect();
-    return LayoutRect();
-}
-
</del><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCoredomContainerNodeh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.h (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.h        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/dom/ContainerNode.h        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -306,8 +306,6 @@
</span><span class="cx">     ChildNodesLazySnapshot* m_nextSnapshot;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-LayoutRect rendererAnchorRect(const ContainerNode&amp;);
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ContainerNode_h
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCoredomNodecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -2231,13 +2231,6 @@
</span><span class="cx">     return inDocument() &amp;&amp; document().hasLivingRenderTree();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-IntRect rendererBoundingBox(const Node&amp; node)
-{
-    if (RenderObject* renderer = node.renderer())
-        return renderer-&gt;absoluteBoundingBoxRect();
-    return IntRect();
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #ifndef NDEBUG
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCoredomNodeh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.h (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.h        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/dom/Node.h        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -737,8 +737,6 @@
</span><span class="cx">     return parentNode();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-IntRect rendererBoundingBox(const Node&amp;);
-
</del><span class="cx"> #define NODE_TYPE_CASTS(ToClassName) \
</span><span class="cx">     TYPE_CASTS_BASE(ToClassName, Node, node, WebCore::is##ToClassName(*node), WebCore::is##ToClassName(node))
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorehtmlColorInputTypecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/html/ColorInputType.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/html/ColorInputType.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/html/ColorInputType.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -204,7 +204,9 @@
</span><span class="cx"> 
</span><span class="cx"> IntRect ColorInputType::elementRectRelativeToRootView() const
</span><span class="cx"> {
</span><del>-    return element().document().view()-&gt;contentsToRootView(rendererBoundingBox(element()));
</del><ins>+    if (!element().renderer())
+        return IntRect();
+    element().document().view()-&gt;contentsToRootView(element().renderer()-&gt;absoluteBoundingBoxRect());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Color ColorInputType::currentColor()
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorehtmlHTMLInputElementcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/html/HTMLInputElement.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/html/HTMLInputElement.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/html/HTMLInputElement.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -1909,7 +1909,10 @@
</span><span class="cx">         parameters.stepBase = 0;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    parameters.anchorRectInRootView = document().view()-&gt;contentsToRootView(rendererBoundingBox(*this));
</del><ins>+    if (RenderObject* renderer = this-&gt;renderer())
+        parameters.anchorRectInRootView = document().view()-&gt;contentsToRootView(renderer-&gt;absoluteBoundingBoxRect());
+    else
+        parameters.anchorRectInRootView = IntRect();
</ins><span class="cx">     parameters.currentValue = value();
</span><span class="cx">     parameters.isAnchorElementRTL = computedStyle()-&gt;direction() == RTL;
</span><span class="cx"> #if ENABLE(DATALIST_ELEMENT)
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorehtmlValidationMessagecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/html/ValidationMessage.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/html/ValidationMessage.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/html/ValidationMessage.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -168,6 +168,10 @@
</span><span class="cx"> void ValidationMessage::buildBubbleTree(Timer&lt;ValidationMessage&gt;*)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(!validationMessageClient());
</span><ins>+
+    if (!m_element-&gt;renderer())
+        return;
+
</ins><span class="cx">     ShadowRoot&amp; shadowRoot = m_element-&gt;ensureUserAgentShadowRoot();
</span><span class="cx"> 
</span><span class="cx">     Document&amp; document = m_element-&gt;document();
</span><span class="lines">@@ -178,7 +182,7 @@
</span><span class="cx">     m_bubble-&gt;setInlineStyleProperty(CSSPropertyPosition, CSSValueAbsolute);
</span><span class="cx">     shadowRoot.appendChild(m_bubble.get(), ASSERT_NO_EXCEPTION);
</span><span class="cx">     document.updateLayout();
</span><del>-    adjustBubblePosition(rendererBoundingBox(*m_element), m_bubble.get());
</del><ins>+    adjustBubblePosition(m_element-&gt;renderer()-&gt;absoluteBoundingBoxRect(), m_bubble.get());
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;HTMLDivElement&gt; clipper = HTMLDivElement::create(document);
</span><span class="cx">     clipper-&gt;setPseudo(AtomicString(&quot;-webkit-validation-bubble-arrow-clipper&quot;, AtomicString::ConstructFromLiteral));
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorehtmlshadowTextControlInnerElementscpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/html/shadow/TextControlInnerElements.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/html/shadow/TextControlInnerElements.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/html/shadow/TextControlInnerElements.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -448,7 +448,7 @@
</span><span class="cx">     RefPtr&lt;HTMLInputElement&gt; input = toHTMLInputElement(shadowHost());
</span><span class="cx">     AtomicString language = input-&gt;computeInheritedLanguage();
</span><span class="cx">     String grammar = input-&gt;getAttribute(webkitgrammarAttr);
</span><del>-    IntRect rect = document().view()-&gt;contentsToRootView(rendererBoundingBox(*this));
</del><ins>+    IntRect rect = document().view()-&gt;contentsToRootView(renderer() ? renderer()-&gt;absoluteBoundingBoxRect() : IntRect());
</ins><span class="cx">     if (speechInput()-&gt;startRecognition(m_listenerId, rect, language, grammar, document().securityOrigin()))
</span><span class="cx">         setState(Recording);
</span><span class="cx"> }
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorepageFrameViewcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/page/FrameView.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/page/FrameView.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/page/FrameView.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -1981,7 +1981,9 @@
</span><span class="cx"> {
</span><span class="cx">     frame().document()-&gt;updateLayoutIgnorePendingStylesheets();
</span><span class="cx"> 
</span><del>-    LayoutRect bounds = rendererAnchorRect(*element);
</del><ins>+    LayoutRect bounds;
+    if (RenderElement* renderer = element-&gt;renderer())
+        bounds = renderer-&gt;anchorRect();
</ins><span class="cx">     int centeringOffsetX = (rect.width() - bounds.width()) / 2;
</span><span class="cx">     int centeringOffsetY = (rect.height() - bounds.height()) / 2;
</span><span class="cx">     setScrollPosition(IntPoint(bounds.x() - centeringOffsetX - rect.x(), bounds.y() - centeringOffsetY - rect.y()));
</span><span class="lines">@@ -2732,8 +2734,8 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     LayoutRect rect;
</span><del>-    if (anchorNode != frame().document())
-        rect = rendererAnchorRect(*anchorNode.get());
</del><ins>+    if (anchorNode != frame().document() &amp;&amp; anchorNode-&gt;renderer())
+        rect = anchorNode-&gt;renderer()-&gt;anchorRect();
</ins><span class="cx"> 
</span><span class="cx">     // Scroll nested layers and frames to reveal the anchor.
</span><span class="cx">     // Align to the top and to the closest side (this matches other browsers).
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorepageSpatialNavigationcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/page/SpatialNavigation.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/page/SpatialNavigation.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/page/SpatialNavigation.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -524,7 +524,9 @@
</span><span class="cx">     if (node-&gt;isDocumentNode())
</span><span class="cx">         return frameRectInAbsoluteCoordinates(toDocument(node)-&gt;frame());
</span><span class="cx"> 
</span><del>-    LayoutRect rect = rectToAbsoluteCoordinates(node-&gt;document().frame(), rendererBoundingBox(*node));
</del><ins>+    LayoutRect rect;
+    if (RenderObject* renderer = node-&gt;renderer())
+        rect = rectToAbsoluteCoordinates(node-&gt;document().frame(), renderer-&gt;absoluteBoundingBoxRect());
</ins><span class="cx"> 
</span><span class="cx">     // For authors that use border instead of outline in their CSS, we compensate by ignoring the border when calculating
</span><span class="cx">     // the rect of the focused element.
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebCorerenderingRenderElementh"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebCore/rendering/RenderElement.h (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebCore/rendering/RenderElement.h        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebCore/rendering/RenderElement.h        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -133,7 +133,8 @@
</span><span class="cx">     bool hasHiddenBackface() const { return style().backfaceVisibility() == BackfaceVisibilityHidden; }
</span><span class="cx"> 
</span><span class="cx">     // anchorRect() is conceptually similar to absoluteBoundingBoxRect(), but is intended for scrolling to an anchor.
</span><del>-    // It works differently than absoluteBoundingBoxRect() for inline renderers.
</del><ins>+    // For inline renderers, this gets the logical top left of the first leaf child and the logical bottom right of the
+    // last leaf child, converts them to absolute coordinates, and makes a box out of them.
</ins><span class="cx">     LayoutRect anchorRect() const;
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_FILTERS)
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebKit/mac/ChangeLog (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebKit/mac/ChangeLog        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebKit/mac/ChangeLog        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2015-01-25  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Merge r177301.
+
+    2014-12-15  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
+
+        Addressing post-review comments in r177035
+        https://bugs.webkit.org/show_bug.cgi?id=139557
+
+        Reviewed by Darin Adler.
+
+        * WebView/WebActionMenuController.mm:
+        (elementBoundingBoxInWindowCoordinatesFromNode): Migrate off rendererBoundingBox().
+
</ins><span class="cx"> 2015-01-24  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r177035.
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebKit2/ChangeLog (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebKit2/ChangeLog        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebKit2/ChangeLog        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2015-01-25  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Merge r177301.
+
+    2014-12-15  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
+
+        Addressing post-review comments in r177035
+        https://bugs.webkit.org/show_bug.cgi?id=139557
+
+        Reviewed by Darin Adler.
+
+        * Shared/WebHitTestResult.cpp:
+        (WebKit::WebHitTestResult::Data::elementBoundingBoxInWindowCoordinates): Migrate off rendererBoundingBox().
+        * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
+        (WebKit::WebPage::findZoomableAreaForPoint): Ditto.
+
</ins><span class="cx"> 2015-01-24  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r177035.
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebKit2SharedWebHitTestResultcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebKit2/Shared/WebHitTestResult.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebKit2/Shared/WebHitTestResult.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebKit2/Shared/WebHitTestResult.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -103,7 +103,11 @@
</span><span class="cx">     if (!view)
</span><span class="cx">         return IntRect();
</span><span class="cx"> 
</span><del>-    return view-&gt;contentsToWindow(rendererBoundingBox(*node));
</del><ins>+    RenderObject* renderer = node-&gt;renderer();
+    if (!renderer)
+        return IntRect();
+
+    return view-&gt;contentsToWindow(renderer-&gt;absoluteBoundingBoxRect());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // WebKit
</span></span></pre></div>
<a id="branchessafari6001415branchSourceWebKit2WebProcessWebPageCoordinatedGraphicsWebPageCoordinatedGraphicscpp"></a>
<div class="modfile"><h4>Modified: branches/safari-600.1.4.15-branch/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp (179094 => 179095)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-600.1.4.15-branch/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp        2015-01-26 00:14:16 UTC (rev 179094)
+++ branches/safari-600.1.4.15-branch/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp        2015-01-26 00:14:21 UTC (rev 179095)
</span><span class="lines">@@ -55,7 +55,9 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    IntRect zoomableArea = rendererBoundingBox(*node);
</del><ins>+    IntRect zoomableArea;
+    if (RenderObject* renderer = node-&gt;renderer())
+        zoomableArea = renderer-&gt;absoluteBoundingBoxRect();
</ins><span class="cx"> 
</span><span class="cx">     while (true) {
</span><span class="cx">         bool found = !node-&gt;isTextNode() &amp;&amp; !node-&gt;isShadowRoot();
</span><span class="lines">@@ -71,7 +73,8 @@
</span><span class="cx">             break;
</span><span class="cx"> 
</span><span class="cx">         node = node-&gt;parentNode();
</span><del>-        zoomableArea.unite(rendererBoundingBox(*node));
</del><ins>+        if (RenderObject* renderer = node.renderer())
+            zoomableArea.unite(renderer-&gt;absoluteBoundingBoxRect());
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (node-&gt;document().frame() &amp;&amp; node-&gt;document().frame()-&gt;view()) {
</span></span></pre>
</div>
</div>

</body>
</html>