OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |