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

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: 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..e02b7c93a496c371df260ac9e4421395fac85309 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),
@@ -60,17 +59,6 @@ void TopControlsManager::UpdateDrawPositions() {
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.
aruslan 2013/01/16 18:42:05 Do you need this TODO?
Ted C 2013/01/16 18:45:10 I guess that's more like a general TODO, but it mo
}
« 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