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

Unified Diff: cc/layers/layer_impl.h

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 | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index b09cb3f4970792d56829a9899dcd48d048450527..fd8755dcbc4b847813dca60878c721554be33338 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -360,12 +360,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// them from the other values.
void SetBounds(const gfx::Size& bounds);
- void SetTemporaryImplBounds(const gfx::SizeF& bounds);
gfx::Size bounds() const;
- gfx::Vector2dF BoundsDelta() const {
- return gfx::Vector2dF(temporary_impl_bounds_.width() - bounds_.width(),
- temporary_impl_bounds_.height() - bounds_.height());
- }
+ void SetBoundsDelta(const gfx::Vector2dF& bounds_delta);
+ gfx::Vector2dF bounds_delta() const { return bounds_delta_; }
void SetContentBounds(const gfx::Size& content_bounds);
gfx::Size content_bounds() const { return draw_properties_.content_bounds; }
@@ -605,7 +602,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// Properties synchronized from the associated Layer.
gfx::Point3F transform_origin_;
gfx::Size bounds_;
- gfx::SizeF temporary_impl_bounds_;
+ gfx::Vector2dF bounds_delta_;
gfx::Vector2d scroll_offset_;
ScrollOffsetDelegate* scroll_offset_delegate_;
LayerImpl* scroll_clip_layer_;
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698