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, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 SVGDocumentExtensions(Document*); | 47 SVGDocumentExtensions(Document*); |
48 ~SVGDocumentExtensions(); | 48 ~SVGDocumentExtensions(); |
49 | 49 |
50 void addTimeContainer(SVGSVGElement*); | 50 void addTimeContainer(SVGSVGElement*); |
51 void removeTimeContainer(SVGSVGElement*); | 51 void removeTimeContainer(SVGSVGElement*); |
52 | 52 |
53 void addResource(const AtomicString& id, RenderSVGResourceContainer*); | 53 void addResource(const AtomicString& id, RenderSVGResourceContainer*); |
54 void removeResource(const AtomicString& id); | 54 void removeResource(const AtomicString& id); |
55 RenderSVGResourceContainer* resourceById(const AtomicString& id) const; | 55 RenderSVGResourceContainer* resourceById(const AtomicString& id) const; |
56 | 56 |
57 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar
tTime); | |
58 | |
59 void startAnimations(); | 57 void startAnimations(); |
60 void pauseAnimations(); | 58 void pauseAnimations(); |
61 void unpauseAnimations(); | 59 void unpauseAnimations(); |
62 void dispatchSVGLoadEventToOutermostSVGElements(); | 60 void dispatchSVGLoadEventToOutermostSVGElements(); |
63 | 61 |
64 void reportWarning(const String&); | 62 void reportWarning(const String&); |
65 void reportError(const String&); | 63 void reportError(const String&); |
66 | 64 |
67 SVGResourcesCache* resourcesCache() const { return m_resourcesCache.get(); } | 65 SVGResourcesCache* resourcesCache() const { return m_resourcesCache.get(); } |
68 | 66 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // which are referenced by any object in the SVG document, but do NOT exist
yet. | 102 // which are referenced by any object in the SVG document, but do NOT exist
yet. |
105 // For instance, dynamically build gradients / patterns / clippers... | 103 // For instance, dynamically build gradients / patterns / clippers... |
106 void addPendingResource(const AtomicString& id, Element*); | 104 void addPendingResource(const AtomicString& id, Element*); |
107 bool hasPendingResource(const AtomicString& id) const; | 105 bool hasPendingResource(const AtomicString& id) const; |
108 bool isElementPendingResources(Element*) const; | 106 bool isElementPendingResources(Element*) const; |
109 bool isElementPendingResource(Element*, const AtomicString& id) const; | 107 bool isElementPendingResource(Element*, const AtomicString& id) const; |
110 void clearHasPendingResourcesIfPossible(Element*); | 108 void clearHasPendingResourcesIfPossible(Element*); |
111 void removeElementFromPendingResources(Element*); | 109 void removeElementFromPendingResources(Element*); |
112 PassOwnPtr<SVGPendingElements> removePendingResource(const AtomicString& id)
; | 110 PassOwnPtr<SVGPendingElements> removePendingResource(const AtomicString& id)
; |
113 | 111 |
114 void serviceAnimations(double monotonicAnimationStartTime); | |
115 | |
116 // The following two functions are used for scheduling a pending resource to
be removed. | 112 // The following two functions are used for scheduling a pending resource to
be removed. |
117 void markPendingResourcesForRemoval(const AtomicString&); | 113 void markPendingResourcesForRemoval(const AtomicString&); |
118 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); | 114 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); |
119 | 115 |
120 private: | 116 private: |
121 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS
tring&); | 117 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS
tring&); |
122 }; | 118 }; |
123 | 119 |
124 } | 120 } |
125 | 121 |
126 #endif | 122 #endif |
OLD | NEW |