| Index: webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.cc b/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| index 5ce5df308631609536015b36f80f9b0c92eaa601..416f1fe7ffbe14ab502144448747ae6fb8b73d52 100644
|
| --- a/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| +++ b/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| @@ -14,6 +14,7 @@
|
| #include "cc/base/switches.h"
|
| #include "cc/layers/layer.h"
|
| #include "cc/layers/layer_position_constraint.h"
|
| +#include "cc/trees/layer_tree_host.h"
|
| #include "third_party/WebKit/public/platform/WebFloatPoint.h"
|
| #include "third_party/WebKit/public/platform/WebFloatRect.h"
|
| #include "third_party/WebKit/public/platform/WebGraphicsLayerDebugInfo.h"
|
| @@ -260,16 +261,14 @@ blink::WebPoint WebLayerImpl::scrollPosition() const {
|
| return gfx::PointAtOffsetFromOrigin(layer_->scroll_offset());
|
| }
|
|
|
| -void WebLayerImpl::setMaxScrollPosition(WebSize max_scroll_position) {
|
| - layer_->SetMaxScrollOffset(max_scroll_position);
|
| -}
|
| -
|
| WebSize WebLayerImpl::maxScrollPosition() const {
|
| - return layer_->max_scroll_offset();
|
| + return layer_->MaxScrollOffset();
|
| }
|
|
|
| -void WebLayerImpl::setScrollable(bool scrollable) {
|
| - layer_->SetScrollable(scrollable);
|
| +void WebLayerImpl::setScrollClipLayer(WebLayer* clip_layer) {
|
| + cc::Layer* cc_clip_layer =
|
| + clip_layer ? static_cast<WebLayerImpl*>(clip_layer)->layer() : 0;
|
| + layer_->SetScrollClipLayer(cc_clip_layer);
|
| }
|
|
|
| bool WebLayerImpl::scrollable() const { return layer_->scrollable(); }
|
|
|