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 68221886255898ee802d9565de7841ad6f73cf27..7b81b68e57d5db65dc8d777d0355f4c896f284b6 100644 |
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc |
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc |
@@ -366,6 +366,22 @@ bool BeginSmoothScroll(v8::Isolate* isolate, |
distance.set_x(-distance_length); |
else if (direction == "left") |
distance.set_x(distance_length); |
+ else if (direction == "upleft") { |
+ distance.set_y(distance_length); |
+ distance.set_x(distance_length); |
+ } |
+ else if (direction == "upright") { |
jdduke (slow)
2015/02/26 01:05:35
Nit: else should start on the same line as the pre
cblume
2015/02/26 20:22:00
Oh, thank you. I've fixed this locally and will up
|
+ distance.set_y(distance_length); |
+ distance.set_x(-distance_length); |
+ } |
+ else if (direction == "downleft") { |
+ distance.set_y(-distance_length); |
+ distance.set_x(distance_length); |
+ } |
+ else if (direction == "downright") { |
+ distance.set_y(-distance_length); |
+ distance.set_x(-distance_length); |
+ } |
else { |
return false; |
} |