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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 ElementShadow& ensureShadow() | 81 ElementShadow& ensureShadow() |
82 { | 82 { |
83 if (!m_shadow) | 83 if (!m_shadow) |
84 m_shadow = ElementShadow::create(); | 84 m_shadow = ElementShadow::create(); |
85 return *m_shadow; | 85 return *m_shadow; |
86 } | 86 } |
87 | 87 |
88 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } | 88 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } |
89 void setAttributeMap(NamedNodeMap* attributeMap) { m_attributeMap = attribut
eMap; } | 89 void setAttributeMap(NamedNodeMap* attributeMap) { m_attributeMap = attribut
eMap; } |
90 | 90 |
91 ComputedStyle* ensureComputedStyle() const { return m_computedStyle.get(); } | |
92 void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle) { m_computedS
tyle = computedStyle; } | |
93 void clearComputedStyle() { m_computedStyle = nullptr; } | |
94 | |
95 ClassList* classList() const { return m_classList.get(); } | 91 ClassList* classList() const { return m_classList.get(); } |
96 void setClassList(ClassList* classList) { m_classList = classList; } | 92 void setClassList(ClassList* classList) { m_classList = classList; } |
97 void clearClassListValueForQuirksMode() | 93 void clearClassListValueForQuirksMode() |
98 { | 94 { |
99 if (!m_classList) | 95 if (!m_classList) |
100 return; | 96 return; |
101 m_classList->clearValueForQuirksMode(); | 97 m_classList->clearValueForQuirksMode(); |
102 } | 98 } |
103 | 99 |
104 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } | 100 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 Member<ClassList> m_classList; | 152 Member<ClassList> m_classList; |
157 Member<NamedNodeMap> m_attributeMap; | 153 Member<NamedNodeMap> m_attributeMap; |
158 Member<AttrNodeList> m_attrNodeList; | 154 Member<AttrNodeList> m_attrNodeList; |
159 Member<InlineCSSStyleDeclaration> m_cssomWrapper; | 155 Member<InlineCSSStyleDeclaration> m_cssomWrapper; |
160 Member<InlineStylePropertyMap> m_cssomMapWrapper; | 156 Member<InlineStylePropertyMap> m_cssomMapWrapper; |
161 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; | 157 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; |
162 | 158 |
163 Member<ElementAnimations> m_elementAnimations; | 159 Member<ElementAnimations> m_elementAnimations; |
164 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 160 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
165 | 161 |
166 RefPtr<ComputedStyle> m_computedStyle; | |
167 Member<V0CustomElementDefinition> m_customElementDefinition; | 162 Member<V0CustomElementDefinition> m_customElementDefinition; |
168 | 163 |
169 Member<PseudoElementData> m_pseudoElementData; | 164 Member<PseudoElementData> m_pseudoElementData; |
170 | 165 |
171 explicit ElementRareData(LayoutObject*); | 166 explicit ElementRareData(LayoutObject*); |
172 }; | 167 }; |
173 | 168 |
174 inline LayoutSize defaultMinimumSizeForResizing() | 169 inline LayoutSize defaultMinimumSizeForResizing() |
175 { | 170 { |
176 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); | 171 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() | 227 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() |
233 { | 228 { |
234 if (!m_proxiedProperties) | 229 if (!m_proxiedProperties) |
235 m_proxiedProperties = CompositorProxiedPropertySet::create(); | 230 m_proxiedProperties = CompositorProxiedPropertySet::create(); |
236 return *m_proxiedProperties; | 231 return *m_proxiedProperties; |
237 } | 232 } |
238 | 233 |
239 } // namespace blink | 234 } // namespace blink |
240 | 235 |
241 #endif // ElementRareData_h | 236 #endif // ElementRareData_h |
OLD | NEW |