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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index a3ecc9a448f65f46289bf8a1fa4af48a9587888b..811c1075fdd1543b48dbdf56314899fe10bb2fd7 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1079,7 +1079,7 @@ bool PepperPluginInstanceImpl::HandleInputEvent(
event.type == blink::WebInputEvent::MouseDown &&
(event.modifiers & blink::WebInputEvent::LeftButtonDown)) {
has_been_clicked_ = true;
- blink::WebRect bounds = container()->element().boundsInViewportSpace();
+ blink::WebRect bounds = container()->element().boundsInViewport();
RecordFlashClickSizeMetric(bounds.width, bounds.height);
}
« no previous file with comments | « components/autofill/content/renderer/password_generation_agent.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698