summaryrefslogtreecommitdiff
path: root/chromium/cc/input/scroll_elasticity_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/input/scroll_elasticity_helper.cc')
-rw-r--r--chromium/cc/input/scroll_elasticity_helper.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/cc/input/scroll_elasticity_helper.cc b/chromium/cc/input/scroll_elasticity_helper.cc
index 739daaa72a3..451bfcd81ba 100644
--- a/chromium/cc/input/scroll_elasticity_helper.cc
+++ b/chromium/cc/input/scroll_elasticity_helper.cc
@@ -18,6 +18,7 @@ class ScrollElasticityHelperImpl : public ScrollElasticityHelper {
bool IsUserScrollable() const override;
gfx::Vector2dF StretchAmount() const override;
+ gfx::Size ScrollBounds() const override;
void SetStretchAmount(const gfx::Vector2dF& stretch_amount) override;
gfx::ScrollOffset ScrollOffset() const override;
gfx::ScrollOffset MaxScrollOffset() const override;
@@ -46,6 +47,12 @@ gfx::Vector2dF ScrollElasticityHelperImpl::StretchAmount() const {
return host_impl_->active_tree()->elastic_overscroll()->Current(true);
}
+gfx::Size ScrollElasticityHelperImpl::ScrollBounds() const {
+ return host_impl_->OuterViewportScrollNode()
+ ? host_impl_->OuterViewportScrollNode()->container_bounds
+ : gfx::Size();
+}
+
void ScrollElasticityHelperImpl::SetStretchAmount(
const gfx::Vector2dF& stretch_amount) {
if (stretch_amount == StretchAmount())