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

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

Issue 139273007: Web Animations: Remove legacy animations engine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
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 22 matching lines...) Expand all
33 #include "core/animation/DocumentAnimations.h" 33 #include "core/animation/DocumentAnimations.h"
34 #include "core/css/FontFaceSet.h" 34 #include "core/css/FontFaceSet.h"
35 #include "core/css/resolver/StyleResolver.h" 35 #include "core/css/resolver/StyleResolver.h"
36 #include "core/dom/DocumentMarkerController.h" 36 #include "core/dom/DocumentMarkerController.h"
37 #include "core/editing/FrameSelection.h" 37 #include "core/editing/FrameSelection.h"
38 #include "core/events/OverflowEvent.h" 38 #include "core/events/OverflowEvent.h"
39 #include "core/fetch/ResourceFetcher.h" 39 #include "core/fetch/ResourceFetcher.h"
40 #include "core/fetch/ResourceLoadPriorityOptimizer.h" 40 #include "core/fetch/ResourceLoadPriorityOptimizer.h"
41 #include "core/frame/Frame.h" 41 #include "core/frame/Frame.h"
42 #include "core/frame/Settings.h" 42 #include "core/frame/Settings.h"
43 #include "core/frame/animation/AnimationController.h"
44 #include "core/html/HTMLFrameElement.h" 43 #include "core/html/HTMLFrameElement.h"
45 #include "core/html/HTMLPlugInElement.h" 44 #include "core/html/HTMLPlugInElement.h"
46 #include "core/html/parser/TextResourceDecoder.h" 45 #include "core/html/parser/TextResourceDecoder.h"
47 #include "core/inspector/InspectorInstrumentation.h" 46 #include "core/inspector/InspectorInstrumentation.h"
48 #include "core/loader/FrameLoader.h" 47 #include "core/loader/FrameLoader.h"
49 #include "core/loader/FrameLoaderClient.h" 48 #include "core/loader/FrameLoaderClient.h"
50 #include "core/page/Chrome.h" 49 #include "core/page/Chrome.h"
51 #include "core/page/ChromeClient.h" 50 #include "core/page/ChromeClient.h"
52 #include "core/page/EventHandler.h" 51 #include "core/page/EventHandler.h"
53 #include "core/page/FocusController.h" 52 #include "core/page/FocusController.h"
(...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 return; 1871 return;
1873 1872
1874 m_layoutTimer.stop(); 1873 m_layoutTimer.stop();
1875 m_delayedLayout = false; 1874 m_delayedLayout = false;
1876 } 1875 }
1877 1876
1878 void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime) 1877 void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime)
1879 { 1878 {
1880 for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNex t()) { 1879 for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNex t()) {
1881 frame->view()->serviceScrollAnimations(); 1880 frame->view()->serviceScrollAnimations();
1882 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
1883 frame->animation().serviceAnimations();
1884
1885 DocumentAnimations::serviceOnAnimationFrame(*frame->document(), monotoni cAnimationStartTime); 1881 DocumentAnimations::serviceOnAnimationFrame(*frame->document(), monotoni cAnimationStartTime);
1886 } 1882 }
1887 1883
1888 Vector<RefPtr<Document> > documents; 1884 Vector<RefPtr<Document> > documents;
1889 for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext ()) 1885 for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext ())
1890 documents.append(frame->document()); 1886 documents.append(frame->document());
1891 1887
1892 for (size_t i = 0; i < documents.size(); ++i) 1888 for (size_t i = 0; i < documents.size(); ++i)
1893 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime); 1889 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime);
1894 } 1890 }
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3191 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3196 { 3192 {
3197 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3193 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3198 if (AXObjectCache* cache = axObjectCache()) { 3194 if (AXObjectCache* cache = axObjectCache()) {
3199 cache->remove(scrollbar); 3195 cache->remove(scrollbar);
3200 cache->handleScrollbarUpdate(this); 3196 cache->handleScrollbarUpdate(this);
3201 } 3197 }
3202 } 3198 }
3203 3199
3204 } // namespace WebCore 3200 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698