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 25 matching lines...) Expand all Loading... | |
| 36 class SVGElementRareData { | 36 class SVGElementRareData { |
| 37 WTF_MAKE_NONCOPYABLE(SVGElementRareData); WTF_MAKE_FAST_ALLOCATED; | 37 WTF_MAKE_NONCOPYABLE(SVGElementRareData); WTF_MAKE_FAST_ALLOCATED; |
| 38 public: | 38 public: |
| 39 SVGElementRareData() | 39 SVGElementRareData() |
| 40 : m_cursorElement(0) | 40 : m_cursorElement(0) |
| 41 , m_cursorImageValue(0) | 41 , m_cursorImageValue(0) |
| 42 , m_correspondingElement(0) | 42 , m_correspondingElement(0) |
| 43 , m_instancesUpdatesBlocked(false) | 43 , m_instancesUpdatesBlocked(false) |
| 44 , m_useOverrideComputedStyle(false) | 44 , m_useOverrideComputedStyle(false) |
| 45 , m_needsOverrideComputedStyleUpdate(false) | 45 , m_needsOverrideComputedStyleUpdate(false) |
| 46 , m_isValid(true) | |
| 46 { | 47 { |
| 47 } | 48 } |
| 48 | 49 |
| 49 typedef HashMap<const SVGElement*, SVGElementRareData*> SVGElementRareDataMa p; | 50 typedef HashMap<const SVGElement*, SVGElementRareData*> SVGElementRareDataMa p; |
| 50 | 51 |
| 51 static SVGElementRareDataMap& rareDataMap() | 52 static SVGElementRareDataMap& rareDataMap() |
| 52 { | 53 { |
| 53 DEFINE_STATIC_LOCAL(SVGElementRareDataMap, rareDataMap, ()); | 54 DEFINE_STATIC_LOCAL(SVGElementRareDataMap, rareDataMap, ()); |
| 54 return rareDataMap; | 55 return rareDataMap; |
| 55 } | 56 } |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 67 | 68 |
| 68 SVGCursorElement* cursorElement() const { return m_cursorElement; } | 69 SVGCursorElement* cursorElement() const { return m_cursorElement; } |
| 69 void setCursorElement(SVGCursorElement* cursorElement) { m_cursorElement = c ursorElement; } | 70 void setCursorElement(SVGCursorElement* cursorElement) { m_cursorElement = c ursorElement; } |
| 70 | 71 |
| 71 SVGElement* correspondingElement() { return m_correspondingElement; } | 72 SVGElement* correspondingElement() { return m_correspondingElement; } |
| 72 void setCorrespondingElement(SVGElement* correspondingElement) { m_correspon dingElement = correspondingElement; } | 73 void setCorrespondingElement(SVGElement* correspondingElement) { m_correspon dingElement = correspondingElement; } |
| 73 | 74 |
| 74 CSSCursorImageValue* cursorImageValue() const { return m_cursorImageValue; } | 75 CSSCursorImageValue* cursorImageValue() const { return m_cursorImageValue; } |
| 75 void setCursorImageValue(CSSCursorImageValue* cursorImageValue) { m_cursorIm ageValue = cursorImageValue; } | 76 void setCursorImageValue(CSSCursorImageValue* cursorImageValue) { m_cursorIm ageValue = cursorImageValue; } |
| 76 | 77 |
| 78 bool isValid() const { return m_isValid; } | |
|
pdr.
2013/10/25 06:13:12
I'm worried this name will confuse us in the futur
| |
| 79 void setIsValid(bool value) { m_isValid = value; } | |
| 80 | |
| 77 MutableStylePropertySet* animatedSMILStyleProperties() const { return m_anim atedSMILStyleProperties.get(); } | 81 MutableStylePropertySet* animatedSMILStyleProperties() const { return m_anim atedSMILStyleProperties.get(); } |
| 78 MutableStylePropertySet* ensureAnimatedSMILStyleProperties() | 82 MutableStylePropertySet* ensureAnimatedSMILStyleProperties() |
| 79 { | 83 { |
| 80 if (!m_animatedSMILStyleProperties) | 84 if (!m_animatedSMILStyleProperties) |
| 81 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGA ttributeMode); | 85 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGA ttributeMode); |
| 82 return m_animatedSMILStyleProperties.get(); | 86 return m_animatedSMILStyleProperties.get(); |
| 83 } | 87 } |
| 84 | 88 |
| 85 void destroyAnimatedSMILStyleProperties() | 89 void destroyAnimatedSMILStyleProperties() |
| 86 { | 90 { |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 106 void setNeedsOverrideComputedStyleUpdate() { m_needsOverrideComputedStyleUpd ate = true; } | 110 void setNeedsOverrideComputedStyleUpdate() { m_needsOverrideComputedStyleUpd ate = true; } |
| 107 | 111 |
| 108 private: | 112 private: |
| 109 HashSet<SVGElementInstance*> m_elementInstances; | 113 HashSet<SVGElementInstance*> m_elementInstances; |
| 110 SVGCursorElement* m_cursorElement; | 114 SVGCursorElement* m_cursorElement; |
| 111 CSSCursorImageValue* m_cursorImageValue; | 115 CSSCursorImageValue* m_cursorImageValue; |
| 112 SVGElement* m_correspondingElement; | 116 SVGElement* m_correspondingElement; |
| 113 bool m_instancesUpdatesBlocked : 1; | 117 bool m_instancesUpdatesBlocked : 1; |
| 114 bool m_useOverrideComputedStyle : 1; | 118 bool m_useOverrideComputedStyle : 1; |
| 115 bool m_needsOverrideComputedStyleUpdate : 1; | 119 bool m_needsOverrideComputedStyleUpdate : 1; |
| 120 bool m_isValid : 1; | |
| 116 RefPtr<MutableStylePropertySet> m_animatedSMILStyleProperties; | 121 RefPtr<MutableStylePropertySet> m_animatedSMILStyleProperties; |
| 117 RefPtr<RenderStyle> m_overrideComputedStyle; | 122 RefPtr<RenderStyle> m_overrideComputedStyle; |
| 118 }; | 123 }; |
| 119 | 124 |
| 120 } | 125 } |
| 121 | 126 |
| 122 #endif | 127 #endif |
| OLD | NEW |