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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 1246363002: Avoid updating compositor animations in hitTest path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix comments#7 Created 5 years, 5 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: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index d636f5a92193628c3566f76d3d61a829585ff524..58f195abcfb892acb238c5a6849341d4061be5f4 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -29,6 +29,7 @@
#include "core/HTMLNames.h"
#include "core/MediaTypeNames.h"
+#include "core/animation/DocumentAnimations.h"
#include "core/css/FontFaceSet.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/AXObjectCache.h"
@@ -2498,6 +2499,15 @@ void FrameView::updatePostLifecycleData()
if (view->compositor()->inCompositingMode() && m_frame->isLocalRoot())
scrollingCoordinator()->updateAfterCompositingChangeIfNeeded();
+ DocumentAnimations::updateCompositorAnimations(view->document());
+
+ view->frameView()->scrollableArea()->updateCompositorScrollAnimations();
+ if (const FrameView::ScrollableAreaSet* animatingScrollableAreas = view->frameView()->animatingScrollableAreas()) {
+ for (ScrollableArea* scrollableArea : *animatingScrollableAreas)
+ scrollableArea->updateCompositorScrollAnimations();
+ }
+
+
updateCompositedSelectionIfNeeded();
if (RuntimeEnabledFeatures::frameTimingSupportEnabled())
updateFrameTimingRequestsIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698