Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: webkit/renderer/compositor_bindings/web_layer_impl.cc

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r248052. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 7c1248032300ebd869fc48f1faf8258c92a668b6..1265198cf07329bcaf93bcb5a7c2db498c42cf38 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_->SetScrollClipLayerId(cc_clip_layer->id());
}
bool WebLayerImpl::scrollable() const { return layer_->scrollable(); }
« no previous file with comments | « webkit/renderer/compositor_bindings/web_layer_impl.h ('k') | webkit/renderer/compositor_bindings/web_scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698