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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp

Issue 2339583002: cc: Move OnScrollOffsetAnimated to scroll tree (Closed)
Patch Set: Created 4 years, 3 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/trees/property_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
index 4e5c4ce771a9511de2c0de6c2f6e03e4312b698d..f0d2d3c469fc56613ba1df88cfa2ae9573f152fa 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
@@ -56,7 +56,7 @@ void CompositorMutableState::setScrollLeft(double scrollLeft)
gfx::ScrollOffset offset = m_scrollLayer->CurrentScrollOffset();
offset.set_x(scrollLeft);
- m_scrollLayer->OnScrollOffsetAnimated(offset);
+ m_scrollLayer->layer_tree_impl()->property_trees()->scroll_tree.OnScrollOffsetAnimated(m_scrollLayer->id(), m_scrollLayer->transform_tree_index(), m_scrollLayer->scroll_tree_index(), offset, m_scrollLayer->layer_tree_impl());
m_mutation->setScrollLeft(scrollLeft);
}
@@ -71,7 +71,7 @@ void CompositorMutableState::setScrollTop(double scrollTop)
return;
gfx::ScrollOffset offset = m_scrollLayer->CurrentScrollOffset();
offset.set_y(scrollTop);
- m_scrollLayer->OnScrollOffsetAnimated(offset);
+ m_scrollLayer->layer_tree_impl()->property_trees()->scroll_tree.OnScrollOffsetAnimated(m_scrollLayer->id(), m_scrollLayer->transform_tree_index(), m_scrollLayer->scroll_tree_index(), offset, m_scrollLayer->layer_tree_impl());
m_mutation->setScrollTop(scrollTop);
}
« no previous file with comments | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698