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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2631853002: Give OOPIF FrameViews their own scroll animation timelines and hosts (Closed)
Patch Set: Fixes from bokan comments Created 3 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
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index d56224c2612f383813407fadac64037f003bbac2..1cdb25ed3a287efb4d2e0969c3fb36b72f033199 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1882,18 +1882,12 @@ void PaintLayerScrollableArea::resetRebuildScrollbarLayerFlags() {
CompositorAnimationHost* PaintLayerScrollableArea::compositorAnimationHost()
const {
- if (ScrollingCoordinator* coordinator = getScrollingCoordinator())
- return coordinator->compositorAnimationHost();
-
- return nullptr;
+ return m_layer.layoutObject()->frameView()->compositorAnimationHost();
}
CompositorAnimationTimeline*
PaintLayerScrollableArea::compositorAnimationTimeline() const {
- if (ScrollingCoordinator* coordinator = getScrollingCoordinator())
- return coordinator->compositorAnimationTimeline();
-
- return nullptr;
+ return m_layer.layoutObject()->frameView()->compositorAnimationTimeline();
}
PaintLayerScrollableArea*

Powered by Google App Engine
This is Rietveld 408576698