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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 #if ENABLE(SVG_FONTS) | 103 #if ENABLE(SVG_FONTS) |
104 WillBeHeapHashSet<RawPtrWillBeMember<SVGFontFaceElement> > m_svgFontFaceElem ents; | 104 WillBeHeapHashSet<RawPtrWillBeMember<SVGFontFaceElement> > m_svgFontFaceElem ents; |
105 // SVGFontFaceElements that are pending and scheduled for removal. | 105 // SVGFontFaceElements that are pending and scheduled for removal. |
106 WillBeHeapHashSet<RefPtrWillBeMember<SVGFontFaceElement> > m_pendingSVGFontF aceElementsForRemoval; | 106 WillBeHeapHashSet<RefPtrWillBeMember<SVGFontFaceElement> > m_pendingSVGFontF aceElementsForRemoval; |
107 #endif | 107 #endif |
108 HashMap<AtomicString, RenderSVGResourceContainer*> m_resources; | 108 HashMap<AtomicString, RenderSVGResourceContainer*> m_resources; |
109 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResources; // Re sources that are pending. | 109 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResources; // Re sources that are pending. |
110 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResourcesForRemo val; // Resources that are pending and scheduled for removal. | 110 HashMap<AtomicString, OwnPtr<SVGPendingElements> > m_pendingResourcesForRemo val; // Resources that are pending and scheduled for removal. |
111 HashMap<SVGElement*, OwnPtr<HashSet<SVGElement*> > > m_elementDependencies; | 111 HashMap<SVGElement*, OwnPtr<HashSet<SVGElement*> > > m_elementDependencies; |
112 OwnPtr<SVGResourcesCache> m_resourcesCache; | 112 OwnPtr<SVGResourcesCache> m_resourcesCache; |
113 HashSet<SVGSVGElement*> m_relativeLengthSVGRoots; // Root SVG elements with relative length descendants. | 113 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGSVGElement> > m_relativeLengthSV GRoots; // Root SVG elements with relative length descendants. |
haraken
2014/06/09 09:37:55
Just help me understand: How is the weak processin
kouhei (in TOK)
2014/06/09 09:53:46
if (document is dead && <svg> is dead) the stale p
kouhei (in TOK)
2014/06/10 05:24:37
Discussed offline. Made this a strong ref to be ex
| |
114 FloatPoint m_translate; | 114 FloatPoint m_translate; |
115 #if !ASSERT_DISABLED | 115 #if !ASSERT_DISABLED |
116 bool m_inRelativeLengthSVGRootsInvalidation; | 116 bool m_inRelativeLengthSVGRootsInvalidation; |
117 #endif | 117 #endif |
118 | 118 |
119 public: | 119 public: |
120 // This HashMap contains a list of pending resources. Pending resources, are such | 120 // This HashMap contains a list of pending resources. Pending resources, are such |
121 // which are referenced by any object in the SVG document, but do NOT exist yet. | 121 // which are referenced by any object in the SVG document, but do NOT exist yet. |
122 // For instance, dynamically build gradients / patterns / clippers... | 122 // For instance, dynamically build gradients / patterns / clippers... |
123 void addPendingResource(const AtomicString& id, Element*); | 123 void addPendingResource(const AtomicString& id, Element*); |
(...skipping 10 matching lines...) Expand all Loading... | |
134 void markPendingResourcesForRemoval(const AtomicString&); | 134 void markPendingResourcesForRemoval(const AtomicString&); |
135 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); | 135 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); |
136 | 136 |
137 private: | 137 private: |
138 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&); | 138 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&); |
139 }; | 139 }; |
140 | 140 |
141 } | 141 } |
142 | 142 |
143 #endif | 143 #endif |
OLD | NEW |