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

Unified Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 12552004: Support bottom-right anchored fixed-position elements during a pinch gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 7 years, 9 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/compositor_bindings/web_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_layer_impl.cc b/webkit/compositor_bindings/web_layer_impl.cc
index 7adb2f10ec8e02181ef5c78e7af5ca3352cd6486..f68d7c5f297fdcd438511aa479119292ee58f0e2 100644
--- a/webkit/compositor_bindings/web_layer_impl.cc
+++ b/webkit/compositor_bindings/web_layer_impl.cc
@@ -10,6 +10,7 @@
#include "cc/layers/layer.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebLayerPositionConstraint.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
#include "third_party/skia/include/utils/SkMatrix44.h"
#include "webkit/compositor_bindings/web_animation_impl.h"
@@ -311,12 +312,13 @@ bool WebLayerImpl::isContainerForFixedPositionLayers() const {
return layer_->is_container_for_fixed_position_layers();
}
-void WebLayerImpl::setFixedToContainerLayer(bool enable) {
- layer_->SetFixedToContainerLayer(enable);
+void WebLayerImpl::setPositionConstraint(
+ const WebKit::WebLayerPositionConstraint& constraint) {
+ layer_->SetPositionConstraint(constraint);
}
-bool WebLayerImpl::fixedToContainerLayer() const {
- return layer_->fixed_to_container_layer();
+WebKit::WebLayerPositionConstraint WebLayerImpl::positionConstraint() const {
+ return layer_->position_constraint();
}
void WebLayerImpl::setScrollClient(
« cc/layers/layer_position_constraint.h ('K') | « webkit/compositor_bindings/web_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698