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

Unified Diff: cc/layers/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: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 36c31c0d324dd708ae9bfeb783152077ba2b609b..0f9191573e0fae48c53f54e9021fd338f4efe4de 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -50,7 +50,6 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
draws_content_(false),
force_render_surface_(false),
is_container_for_fixed_position_layers_(false),
- fixed_to_container_layer_(false),
draw_depth_(0.f),
#ifndef NDEBUG
between_will_draw_and_did_draw_(false),
@@ -337,7 +336,8 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
layer->SetPosition(position_);
layer->SetIsContainerForFixedPositionLayers(
is_container_for_fixed_position_layers_);
- layer->SetFixedToContainerLayer(fixed_to_container_layer_);
+ layer->SetFixedContainerSizeDelta(fixed_container_size_delta_);
+ layer->SetPositionConstraint(position_constraint_);
layer->SetPreserves3d(preserves_3d());
layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_);
layer->SetSublayerTransform(sublayer_transform_);

Powered by Google App Engine
This is Rietveld 408576698