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

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

Issue 296093002: Mark SVGElementRareData::m_owner as oilpan-only (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | 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) 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 18 matching lines...) Expand all
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class CSSCursorImageValue; 31 class CSSCursorImageValue;
32 class SVGCursorElement; 32 class SVGCursorElement;
33 class SVGElement; 33 class SVGElement;
34 34
35 class SVGElementRareData : public NoBaseWillBeGarbageCollectedFinalized<SVGEleme ntRareData> { 35 class SVGElementRareData : public NoBaseWillBeGarbageCollectedFinalized<SVGEleme ntRareData> {
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 : m_owner(owner) 40 : m_owner(owner)
40 , m_cursorElement(nullptr) 41 , m_cursorElement(nullptr)
42 #else
43 : m_cursorElement(nullptr)
44 #endif
41 , m_cursorImageValue(nullptr) 45 , m_cursorImageValue(nullptr)
42 , m_correspondingElement(0) 46 , m_correspondingElement(0)
43 , m_instancesUpdatesBlocked(false) 47 , m_instancesUpdatesBlocked(false)
44 , m_useOverrideComputedStyle(false) 48 , m_useOverrideComputedStyle(false)
45 , m_needsOverrideComputedStyleUpdate(false) 49 , m_needsOverrideComputedStyleUpdate(false)
46 { 50 {
47 } 51 }
48 52
49 typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<const SVGElement>, RawPtrWi llBeMember<SVGElementRareData> > SVGElementRareDataMap; 53 typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<const SVGElement>, RawPtrWi llBeMember<SVGElementRareData> > SVGElementRareDataMap;
50 54
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 m_cursorElement = nullptr; 142 m_cursorElement = nullptr;
139 } 143 }
140 m_cursorImageValue = nullptr; 144 m_cursorImageValue = nullptr;
141 } 145 }
142 ASSERT(!m_cursorElement || visitor->isAlive(m_cursorElement)); 146 ASSERT(!m_cursorElement || visitor->isAlive(m_cursorElement));
143 ASSERT(!m_cursorImageValue || visitor->isAlive(m_cursorImageValue)); 147 ASSERT(!m_cursorImageValue || visitor->isAlive(m_cursorImageValue));
144 #endif 148 #endif
145 } 149 }
146 150
147 private: 151 private:
152 #if ENABLE(OILPAN)
148 RawPtrWillBeWeakMember<SVGElement> m_owner; 153 RawPtrWillBeWeakMember<SVGElement> m_owner;
haraken 2014/05/21 07:55:50 This is only for oilpan, so you can use WeakMember
154 #endif
149 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementInstances; 155 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementInstances;
150 RawPtrWillBeWeakMember<SVGCursorElement> m_cursorElement; 156 RawPtrWillBeWeakMember<SVGCursorElement> m_cursorElement;
151 RawPtrWillBeWeakMember<CSSCursorImageValue> m_cursorImageValue; 157 RawPtrWillBeWeakMember<CSSCursorImageValue> m_cursorImageValue;
152 SVGElement* m_correspondingElement; 158 SVGElement* m_correspondingElement;
153 bool m_instancesUpdatesBlocked : 1; 159 bool m_instancesUpdatesBlocked : 1;
154 bool m_useOverrideComputedStyle : 1; 160 bool m_useOverrideComputedStyle : 1;
155 bool m_needsOverrideComputedStyleUpdate : 1; 161 bool m_needsOverrideComputedStyleUpdate : 1;
156 RefPtrWillBeMember<MutableStylePropertySet> m_animatedSMILStyleProperties; 162 RefPtrWillBeMember<MutableStylePropertySet> m_animatedSMILStyleProperties;
157 RefPtr<RenderStyle> m_overrideComputedStyle; 163 RefPtr<RenderStyle> m_overrideComputedStyle;
158 }; 164 };
159 165
160 } 166 }
161 167
162 #endif 168 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698