Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index dd90cb60ea2c64bcbcb3f6dea369c9e59105e68a..5e41ff9d7b946e238244635d93fe6bdb85f74599 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()) |