| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index f26de9a14852c0c662258a8585b7eb0ea65d2bc9..0ecc474de3cec5abc4782660db6cc1776b37670d 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -918,35 +918,6 @@ void WebViewImpl::setShowScrollBottleneckRects(bool show)
|
| m_showScrollBottleneckRects = show;
|
| }
|
|
|
| -void WebViewImpl::getSelectionRootBounds(WebRect& bounds) const
|
| -{
|
| - const Frame* frame = focusedCoreFrame();
|
| - if (!frame || !frame->isLocalFrame())
|
| - return;
|
| -
|
| - Element* root = toLocalFrame(frame)->selection().rootEditableElementOrDocumentElement();
|
| - if (!root)
|
| - return;
|
| -
|
| - // If the selection is inside a form control, the root will be a <div> that
|
| - // behaves as the editor but we want to return the actual element's bounds.
|
| - // In practice, that means <textarea> and <input> controls that behave like
|
| - // a text field.
|
| - Element* shadowHost = root->shadowHost();
|
| - if (shadowHost
|
| - && (isHTMLTextAreaElement(*shadowHost)
|
| - || (isHTMLInputElement(*shadowHost) && toHTMLInputElement(*shadowHost).isTextField())))
|
| - root = shadowHost;
|
| -
|
| - IntRect boundingBox = isHTMLHtmlElement(root)
|
| - ? IntRect(IntPoint(0, 0), root->document().frame()->view()->contentsSize())
|
| - : root->pixelSnappedBoundingBox();
|
| -
|
| - boundingBox = root->document().frame()->view()->contentsToWindow(boundingBox);
|
| - boundingBox.scale(pageScaleFactor());
|
| - bounds = boundingBox;
|
| -}
|
| -
|
| void WebViewImpl::acceptLanguagesChanged()
|
| {
|
| if (!page())
|
|
|