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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 14715002: Tweaks to top controls behavior for fullscreen API support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/input/top_controls_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 69ecc85f91005e2192f5ccb1ba4de2069503cfc9..470692ede1e56b86a6281597cb69e5fea2ae3c19 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1864,6 +1864,8 @@ void LayerTreeHostImpl::AnimateTopControls(base::TimeTicks time) {
return;
gfx::Vector2dF scroll = top_controls_manager_->Animate(time);
UpdateMaxScrollOffset();
+ if (RootScrollLayer()->TotalScrollOffset().y() == 0.f)
+ return;
RootScrollLayer()->ScrollBy(gfx::ScaleVector2d(
scroll, 1.f / active_tree_->total_page_scale_factor()));
}
« no previous file with comments | « cc/input/top_controls_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698