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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 177203009: Web Animations CSS: Dispatch all animation events in the animation frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mark flaky virtual/threaded tests. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/PageAnimator.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 if (m_renderView->needsLayout()) 401 if (m_renderView->needsLayout())
402 return; 402 return;
403 403
404 lifecycle().advanceTo(DocumentLifecycle::InCompositingUpdate); 404 lifecycle().advanceTo(DocumentLifecycle::InCompositingUpdate);
405 405
406 updateCompositingLayersInternal(); 406 updateCompositingLayersInternal();
407 407
408 lifecycle().advanceTo(DocumentLifecycle::CompositingClean); 408 lifecycle().advanceTo(DocumentLifecycle::CompositingClean);
409 409
410 DocumentAnimations::startPendingAnimations(m_renderView->document()); 410 DocumentAnimations::startPendingAnimations(m_renderView->document());
411 DocumentAnimations::dispatchAnimationEventsAsync(m_renderView->document());
412 ASSERT(m_renderView->document().lifecycle().state() == DocumentLifecycle::Co mpositingClean); 411 ASSERT(m_renderView->document().lifecycle().state() == DocumentLifecycle::Co mpositingClean);
413 } 412 }
414 413
415 void RenderLayerCompositor::updateCompositingLayersInternal() 414 void RenderLayerCompositor::updateCompositingLayersInternal()
416 { 415 {
417 if (isMainFrame() && m_renderView->frameView()) 416 if (isMainFrame() && m_renderView->frameView())
418 finishCompositingUpdateForFrameTree(&m_renderView->frameView()->frame()) ; 417 finishCompositingUpdateForFrameTree(&m_renderView->frameView()->frame()) ;
419 418
420 if (m_forceCompositingMode && !m_compositing) 419 if (m_forceCompositingMode && !m_compositing)
421 enableCompositingMode(true); 420 enableCompositingMode(true);
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2417 } else if (graphicsLayer == m_scrollLayer.get()) { 2416 } else if (graphicsLayer == m_scrollLayer.get()) {
2418 name = "LocalFrame Scrolling Layer"; 2417 name = "LocalFrame Scrolling Layer";
2419 } else { 2418 } else {
2420 ASSERT_NOT_REACHED(); 2419 ASSERT_NOT_REACHED();
2421 } 2420 }
2422 2421
2423 return name; 2422 return name;
2424 } 2423 }
2425 2424
2426 } // namespace WebCore 2425 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/PageAnimator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698