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

Unified Diff: Source/core/inspector/InspectorFrontendHost.cpp

Issue 396213010: [DevTools] Scale context menu position by pageZoomFactor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorFrontendHost.cpp
diff --git a/Source/core/inspector/InspectorFrontendHost.cpp b/Source/core/inspector/InspectorFrontendHost.cpp
index 014cdba09f3921bd3d941ba1eabcc6a92bd37311..8ea35d1b83c04fc150639f0d4d8812564728dc2a 100644
--- a/Source/core/inspector/InspectorFrontendHost.cpp
+++ b/Source/core/inspector/InspectorFrontendHost.cpp
@@ -205,7 +205,8 @@ void InspectorFrontendHost::showContextMenu(Page* page, float x, float y, const
RefPtr<FrontendMenuProvider> menuProvider = FrontendMenuProvider::create(this, frontendApiObject, items);
m_menuProvider = menuProvider.get();
- page->inspectorController().showContextMenu(x, y, menuProvider);
+ float zoom = page->deprecatedLocalMainFrame()->pageZoomFactor();
+ page->inspectorController().showContextMenu(x * zoom, y * zoom, menuProvider);
}
void InspectorFrontendHost::showContextMenu(Event* event, const Vector<ContextMenuItem>& items)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698