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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rename hasActiveAnimationOnCompositor to hasActiveAnimationsOnCompositor Created 7 years, 1 month 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/dom/Element.cpp ('k') | Source/core/rendering/CompositedLayerMapping.cpp » ('j') | 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 m_delayedLayout = false; 2043 m_delayedLayout = false;
2044 } 2044 }
2045 2045
2046 void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime) 2046 void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime)
2047 { 2047 {
2048 for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNex t()) { 2048 for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNex t()) {
2049 frame->view()->serviceScrollAnimations(); 2049 frame->view()->serviceScrollAnimations();
2050 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) 2050 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
2051 frame->animation().serviceAnimations(); 2051 frame->animation().serviceAnimations();
2052 2052
2053 // FIXME: Animation events for newly started CSS Animations should be fi red
2054 // asynchronously after the style recalc that triggered them. For now we fire
2055 // them here (a frame late) so that they at least apply against the corr ect
2056 // animation state.
2057 frame->document()->dispatchAnimationEvents();
2053 frame->document()->serviceAnimations(monotonicAnimationStartTime); 2058 frame->document()->serviceAnimations(monotonicAnimationStartTime);
2054 frame->document()->dispatchAnimationEvents(); 2059 frame->document()->dispatchAnimationEvents();
2055 } 2060 }
2056 2061
2057 Vector<RefPtr<Document> > documents; 2062 Vector<RefPtr<Document> > documents;
2058 for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext ()) 2063 for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext ())
2059 documents.append(frame->document()); 2064 documents.append(frame->document());
2060 2065
2061 for (size_t i = 0; i < documents.size(); ++i) 2066 for (size_t i = 0; i < documents.size(); ++i)
2062 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime); 2067 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime);
(...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
3511 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3516 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3512 { 3517 {
3513 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3518 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3514 if (AXObjectCache* cache = axObjectCache()) { 3519 if (AXObjectCache* cache = axObjectCache()) {
3515 cache->remove(scrollbar); 3520 cache->remove(scrollbar);
3516 cache->handleScrollbarUpdate(this); 3521 cache->handleScrollbarUpdate(this);
3517 } 3522 }
3518 } 3523 }
3519 3524
3520 } // namespace WebCore 3525 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/rendering/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698