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

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

Issue 202533003: Don't schedule an animation during compositing dirty-bit setting unless needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add null check. Created 6 years, 9 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 | « no previous file | Source/core/page/PageAnimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 73ffa854dab6d72fa68181f37a886b4eaa8ca77a..c3390d45b49ed7467b390fda9fa828c4e0c5a3ee 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -2780,8 +2780,15 @@ void FrameView::updateLayoutAndStyleForPainting()
RefPtr<FrameView> protector(this);
updateLayoutAndStyleIfNeededRecursive();
- if (RenderView* view = renderView())
+ if (RenderView* view = renderView()) {
+ ASSERT(!view->needsLayout());
view->compositor()->updateCompositingLayers();
+
+ // FIXME: we should not have any dirty bits left at this point. Unfortunately, this is not yet the case because
+ // the code in updateCompositingLayers sometimes creates new dirty bits when updating direct compositing reasons.
+ // See crbug.com/354100.
+ view->compositor()->scheduleAnimationIfNeeded();
+ }
}
void FrameView::updateLayoutAndStyleIfNeededRecursive()
« no previous file with comments | « no previous file | Source/core/page/PageAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698