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 4aaad86e0dbf7002b1f6b76917348e1bcdd94e16..c12c99f778c25483f8386129a2863ee691cfebf5 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -756,7 +756,11 @@ void PepperPluginInstanceImpl::ScrollRect(int dx, |
fullscreen_container_->ScrollRect(dx, dy, rect); |
} else { |
if (full_frame_ && !IsViewAccelerated()) { |
+#ifdef SCROLL_RECT_REQUIRES_NO_DELTA |
+ container_->scrollRect(rect); |
+#else |
container_->scrollRect(dx, dy, rect); |
+#endif |
} else { |
// Can't do optimized scrolling since there could be other elements on top |
// of us or the view renders via the accelerated compositor which is |