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

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ScrollViewportRounding test Created 6 years, 4 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.cc ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index d9e1f64bbc8fd6ce3fa60dadd71964901d581579..478121b31bd17996478efa1968cd9df7da11c836 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -142,10 +142,7 @@ void SetFixedContainerSizeDelta(LayerImpl* scroll_layer,
DCHECK(scroll_layer->scrollable());
LayerImpl* container_layer = scroll_layer->scroll_clip_layer();
- gfx::Size container_size(container_layer->bounds());
- gfx::Size new_container_size(container_size.width() + delta.x(),
- container_size.height() + delta.y());
- container_layer->SetTemporaryImplBounds(new_container_size);
+ container_layer->SetBoundsDelta(delta);
}
} // namespace
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698