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

Side by Side Diff: Source/core/svg/SVGDocumentExtensions.h

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing remaining usages of -1 in the code. Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/page/PageAnimator.cpp ('k') | Source/core/svg/SVGDocumentExtensions.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) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGDocumentExtensions_h 21 #ifndef SVGDocumentExtensions_h
22 #define SVGDocumentExtensions_h 22 #define SVGDocumentExtensions_h
23 23
24 #include "platform/geometry/FloatPoint.h" 24 #include "platform/geometry/FloatPoint.h"
25 #include "platform/heap/Handle.h" 25 #include "platform/heap/Handle.h"
26 #include "public/platform/WebFrameTime.h"
26 #include "wtf/Forward.h" 27 #include "wtf/Forward.h"
27 #include "wtf/HashMap.h" 28 #include "wtf/HashMap.h"
28 #include "wtf/HashSet.h" 29 #include "wtf/HashSet.h"
29 #include "wtf/text/AtomicStringHash.h" 30 #include "wtf/text/AtomicStringHash.h"
30 31
31 namespace WebCore { 32 namespace WebCore {
32 33
33 class Document; 34 class Document;
34 class RenderSVGResourceContainer; 35 class RenderSVGResourceContainer;
35 class SubtreeLayoutScope; 36 class SubtreeLayoutScope;
(...skipping 12 matching lines...) Expand all
48 explicit SVGDocumentExtensions(Document*); 49 explicit SVGDocumentExtensions(Document*);
49 ~SVGDocumentExtensions(); 50 ~SVGDocumentExtensions();
50 51
51 void addTimeContainer(SVGSVGElement*); 52 void addTimeContainer(SVGSVGElement*);
52 void removeTimeContainer(SVGSVGElement*); 53 void removeTimeContainer(SVGSVGElement*);
53 54
54 void addResource(const AtomicString& id, RenderSVGResourceContainer*); 55 void addResource(const AtomicString& id, RenderSVGResourceContainer*);
55 void removeResource(const AtomicString& id); 56 void removeResource(const AtomicString& id);
56 RenderSVGResourceContainer* resourceById(const AtomicString& id) const; 57 RenderSVGResourceContainer* resourceById(const AtomicString& id) const;
57 58
58 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime); 59 static void serviceOnAnimationFrame(Document&, blink::WebFrameTime);
59 60
60 void startAnimations(); 61 void startAnimations();
61 void pauseAnimations(); 62 void pauseAnimations();
62 void dispatchSVGLoadEventToOutermostSVGElements(); 63 void dispatchSVGLoadEventToOutermostSVGElements();
63 64
64 void reportWarning(const String&); 65 void reportWarning(const String&);
65 void reportError(const String&); 66 void reportError(const String&);
66 67
67 SVGResourcesCache* resourcesCache() const { return m_resourcesCache.get(); } 68 SVGResourcesCache* resourcesCache() const { return m_resourcesCache.get(); }
68 69
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void markPendingResourcesForRemoval(const AtomicString&); 127 void markPendingResourcesForRemoval(const AtomicString&);
127 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); 128 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&);
128 129
129 private: 130 private:
130 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&); 131 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&);
131 }; 132 };
132 133
133 } 134 }
134 135
135 #endif 136 #endif
OLDNEW
« no previous file with comments | « Source/core/page/PageAnimator.cpp ('k') | Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698