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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2918753002: Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar (Closed)
Patch Set: Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar Created 3 years, 7 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
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 fbe68d261bc35b36334a92b09436e9683b9ea6e4..9ea5afb7dd507c722ed9da8f89fb461461b1e962 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3741,8 +3741,6 @@ std::string LayerTreeHostImpl::LayerTreeAsJson() const {
void LayerTreeHostImpl::RegisterScrollbarAnimationController(
ElementId scroll_element_id,
float scrollbar_opacity) {
- if (settings().scrollbar_animator == LayerTreeSettings::NO_ANIMATOR)
aelias_OOO_until_Jul13 2017/06/02 22:02:23 Why is this removed?
chaopeng 2017/06/05 14:52:40 Moved to LayerTreeImpl::RegisterScrollbar.
- return;
if (ScrollbarAnimationControllerForElementId(scroll_element_id))
return;

Powered by Google App Engine
This is Rietveld 408576698