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

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

Issue 304453002: Prepare SMILTimeContainer for oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix_compile2 Created 6 years, 7 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
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 25 matching lines...) Expand all
36 WTF_MAKE_NONCOPYABLE(SVGElementRareData); WTF_MAKE_FAST_ALLOCATED_WILL_BE_RE MOVED; 36 WTF_MAKE_NONCOPYABLE(SVGElementRareData); WTF_MAKE_FAST_ALLOCATED_WILL_BE_RE MOVED;
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(0) 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 { 50 {
51 } 51 }
52 52
53 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& elementInstances() { return m_elementInstances; } 53 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& elementInstances() { return m_elementInstances; }
54 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& elementInstanc es() const { return m_elementInstances; } 54 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& elementInstanc es() const { return m_elementInstances; }
55 55
56 bool instanceUpdatesBlocked() const { return m_instancesUpdatesBlocked; } 56 bool instanceUpdatesBlocked() const { return m_instancesUpdatesBlocked; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 bool useOverrideComputedStyle() const { return m_useOverrideComputedStyle; } 90 bool useOverrideComputedStyle() const { return m_useOverrideComputedStyle; }
91 void setUseOverrideComputedStyle(bool value) { m_useOverrideComputedStyle = value; } 91 void setUseOverrideComputedStyle(bool value) { m_useOverrideComputedStyle = value; }
92 void setNeedsOverrideComputedStyleUpdate() { m_needsOverrideComputedStyleUpd ate = true; } 92 void setNeedsOverrideComputedStyleUpdate() { m_needsOverrideComputedStyleUpd ate = true; }
93 93
94 void trace(Visitor* visitor) 94 void trace(Visitor* visitor)
95 { 95 {
96 #if ENABLE(OILPAN) 96 #if ENABLE(OILPAN)
97 visitor->trace(m_animatedSMILStyleProperties); 97 visitor->trace(m_animatedSMILStyleProperties);
98 visitor->trace(m_elementInstances); 98 visitor->trace(m_elementInstances);
99 visitor->trace(m_correspondingElement);
99 visitor->trace(m_owner); 100 visitor->trace(m_owner);
100 visitor->registerWeakMembers<SVGElementRareData, &SVGElementRareData::pr ocessWeakMembers>(this); 101 visitor->registerWeakMembers<SVGElementRareData, &SVGElementRareData::pr ocessWeakMembers>(this);
101 #endif 102 #endif
102 } 103 }
103 104
104 void processWeakMembers(Visitor* visitor) 105 void processWeakMembers(Visitor* visitor)
105 { 106 {
106 #if ENABLE(OILPAN) 107 #if ENABLE(OILPAN)
107 ASSERT(m_owner); 108 ASSERT(m_owner);
108 if (!visitor->isAlive(m_cursorElement)) 109 if (!visitor->isAlive(m_cursorElement))
(...skipping 13 matching lines...) Expand all
122 #endif 123 #endif
123 } 124 }
124 125
125 private: 126 private:
126 #if ENABLE(OILPAN) 127 #if ENABLE(OILPAN)
127 Member<SVGElement> m_owner; 128 Member<SVGElement> m_owner;
128 #endif 129 #endif
129 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementInstances; 130 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementInstances;
130 RawPtrWillBeWeakMember<SVGCursorElement> m_cursorElement; 131 RawPtrWillBeWeakMember<SVGCursorElement> m_cursorElement;
131 RawPtrWillBeWeakMember<CSSCursorImageValue> m_cursorImageValue; 132 RawPtrWillBeWeakMember<CSSCursorImageValue> m_cursorImageValue;
132 SVGElement* m_correspondingElement; 133 RawPtrWillBeMember<SVGElement> m_correspondingElement;
133 bool m_instancesUpdatesBlocked : 1; 134 bool m_instancesUpdatesBlocked : 1;
134 bool m_useOverrideComputedStyle : 1; 135 bool m_useOverrideComputedStyle : 1;
135 bool m_needsOverrideComputedStyleUpdate : 1; 136 bool m_needsOverrideComputedStyleUpdate : 1;
136 RefPtrWillBeMember<MutableStylePropertySet> m_animatedSMILStyleProperties; 137 RefPtrWillBeMember<MutableStylePropertySet> m_animatedSMILStyleProperties;
137 RefPtr<RenderStyle> m_overrideComputedStyle; 138 RefPtr<RenderStyle> m_overrideComputedStyle;
138 }; 139 };
139 140
140 } 141 }
141 142
142 #endif 143 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGSVGElement.h » ('j') | Source/core/svg/animation/SMILTimeContainer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698