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

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

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Add nullcheck for m_layerTreeView in WebViewImpl Created 4 years 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 a6adbe381105a5087e2a60c4f45c7312390da0fa..2d04c1d25133c72b0d08532c0b9c26db2c4b5d96 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1813,6 +1813,18 @@ void PaintLayerScrollableArea::resetRebuildScrollbarLayerFlags() {
m_rebuildVerticalScrollbarLayer = false;
}
+CompositorAnimationHost* PaintLayerScrollableArea::compositorAnimationHost()
+ const {
+ if (LocalFrame* frame = box().frame()) {
jbroman 2016/12/13 16:38:32 OK because it already exists below, but ordinarily
loyso (OOO) 2016/12/19 04:03:12 Done.
+ if (Page* page = frame->page()) {
+ return page->scrollingCoordinator()
+ ? page->scrollingCoordinator()->compositorAnimationHost()
+ : nullptr;
+ }
+ }
+ return nullptr;
+}
+
CompositorAnimationTimeline*
PaintLayerScrollableArea::compositorAnimationTimeline() const {
if (LocalFrame* frame = box().frame()) {

Powered by Google App Engine
This is Rietveld 408576698