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

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: forgot to save the comments. sorry. :( 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
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_position_constraint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 34334b19ca84c6b7dfaa8b8beb7e344b3e5346e0..4d3b0ff13257b3915e78aacf8012d022585ae906 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),
@@ -341,7 +340,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_);
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_position_constraint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698