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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 14 matching lines...) Expand all
25 #include "platform/transforms/AffineTransform.h" 25 #include "platform/transforms/AffineTransform.h"
26 #include "wtf/HashSet.h" 26 #include "wtf/HashSet.h"
27 #include "wtf/Noncopyable.h" 27 #include "wtf/Noncopyable.h"
28 #include "wtf/StdLibExtras.h" 28 #include "wtf/StdLibExtras.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class CSSCursorImageValue; 32 class CSSCursorImageValue;
33 class SVGCursorElement; 33 class SVGCursorElement;
34 34
35 class SVGElementRareData : public NoBaseWillBeGarbageCollectedFinalized<SVGEleme ntRareData> { 35 class SVGElementRareData : public GarbageCollectedFinalized<SVGElementRareData> {
36 WTF_MAKE_NONCOPYABLE(SVGElementRareData); USING_FAST_MALLOC_WILL_BE_REMOVED( SVGElementRareData); 36 WTF_MAKE_NONCOPYABLE(SVGElementRareData);
37 public: 37 public:
38 SVGElementRareData(SVGElement* owner) 38 SVGElementRareData(SVGElement* owner)
39 #if ENABLE(OILPAN) 39 #if ENABLE(OILPAN)
40 : m_owner(owner) 40 : m_owner(owner)
41 , m_cursorElement(nullptr) 41 , m_cursorElement(nullptr)
42 #else 42 #else
43 : m_cursorElement(nullptr) 43 : m_cursorElement(nullptr)
44 #endif 44 #endif
45 , m_cursorImageValue(nullptr) 45 , m_cursorImageValue(nullptr)
46 , m_correspondingElement(nullptr) 46 , m_correspondingElement(nullptr)
47 , m_instancesUpdatesBlocked(false) 47 , m_instancesUpdatesBlocked(false)
48 , m_useOverrideComputedStyle(false) 48 , m_useOverrideComputedStyle(false)
49 , m_needsOverrideComputedStyleUpdate(false) 49 , m_needsOverrideComputedStyleUpdate(false)
50 , m_webAnimatedAttributesDirty(false) 50 , m_webAnimatedAttributesDirty(false)
51 { 51 {
52 } 52 }
53 53
54 SVGElementSet& outgoingReferences() { return m_outgoingReferences; } 54 SVGElementSet& outgoingReferences() { return m_outgoingReferences; }
55 const SVGElementSet& outgoingReferences() const { return m_outgoingReference s; } 55 const SVGElementSet& outgoingReferences() const { return m_outgoingReference s; }
56 SVGElementSet& incomingReferences() { return m_incomingReferences; } 56 SVGElementSet& incomingReferences() { return m_incomingReferences; }
57 const SVGElementSet& incomingReferences() const { return m_incomingReference s; } 57 const SVGElementSet& incomingReferences() const { return m_incomingReference s; }
58 58
59 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& elementInstances() { return m_elementInstances; } 59 HeapHashSet<WeakMember<SVGElement>>& elementInstances() { return m_elementIn stances; }
60 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& elementInstance s() const { return m_elementInstances; } 60 const HeapHashSet<WeakMember<SVGElement>>& elementInstances() const { return m_elementInstances; }
61 61
62 bool instanceUpdatesBlocked() const { return m_instancesUpdatesBlocked; } 62 bool instanceUpdatesBlocked() const { return m_instancesUpdatesBlocked; }
63 void setInstanceUpdatesBlocked(bool value) { m_instancesUpdatesBlocked = val ue; } 63 void setInstanceUpdatesBlocked(bool value) { m_instancesUpdatesBlocked = val ue; }
64 64
65 SVGCursorElement* cursorElement() const { return m_cursorElement; } 65 SVGCursorElement* cursorElement() const { return m_cursorElement; }
66 void setCursorElement(SVGCursorElement* cursorElement) { m_cursorElement = c ursorElement; } 66 void setCursorElement(SVGCursorElement* cursorElement) { m_cursorElement = c ursorElement; }
67 67
68 SVGElement* correspondingElement() const { return m_correspondingElement.get (); } 68 SVGElement* correspondingElement() const { return m_correspondingElement.get (); }
69 void setCorrespondingElement(SVGElement* correspondingElement) { m_correspon dingElement = correspondingElement; } 69 void setCorrespondingElement(SVGElement* correspondingElement) { m_correspon dingElement = correspondingElement; }
70 70
(...skipping 18 matching lines...) Expand all
89 89
90 DECLARE_TRACE(); 90 DECLARE_TRACE();
91 void processWeakMembers(Visitor*); 91 void processWeakMembers(Visitor*);
92 92
93 private: 93 private:
94 #if ENABLE(OILPAN) 94 #if ENABLE(OILPAN)
95 Member<SVGElement> m_owner; 95 Member<SVGElement> m_owner;
96 #endif 96 #endif
97 SVGElementSet m_outgoingReferences; 97 SVGElementSet m_outgoingReferences;
98 SVGElementSet m_incomingReferences; 98 SVGElementSet m_incomingReferences;
99 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>> m_elementInstances; 99 HeapHashSet<WeakMember<SVGElement>> m_elementInstances;
100 RawPtrWillBeWeakMember<SVGCursorElement> m_cursorElement; 100 WeakMember<SVGCursorElement> m_cursorElement;
101 RawPtrWillBeWeakMember<CSSCursorImageValue> m_cursorImageValue; 101 WeakMember<CSSCursorImageValue> m_cursorImageValue;
102 RefPtrWillBeMember<SVGElement> m_correspondingElement; 102 Member<SVGElement> m_correspondingElement;
103 bool m_instancesUpdatesBlocked : 1; 103 bool m_instancesUpdatesBlocked : 1;
104 bool m_useOverrideComputedStyle : 1; 104 bool m_useOverrideComputedStyle : 1;
105 bool m_needsOverrideComputedStyleUpdate : 1; 105 bool m_needsOverrideComputedStyleUpdate : 1;
106 bool m_webAnimatedAttributesDirty : 1; 106 bool m_webAnimatedAttributesDirty : 1;
107 HashSet<const QualifiedName*> m_webAnimatedAttributes; 107 HashSet<const QualifiedName*> m_webAnimatedAttributes;
108 RefPtrWillBeMember<MutableStylePropertySet> m_animatedSMILStyleProperties; 108 Member<MutableStylePropertySet> m_animatedSMILStyleProperties;
109 RefPtr<ComputedStyle> m_overrideComputedStyle; 109 RefPtr<ComputedStyle> m_overrideComputedStyle;
110 // Used by <animateMotion> 110 // Used by <animateMotion>
111 AffineTransform m_animateMotionTransform; 111 AffineTransform m_animateMotionTransform;
112 }; 112 };
113 113
114 } // namespace blink 114 } // namespace blink
115 115
116 #endif 116 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGEllipseElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698