Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: Source/core/svg/SVGDocumentExtensions.h

Issue 908243002: Move rendering/svg/RenderSVGResource* to layout/svg. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
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 "wtf/Forward.h" 26 #include "wtf/Forward.h"
27 #include "wtf/HashMap.h" 27 #include "wtf/HashMap.h"
28 #include "wtf/HashSet.h" 28 #include "wtf/HashSet.h"
29 #include "wtf/text/AtomicStringHash.h" 29 #include "wtf/text/AtomicStringHash.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class Document; 33 class Document;
34 class RenderSVGResourceContainer; 34 class LayoutSVGResourceContainer;
35 class SubtreeLayoutScope; 35 class SubtreeLayoutScope;
36 class SVGResourcesCache; 36 class SVGResourcesCache;
37 class SVGSVGElement; 37 class SVGSVGElement;
38 class Element; 38 class Element;
39 39
40 class SVGDocumentExtensions : public NoBaseWillBeGarbageCollectedFinalized<SVGDo cumentExtensions> { 40 class SVGDocumentExtensions : public NoBaseWillBeGarbageCollectedFinalized<SVGDo cumentExtensions> {
41 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); WTF_MAKE_FAST_ALLOCATED_WILL_BE _REMOVED; 41 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); WTF_MAKE_FAST_ALLOCATED_WILL_BE _REMOVED;
42 public: 42 public:
43 typedef WillBeHeapHashSet<RawPtrWillBeMember<Element> > SVGPendingElements; 43 typedef WillBeHeapHashSet<RawPtrWillBeMember<Element> > SVGPendingElements;
44 explicit SVGDocumentExtensions(Document*); 44 explicit SVGDocumentExtensions(Document*);
45 ~SVGDocumentExtensions(); 45 ~SVGDocumentExtensions();
46 46
47 void addTimeContainer(SVGSVGElement*); 47 void addTimeContainer(SVGSVGElement*);
48 void removeTimeContainer(SVGSVGElement*); 48 void removeTimeContainer(SVGSVGElement*);
49 49
50 void addResource(const AtomicString& id, RenderSVGResourceContainer*); 50 void addResource(const AtomicString& id, LayoutSVGResourceContainer*);
51 void removeResource(const AtomicString& id); 51 void removeResource(const AtomicString& id);
52 RenderSVGResourceContainer* resourceById(const AtomicString& id) const; 52 LayoutSVGResourceContainer* resourceById(const AtomicString& id) const;
53 53
54 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime); 54 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime);
55 55
56 void startAnimations(); 56 void startAnimations();
57 void pauseAnimations(); 57 void pauseAnimations();
58 void dispatchSVGLoadEventToOutermostSVGElements(); 58 void dispatchSVGLoadEventToOutermostSVGElements();
59 59
60 void reportWarning(const String&); 60 void reportWarning(const String&);
61 void reportError(const String&); 61 void reportError(const String&);
62 62
(...skipping 10 matching lines...) Expand all
73 void updatePan(const FloatPoint& pos) const; 73 void updatePan(const FloatPoint& pos) const;
74 74
75 static SVGSVGElement* rootElement(const Document&); 75 static SVGSVGElement* rootElement(const Document&);
76 SVGSVGElement* rootElement() const; 76 SVGSVGElement* rootElement() const;
77 77
78 void trace(Visitor*); 78 void trace(Visitor*);
79 79
80 private: 80 private:
81 RawPtrWillBeMember<Document> m_document; 81 RawPtrWillBeMember<Document> m_document;
82 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> > m_timeContainers; // F or SVG 1.2 support this will need to be made more general. 82 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> > m_timeContainers; // F or SVG 1.2 support this will need to be made more general.
83 HashMap<AtomicString, RenderSVGResourceContainer*> m_resources; 83 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources;
84 WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements> > m_p endingResources; // Resources that are pending. 84 WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements> > m_p endingResources; // Resources that are pending.
85 WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements> > m_p endingResourcesForRemoval; // Resources that are pending and scheduled for remov al. 85 WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements> > m_p endingResourcesForRemoval; // Resources that are pending and scheduled for remov al.
86 OwnPtr<SVGResourcesCache> m_resourcesCache; 86 OwnPtr<SVGResourcesCache> m_resourcesCache;
87 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> > m_relativeLengthSVGRoo ts; // Root SVG elements with relative length descendants. 87 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> > m_relativeLengthSVGRoo ts; // Root SVG elements with relative length descendants.
88 FloatPoint m_translate; 88 FloatPoint m_translate;
89 #if ENABLE(ASSERT) 89 #if ENABLE(ASSERT)
90 bool m_inRelativeLengthSVGRootsInvalidation; 90 bool m_inRelativeLengthSVGRootsInvalidation;
91 #endif 91 #endif
92 92
93 public: 93 public:
(...skipping 14 matching lines...) Expand all
108 void markPendingResourcesForRemoval(const AtomicString&); 108 void markPendingResourcesForRemoval(const AtomicString&);
109 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); 109 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&);
110 110
111 private: 111 private:
112 PassOwnPtrWillBeRawPtr<SVGPendingElements> removePendingResourceForRemoval(c onst AtomicString&); 112 PassOwnPtrWillBeRawPtr<SVGPendingElements> removePendingResourceForRemoval(c onst AtomicString&);
113 }; 113 };
114 114
115 } 115 }
116 116
117 #endif 117 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698