| Index: ppapi/shared_impl/ppb_view_shared.cc
|
| diff --git a/ppapi/shared_impl/ppb_view_shared.cc b/ppapi/shared_impl/ppb_view_shared.cc
|
| index fc19a461f16a207c00768765fe4490ff5d7f187f..36c047d660953a76e3be5217f349f96a9fa1ca07 100644
|
| --- a/ppapi/shared_impl/ppb_view_shared.cc
|
| +++ b/ppapi/shared_impl/ppb_view_shared.cc
|
| @@ -35,7 +35,9 @@ bool ViewData::Equals(const ViewData& other) const {
|
| clip_rect.point.y == other.clip_rect.point.y &&
|
| clip_rect.size.width == other.clip_rect.size.width &&
|
| clip_rect.size.height == other.clip_rect.size.height &&
|
| - device_scale == other.device_scale && css_scale == other.css_scale;
|
| + device_scale == other.device_scale && css_scale == other.css_scale &&
|
| + scroll_offset.x == other.scroll_offset.x &&
|
| + scroll_offset.y == other.scroll_offset.y;
|
| }
|
|
|
| PPB_View_Shared::PPB_View_Shared(ResourceObjectType type,
|
| @@ -79,4 +81,11 @@ float PPB_View_Shared::GetDeviceScale() const { return data_.device_scale; }
|
|
|
| float PPB_View_Shared::GetCSSScale() const { return data_.css_scale; }
|
|
|
| +PP_Bool PPB_View_Shared::GetScrollOffset(PP_Point* scroll_offset) const {
|
| + if (!scroll_offset)
|
| + return PP_FALSE;
|
| + *scroll_offset = data_.scroll_offset;
|
| + return PP_TRUE;
|
| +}
|
| +
|
| } // namespace ppapi
|
|
|