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

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: Created 5 years, 1 month 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 a4e73c5054d07d312a1756f0f54961aa3936cf03..a6a3f15b19c98687cfda0c320bcf0b760060c5a1 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1080,7 +1080,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);
oshima 2015/11/23 22:14:50 tommycli@, the API used to return pre-page-scaled
}

Powered by Google App Engine
This is Rietveld 408576698