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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "core/animation/ElementAnimations.h" | 25 #include "core/animation/ElementAnimations.h" |
26 #include "core/css/cssom/InlineStylePropertyMap.h" | 26 #include "core/css/cssom/InlineStylePropertyMap.h" |
27 #include "core/dom/Attr.h" | 27 #include "core/dom/Attr.h" |
28 #include "core/dom/CompositorProxiedPropertySet.h" | 28 #include "core/dom/CompositorProxiedPropertySet.h" |
29 #include "core/dom/DatasetDOMStringMap.h" | 29 #include "core/dom/DatasetDOMStringMap.h" |
30 #include "core/dom/NamedNodeMap.h" | 30 #include "core/dom/NamedNodeMap.h" |
31 #include "core/dom/NodeIntersectionObserverData.h" | 31 #include "core/dom/NodeIntersectionObserverData.h" |
32 #include "core/dom/NodeRareData.h" | 32 #include "core/dom/NodeRareData.h" |
33 #include "core/dom/PseudoElement.h" | 33 #include "core/dom/PseudoElement.h" |
34 #include "core/dom/custom/CustomElementDefinition.h" | 34 #include "core/dom/custom/V0CustomElementDefinition.h" |
35 #include "core/dom/shadow/ElementShadow.h" | 35 #include "core/dom/shadow/ElementShadow.h" |
36 #include "core/html/ClassList.h" | 36 #include "core/html/ClassList.h" |
37 #include "core/style/StyleInheritedData.h" | 37 #include "core/style/StyleInheritedData.h" |
38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
39 #include "wtf/HashSet.h" | 39 #include "wtf/HashSet.h" |
40 #include "wtf/OwnPtr.h" | 40 #include "wtf/OwnPtr.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class HTMLElement; | 44 class HTMLElement; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 m_elementAnimations = elementAnimations; | 115 m_elementAnimations = elementAnimations; |
116 } | 116 } |
117 | 117 |
118 bool hasPseudoElements() const; | 118 bool hasPseudoElements() const; |
119 void clearPseudoElements(); | 119 void clearPseudoElements(); |
120 | 120 |
121 void incrementCompositorProxiedProperties(uint32_t properties); | 121 void incrementCompositorProxiedProperties(uint32_t properties); |
122 void decrementCompositorProxiedProperties(uint32_t properties); | 122 void decrementCompositorProxiedProperties(uint32_t properties); |
123 CompositorProxiedPropertySet* proxiedPropertyCounts() const { return m_proxi
edProperties.get(); } | 123 CompositorProxiedPropertySet* proxiedPropertyCounts() const { return m_proxi
edProperties.get(); } |
124 | 124 |
125 void setCustomElementDefinition(CustomElementDefinition* definition) { m_cus
tomElementDefinition = definition; } | 125 void setCustomElementDefinition(V0CustomElementDefinition* definition) { m_c
ustomElementDefinition = definition; } |
126 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } | 126 V0CustomElementDefinition* customElementDefinition() const { return m_custom
ElementDefinition.get(); } |
127 | 127 |
128 AttrNodeList& ensureAttrNodeList(); | 128 AttrNodeList& ensureAttrNodeList(); |
129 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } | 129 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } |
130 void removeAttrNodeList() { m_attrNodeList.clear(); } | 130 void removeAttrNodeList() { m_attrNodeList.clear(); } |
131 | 131 |
132 NodeIntersectionObserverData* intersectionObserverData() const { return m_in
tersectionObserverData.get(); } | 132 NodeIntersectionObserverData* intersectionObserverData() const { return m_in
tersectionObserverData.get(); } |
133 NodeIntersectionObserverData& ensureIntersectionObserverData() | 133 NodeIntersectionObserverData& ensureIntersectionObserverData() |
134 { | 134 { |
135 if (!m_intersectionObserverData) | 135 if (!m_intersectionObserverData) |
136 m_intersectionObserverData = new NodeIntersectionObserverData(); | 136 m_intersectionObserverData = new NodeIntersectionObserverData(); |
(...skipping 17 matching lines...) Expand all Loading... |
154 Member<NamedNodeMap> m_attributeMap; | 154 Member<NamedNodeMap> m_attributeMap; |
155 Member<AttrNodeList> m_attrNodeList; | 155 Member<AttrNodeList> m_attrNodeList; |
156 Member<InlineCSSStyleDeclaration> m_cssomWrapper; | 156 Member<InlineCSSStyleDeclaration> m_cssomWrapper; |
157 Member<InlineStylePropertyMap> m_cssomMapWrapper; | 157 Member<InlineStylePropertyMap> m_cssomMapWrapper; |
158 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; | 158 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; |
159 | 159 |
160 Member<ElementAnimations> m_elementAnimations; | 160 Member<ElementAnimations> m_elementAnimations; |
161 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 161 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
162 | 162 |
163 RefPtr<ComputedStyle> m_computedStyle; | 163 RefPtr<ComputedStyle> m_computedStyle; |
164 Member<CustomElementDefinition> m_customElementDefinition; | 164 Member<V0CustomElementDefinition> m_customElementDefinition; |
165 | 165 |
166 Member<PseudoElement> m_generatedBefore; | 166 Member<PseudoElement> m_generatedBefore; |
167 Member<PseudoElement> m_generatedAfter; | 167 Member<PseudoElement> m_generatedAfter; |
168 Member<PseudoElement> m_generatedFirstLetter; | 168 Member<PseudoElement> m_generatedFirstLetter; |
169 Member<PseudoElement> m_backdrop; | 169 Member<PseudoElement> m_backdrop; |
170 | 170 |
171 explicit ElementRareData(LayoutObject*); | 171 explicit ElementRareData(LayoutObject*); |
172 }; | 172 }; |
173 | 173 |
174 inline LayoutSize defaultMinimumSizeForResizing() | 174 inline LayoutSize defaultMinimumSizeForResizing() |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() | 265 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() |
266 { | 266 { |
267 if (!m_proxiedProperties) | 267 if (!m_proxiedProperties) |
268 m_proxiedProperties = CompositorProxiedPropertySet::create(); | 268 m_proxiedProperties = CompositorProxiedPropertySet::create(); |
269 return *m_proxiedProperties; | 269 return *m_proxiedProperties; |
270 } | 270 } |
271 | 271 |
272 } // namespace blink | 272 } // namespace blink |
273 | 273 |
274 #endif // ElementRareData_h | 274 #endif // ElementRareData_h |
OLD | NEW |