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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 2333353002: Don't set view_screen_rect_ on RequestMove ACK (Closed)
Patch Set: Rebase Created 4 years, 2 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 | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index 49057afc6d99ff84784d2fec4790780d36939cd1..9605aced430b45548169f8706742cf7344ccf557 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -624,7 +624,7 @@ bool GpuBenchmarking::SmoothScrollBy(gin::Arguments* args) {
return false;
float page_scale_factor = context.web_view()->pageScaleFactor();
- blink::WebRect rect = context.render_view_impl()->GetWidget()->windowRect();
+ blink::WebRect rect = context.render_view_impl()->GetWidget()->viewRect();
float pixels_to_scroll = 0;
v8::Local<v8::Function> callback;
@@ -694,7 +694,7 @@ bool GpuBenchmarking::Swipe(gin::Arguments* args) {
return false;
float page_scale_factor = context.web_view()->pageScaleFactor();
- blink::WebRect rect = context.render_view_impl()->GetWidget()->windowRect();
+ blink::WebRect rect = context.render_view_impl()->GetWidget()->viewRect();
std::string direction = "up";
float pixels_to_scroll = 0;
@@ -729,7 +729,7 @@ bool GpuBenchmarking::ScrollBounce(gin::Arguments* args) {
return false;
float page_scale_factor = context.web_view()->pageScaleFactor();
- blink::WebRect rect = context.render_view_impl()->GetWidget()->windowRect();
+ blink::WebRect rect = context.render_view_impl()->GetWidget()->viewRect();
std::string direction = "down";
float distance_length = 0;
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698