| 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 14 matching lines...) Expand all Loading... |
| 25 #include "platform/geometry/FloatPoint.h" | 25 #include "platform/geometry/FloatPoint.h" |
| 26 #include "platform/heap/Handle.h" | 26 #include "platform/heap/Handle.h" |
| 27 #include "wtf/Forward.h" | 27 #include "wtf/Forward.h" |
| 28 #include "wtf/HashMap.h" | 28 #include "wtf/HashMap.h" |
| 29 #include "wtf/HashSet.h" | 29 #include "wtf/HashSet.h" |
| 30 #include "wtf/text/AtomicStringHash.h" | 30 #include "wtf/text/AtomicStringHash.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class Document; | 34 class Document; |
| 35 class Element; |
| 35 class LayoutSVGResourceContainer; | 36 class LayoutSVGResourceContainer; |
| 37 class SVGElement; |
| 38 class SVGSVGElement; |
| 36 class SubtreeLayoutScope; | 39 class SubtreeLayoutScope; |
| 37 class SVGSVGElement; | |
| 38 class SVGElement; | |
| 39 class Element; | |
| 40 | 40 |
| 41 class SVGDocumentExtensions | 41 class SVGDocumentExtensions |
| 42 : public GarbageCollectedFinalized<SVGDocumentExtensions> { | 42 : public GarbageCollectedFinalized<SVGDocumentExtensions> { |
| 43 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); | 43 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); |
| 44 | 44 |
| 45 public: | 45 public: |
| 46 typedef HeapHashSet<Member<Element>> SVGPendingElements; | 46 typedef HeapHashSet<Member<Element>> SVGPendingElements; |
| 47 explicit SVGDocumentExtensions(Document*); | 47 explicit SVGDocumentExtensions(Document*); |
| 48 ~SVGDocumentExtensions(); | 48 ~SVGDocumentExtensions(); |
| 49 | 49 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 78 void startPan(const FloatPoint& start); | 78 void startPan(const FloatPoint& start); |
| 79 void updatePan(const FloatPoint& pos) const; | 79 void updatePan(const FloatPoint& pos) const; |
| 80 | 80 |
| 81 static SVGSVGElement* rootElement(const Document&); | 81 static SVGSVGElement* rootElement(const Document&); |
| 82 SVGSVGElement* rootElement() const; | 82 SVGSVGElement* rootElement() const; |
| 83 | 83 |
| 84 DECLARE_TRACE(); | 84 DECLARE_TRACE(); |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 Member<Document> m_document; | 87 Member<Document> m_document; |
| 88 // For SVG 1.2 support this will need to be made more general. | |
| 89 HeapHashSet<Member<SVGSVGElement>> m_timeContainers; | 88 HeapHashSet<Member<SVGSVGElement>> m_timeContainers; |
| 90 using SVGElementSet = HeapHashSet<Member<SVGElement>>; | 89 using SVGElementSet = HeapHashSet<Member<SVGElement>>; |
| 91 SVGElementSet m_webAnimationsPendingSVGElements; | 90 SVGElementSet m_webAnimationsPendingSVGElements; |
| 92 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources; | 91 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources; |
| 93 // Resources that are pending. | 92 // Resources that are pending. |
| 94 HeapHashMap<AtomicString, Member<SVGPendingElements>> m_pendingResources; | 93 HeapHashMap<AtomicString, Member<SVGPendingElements>> m_pendingResources; |
| 95 // Resources that are pending and scheduled for removal. | 94 // Resources that are pending and scheduled for removal. |
| 96 HeapHashMap<AtomicString, Member<SVGPendingElements>> | 95 HeapHashMap<AtomicString, Member<SVGPendingElements>> |
| 97 m_pendingResourcesForRemoval; | 96 m_pendingResourcesForRemoval; |
| 98 SVGResourcesCache m_resourcesCache; | 97 SVGResourcesCache m_resourcesCache; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 123 void markPendingResourcesForRemoval(const AtomicString&); | 122 void markPendingResourcesForRemoval(const AtomicString&); |
| 124 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); | 123 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 SVGPendingElements* removePendingResourceForRemoval(const AtomicString&); | 126 SVGPendingElements* removePendingResourceForRemoval(const AtomicString&); |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace blink | 129 } // namespace blink |
| 131 | 130 |
| 132 #endif | 131 #endif |
| OLD | NEW |