Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |