OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> | 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void clearShadow() { m_shadow = nullptr; } | 72 void clearShadow() { m_shadow = nullptr; } |
73 ElementShadow* shadow() const { return m_shadow.get(); } | 73 ElementShadow* shadow() const { return m_shadow.get(); } |
74 ElementShadow& ensureShadow() | 74 ElementShadow& ensureShadow() |
75 { | 75 { |
76 if (!m_shadow) | 76 if (!m_shadow) |
77 m_shadow = ElementShadow::create(); | 77 m_shadow = ElementShadow::create(); |
78 return *m_shadow; | 78 return *m_shadow; |
79 } | 79 } |
80 | 80 |
81 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } | 81 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } |
82 void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap
= attributeMap; } | 82 void setAttributeMap(PassOwnPtrWillBeRawPtr<NamedNodeMap> attributeMap) { m_
attributeMap = attributeMap; } |
83 | 83 |
84 RenderStyle* computedStyle() const { return m_computedStyle.get(); } | 84 RenderStyle* computedStyle() const { return m_computedStyle.get(); } |
85 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty
le = computedStyle; } | 85 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty
le = computedStyle; } |
86 void clearComputedStyle() { m_computedStyle = nullptr; } | 86 void clearComputedStyle() { m_computedStyle = nullptr; } |
87 | 87 |
88 ClassList* classList() const { return m_classList.get(); } | 88 ClassList* classList() const { return m_classList.get(); } |
89 void setClassList(PassOwnPtr<ClassList> classList) { m_classList = classList
; } | 89 void setClassList(PassOwnPtrWillBeRawPtr<ClassList> classList) { m_classList
= classList; } |
90 void clearClassListValueForQuirksMode() | 90 void clearClassListValueForQuirksMode() |
91 { | 91 { |
92 if (!m_classList) | 92 if (!m_classList) |
93 return; | 93 return; |
94 m_classList->clearValueForQuirksMode(); | 94 m_classList->clearValueForQuirksMode(); |
95 } | 95 } |
96 | 96 |
97 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } | 97 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } |
98 void setDataset(PassOwnPtr<DatasetDOMStringMap> dataset) { m_dataset = datas
et; } | 98 void setDataset(PassOwnPtrWillBeRawPtr<DatasetDOMStringMap> dataset) { m_dat
aset = dataset; } |
99 | 99 |
100 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } | 100 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } |
101 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si
ze; } | 101 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si
ze; } |
102 | 102 |
103 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); } | 103 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); } |
104 void setActiveAnimations(PassOwnPtrWillBeRawPtr<ActiveAnimations> activeAnim
ations) | 104 void setActiveAnimations(PassOwnPtrWillBeRawPtr<ActiveAnimations> activeAnim
ations) |
105 { | 105 { |
106 m_activeAnimations = activeAnimations; | 106 m_activeAnimations = activeAnimations; |
107 } | 107 } |
108 | 108 |
(...skipping 11 matching lines...) Expand all Loading... |
120 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definiti
on) { m_customElementDefinition = definition; } | 120 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definiti
on) { m_customElementDefinition = definition; } |
121 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } | 121 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } |
122 | 122 |
123 void traceAfterDispatch(Visitor*); | 123 void traceAfterDispatch(Visitor*); |
124 | 124 |
125 private: | 125 private: |
126 short m_tabindex; | 126 short m_tabindex; |
127 | 127 |
128 IntSize m_savedLayerScrollOffset; | 128 IntSize m_savedLayerScrollOffset; |
129 | 129 |
130 OwnPtr<DatasetDOMStringMap> m_dataset; | 130 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; |
131 OwnPtr<ClassList> m_classList; | 131 OwnPtrWillBeMember<ClassList> m_classList; |
132 OwnPtrWillBeMember<ElementShadow> m_shadow; | 132 OwnPtrWillBeMember<ElementShadow> m_shadow; |
133 OwnPtr<NamedNodeMap> m_attributeMap; | 133 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; |
134 OwnPtr<InputMethodContext> m_inputMethodContext; | 134 OwnPtr<InputMethodContext> m_inputMethodContext; |
135 OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations; | 135 OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations; |
136 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; | 136 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; |
137 | 137 |
138 RefPtr<RenderStyle> m_computedStyle; | 138 RefPtr<RenderStyle> m_computedStyle; |
139 RefPtr<CustomElementDefinition> m_customElementDefinition; | 139 RefPtr<CustomElementDefinition> m_customElementDefinition; |
140 | 140 |
141 RefPtr<PseudoElement> m_generatedBefore; | 141 RefPtr<PseudoElement> m_generatedBefore; |
142 RefPtr<PseudoElement> m_generatedAfter; | 142 RefPtr<PseudoElement> m_generatedAfter; |
143 RefPtr<PseudoElement> m_backdrop; | 143 RefPtr<PseudoElement> m_backdrop; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 } | 212 } |
213 | 213 |
214 inline void ElementRareData::resetStyleState() | 214 inline void ElementRareData::resetStyleState() |
215 { | 215 { |
216 clearElementFlag(StyleAffectedByEmpty); | 216 clearElementFlag(StyleAffectedByEmpty); |
217 } | 217 } |
218 | 218 |
219 } // namespace | 219 } // namespace |
220 | 220 |
221 #endif // ElementRareData_h | 221 #endif // ElementRareData_h |
OLD | NEW |