Index: Source/web/PopupMenuImpl.cpp |
diff --git a/Source/web/PopupMenuImpl.cpp b/Source/web/PopupMenuImpl.cpp |
index 40695b68b55de2c611d95c69a6b4d42226d3ba14..f687a608381575fe5a308579f7c6a68e7079cfd5 100644 |
--- a/Source/web/PopupMenuImpl.cpp |
+++ b/Source/web/PopupMenuImpl.cpp |
@@ -80,7 +80,7 @@ IntSize PopupMenuImpl::contentSize() |
void PopupMenuImpl::writeDocument(SharedBuffer* data) |
{ |
- IntRect anchorRectInScreen = m_chromeClient->rootViewToScreen(m_client->elementRectRelativeToRootView()); |
+ IntRect anchorRectInScreen = m_chromeClient->viewportToScreen(m_client->elementRectRelativeToViewport()); |
PagePopupClient::addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data); |
data->append(Platform::current()->loadResource("pickerCommon.css")); |
@@ -266,7 +266,7 @@ void PopupMenuImpl::dispose() |
void PopupMenuImpl::show(const FloatQuad& /*controlPosition*/, const IntSize& /*controlSize*/, int /*index*/) |
{ |
ASSERT(!m_popup); |
- m_popup = m_chromeClient->openPagePopup(this, m_client->elementRectRelativeToRootView()); |
+ m_popup = m_chromeClient->openPagePopup(this); |
} |
void PopupMenuImpl::hide() |