Index: webkit/glue/plugins/pepper_plugin_instance.cc |
=================================================================== |
--- webkit/glue/plugins/pepper_plugin_instance.cc (revision 64839) |
+++ webkit/glue/plugins/pepper_plugin_instance.cc (working copy) |
@@ -358,6 +358,20 @@ |
} |
} |
+void PluginInstance::ScrollRect(int dx, int dy, const gfx::Rect& rect) { |
+ if (fullscreen_container_) { |
+ fullscreen_container_->ScrollRect(dx, dy, rect); |
+ } else { |
+ if (full_frame_) { |
+ container_->scrollRect(dx, dy, rect); |
+ } else { |
+ // Can't do optimized scrolling since there could be other elemetns on top |
brettw
2010/11/03 01:16:41
elemetns -> elements
|
+ // of us. |
+ InvalidateRect(rect); |
+ } |
+ } |
+} |
+ |
PP_Var PluginInstance::GetWindowObject() { |
if (!container_) |
return PP_MakeUndefined(); |