Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: third_party/WebKit/Source/web/PopupMenuImpl.cpp

Issue 2868173002: Add PlatformLocalFrame class. (Closed)
Patch Set: this time with new file included Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/PopupMenuImpl.cpp
diff --git a/third_party/WebKit/Source/web/PopupMenuImpl.cpp b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
index 2b0cd8df2cd049bfa80c74726b59c3c9a446757e..f7a04b005055d5de0e418fcd7a567e0a71fc628d 100644
--- a/third_party/WebKit/Source/web/PopupMenuImpl.cpp
+++ b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
@@ -262,7 +262,7 @@ void PopupMenuImpl::WriteDocument(SharedBuffer* data) {
HTMLSelectElement& owner_element = *owner_element_;
IntRect anchor_rect_in_screen = chrome_client_->ViewportToScreen(
owner_element.VisibleBoundsInVisualViewport(),
- owner_element.GetDocument().View());
+ owner_element.GetDocument().GetFrame());
float scale_factor = chrome_client_->WindowToViewportScalar(1.f);
PagePopupClient::AddString(
@@ -572,7 +572,7 @@ void PopupMenuImpl::Update() {
PagePopupClient::AddString("],\n", data.Get());
IntRect anchor_rect_in_screen = chrome_client_->ViewportToScreen(
owner_element_->VisibleBoundsInVisualViewport(),
- OwnerElement().GetDocument().View());
+ OwnerElement().GetDocument().GetFrame());
AddProperty("anchorRectInScreen", anchor_rect_in_screen, data.Get());
PagePopupClient::AddString("}\n", data.Get());
popup_->PostMessage(String::FromUTF8(data->Data(), data->size()));
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlayAgent.cpp ('k') | third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698