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

Unified Diff: cc/top_controls_manager.cc

Issue 11967021: Remove top controls layer from cc/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove invalid TODO Created 7 years, 11 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/top_controls_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/top_controls_manager.cc
diff --git a/cc/top_controls_manager.cc b/cc/top_controls_manager.cc
index cdb59e90e7c64cf61c31b9f1b7152b9f3cfedcf3..fcd7d8926f6ce7972d5d591baf2fb50469a5a7c4 100644
--- a/cc/top_controls_manager.cc
+++ b/cc/top_controls_manager.cc
@@ -32,7 +32,6 @@ scoped_ptr<TopControlsManager> TopControlsManager::Create(
TopControlsManager::TopControlsManager(TopControlsManagerClient* client,
float top_controls_height)
: client_(client),
- content_layer_id_(0),
is_overlay_mode_(false),
top_controls_height_(top_controls_height),
controls_top_offset_(0),
@@ -59,19 +58,6 @@ void TopControlsManager::UpdateDrawPositions() {
StartAnimationIfNecessary();
previous_root_scroll_offset_ = RootScrollLayerTotalScrollY();
}
-
- float offset_top = is_overlay_mode_ ? 0 : content_top_offset_;
-
- LayerImpl* content_layer =
- client_->activeTree()->FindActiveTreeLayerById(content_layer_id_);
- DCHECK(content_layer);
- if (content_layer) {
- gfx::Transform transform;
- transform.Translate(0, offset_top);
- content_layer->setTransform(transform);
- }
-
- // TODO(tedchoc): Adjust fixed position layers as well.
}
void TopControlsManager::ScrollBegin() {
« no previous file with comments | « cc/top_controls_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698