Index: content/browser/frame_host/render_widget_host_view_child_frame.cc |
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
index 580c6c55965941c446e4ce3a9f032ec07b3d1123..3c987f2a07430bf1d86c300a067895d5c316ccf2 100644 |
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc |
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
@@ -70,6 +70,10 @@ gfx::Rect RenderWidgetHostViewChildFrame::GetViewBounds() const { |
return rect; |
} |
+gfx::Vector2dF RenderWidgetHostViewChildFrame::GetLastScrollOffset() const { |
+ return last_scroll_offset_; |
+} |
+ |
gfx::NativeView RenderWidgetHostViewChildFrame::GetNativeView() const { |
NOTREACHED(); |
return NULL; |
@@ -214,6 +218,7 @@ void RenderWidgetHostViewChildFrame::AcceleratedSurfacePostSubBuffer( |
void RenderWidgetHostViewChildFrame::OnSwapCompositorFrame( |
uint32 output_surface_id, |
scoped_ptr<cc::CompositorFrame> frame) { |
+ last_scroll_offset_ = frame->metadata.root_scroll_offset; |
if (frame_connector_) { |
frame_connector_->ChildFrameCompositorFrameSwapped( |
output_surface_id, |