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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 WillBeHeapHashSet<RefPtrWillBeMember<SVGFontFaceElement> > m_pendingSVGFontF
aceElementsForRemoval; | 108 WillBeHeapHashSet<RefPtrWillBeMember<SVGFontFaceElement> > m_pendingSVGFontF
aceElementsForRemoval; |
109 #endif | 109 #endif |
110 HashMap<AtomicString, RenderSVGResourceContainer*> m_resources; | 110 HashMap<AtomicString, RenderSVGResourceContainer*> m_resources; |
111 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResources; // Re
sources that are pending. | 111 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResources; // Re
sources that are pending. |
112 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResourcesForRemo
val; // Resources that are pending and scheduled for removal. | 112 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResourcesForRemo
val; // Resources that are pending and scheduled for removal. |
113 typedef WillBeHeapHashMap<RawPtrWillBeMember<SVGElement>, OwnPtrWillBeMember
<SVGElementSet> > ElementDependenciesMap; | 113 typedef WillBeHeapHashMap<RawPtrWillBeMember<SVGElement>, OwnPtrWillBeMember
<SVGElementSet> > ElementDependenciesMap; |
114 ElementDependenciesMap m_elementDependencies; | 114 ElementDependenciesMap m_elementDependencies; |
115 OwnPtr<SVGResourcesCache> m_resourcesCache; | 115 OwnPtr<SVGResourcesCache> m_resourcesCache; |
116 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> > m_relativeLengthSVGRoo
ts; // Root SVG elements with relative length descendants. | 116 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> > m_relativeLengthSVGRoo
ts; // Root SVG elements with relative length descendants. |
117 FloatPoint m_translate; | 117 FloatPoint m_translate; |
118 #if !ASSERT_DISABLED | 118 #if ASSERT_ENABLED |
119 bool m_inRelativeLengthSVGRootsInvalidation; | 119 bool m_inRelativeLengthSVGRootsInvalidation; |
120 #endif | 120 #endif |
121 | 121 |
122 public: | 122 public: |
123 // This HashMap contains a list of pending resources. Pending resources, are
such | 123 // This HashMap contains a list of pending resources. Pending resources, are
such |
124 // which are referenced by any object in the SVG document, but do NOT exist
yet. | 124 // which are referenced by any object in the SVG document, but do NOT exist
yet. |
125 // For instance, dynamically build gradients / patterns / clippers... | 125 // For instance, dynamically build gradients / patterns / clippers... |
126 void addPendingResource(const AtomicString& id, Element*); | 126 void addPendingResource(const AtomicString& id, Element*); |
127 bool hasPendingResource(const AtomicString& id) const; | 127 bool hasPendingResource(const AtomicString& id) const; |
128 bool isElementPendingResources(Element*) const; | 128 bool isElementPendingResources(Element*) const; |
129 bool isElementPendingResource(Element*, const AtomicString& id) const; | 129 bool isElementPendingResource(Element*, const AtomicString& id) const; |
130 void clearHasPendingResourcesIfPossible(Element*); | 130 void clearHasPendingResourcesIfPossible(Element*); |
131 void removeElementFromPendingResources(Element*); | 131 void removeElementFromPendingResources(Element*); |
132 PassOwnPtr<SVGPendingElements> removePendingResource(const AtomicString& id)
; | 132 PassOwnPtr<SVGPendingElements> removePendingResource(const AtomicString& id)
; |
133 | 133 |
134 void serviceAnimations(double monotonicAnimationStartTime); | 134 void serviceAnimations(double monotonicAnimationStartTime); |
135 | 135 |
136 // The following two functions are used for scheduling a pending resource to
be removed. | 136 // The following two functions are used for scheduling a pending resource to
be removed. |
137 void markPendingResourcesForRemoval(const AtomicString&); | 137 void markPendingResourcesForRemoval(const AtomicString&); |
138 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); | 138 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); |
139 | 139 |
140 private: | 140 private: |
141 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS
tring&); | 141 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS
tring&); |
142 }; | 142 }; |
143 | 143 |
144 } | 144 } |
145 | 145 |
146 #endif | 146 #endif |
OLD | NEW |