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 14 matching lines...) Expand all Loading... |
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/PseudoElementData.h" | 34 #include "core/dom/PseudoElementData.h" |
| 35 #include "core/dom/custom/CustomElementDefinition.h" |
35 #include "core/dom/custom/V0CustomElementDefinition.h" | 36 #include "core/dom/custom/V0CustomElementDefinition.h" |
36 #include "core/dom/shadow/ElementShadow.h" | 37 #include "core/dom/shadow/ElementShadow.h" |
37 #include "core/html/ClassList.h" | 38 #include "core/html/ClassList.h" |
38 #include "core/style/StyleInheritedData.h" | 39 #include "core/style/StyleInheritedData.h" |
39 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
40 #include "wtf/HashSet.h" | 41 #include "wtf/HashSet.h" |
41 #include <memory> | 42 #include <memory> |
42 | 43 |
43 namespace blink { | 44 namespace blink { |
44 | 45 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 m_elementAnimations = elementAnimations; | 119 m_elementAnimations = elementAnimations; |
119 } | 120 } |
120 | 121 |
121 bool hasPseudoElements() const; | 122 bool hasPseudoElements() const; |
122 void clearPseudoElements(); | 123 void clearPseudoElements(); |
123 | 124 |
124 void incrementCompositorProxiedProperties(uint32_t properties); | 125 void incrementCompositorProxiedProperties(uint32_t properties); |
125 void decrementCompositorProxiedProperties(uint32_t properties); | 126 void decrementCompositorProxiedProperties(uint32_t properties); |
126 CompositorProxiedPropertySet* proxiedPropertyCounts() const { return m_proxi
edProperties.get(); } | 127 CompositorProxiedPropertySet* proxiedPropertyCounts() const { return m_proxi
edProperties.get(); } |
127 | 128 |
128 void setCustomElementDefinition(V0CustomElementDefinition* definition) { m_c
ustomElementDefinition = definition; } | 129 void v0SetCustomElementDefinition(V0CustomElementDefinition* definition) { m
_v0CustomElementDefinition = definition; } |
129 V0CustomElementDefinition* customElementDefinition() const { return m_custom
ElementDefinition.get(); } | 130 V0CustomElementDefinition* v0CustomElementDefinition() const { return m_v0Cu
stomElementDefinition.get(); } |
| 131 |
| 132 void setCustomElementDefinition(CustomElementDefinition* definition) { m_cus
tomElementDefinition = definition; } |
| 133 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } |
| 134 |
130 | 135 |
131 AttrNodeList& ensureAttrNodeList(); | 136 AttrNodeList& ensureAttrNodeList(); |
132 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } | 137 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } |
133 void removeAttrNodeList() { m_attrNodeList.clear(); } | 138 void removeAttrNodeList() { m_attrNodeList.clear(); } |
134 | 139 |
135 NodeIntersectionObserverData* intersectionObserverData() const { return m_in
tersectionObserverData.get(); } | 140 NodeIntersectionObserverData* intersectionObserverData() const { return m_in
tersectionObserverData.get(); } |
136 NodeIntersectionObserverData& ensureIntersectionObserverData() | 141 NodeIntersectionObserverData& ensureIntersectionObserverData() |
137 { | 142 { |
138 if (!m_intersectionObserverData) | 143 if (!m_intersectionObserverData) |
139 m_intersectionObserverData = new NodeIntersectionObserverData(); | 144 m_intersectionObserverData = new NodeIntersectionObserverData(); |
(...skipping 25 matching lines...) Expand all Loading... |
165 Member<AttrNodeList> m_attrNodeList; | 170 Member<AttrNodeList> m_attrNodeList; |
166 Member<InlineCSSStyleDeclaration> m_cssomWrapper; | 171 Member<InlineCSSStyleDeclaration> m_cssomWrapper; |
167 Member<InlineStylePropertyMap> m_cssomMapWrapper; | 172 Member<InlineStylePropertyMap> m_cssomMapWrapper; |
168 std::unique_ptr<CompositorProxiedPropertySet> m_proxiedProperties; | 173 std::unique_ptr<CompositorProxiedPropertySet> m_proxiedProperties; |
169 | 174 |
170 Member<ElementAnimations> m_elementAnimations; | 175 Member<ElementAnimations> m_elementAnimations; |
171 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 176 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
172 Member<ResizeObserverDataMap> m_resizeObserverData; | 177 Member<ResizeObserverDataMap> m_resizeObserverData; |
173 | 178 |
174 RefPtr<ComputedStyle> m_computedStyle; | 179 RefPtr<ComputedStyle> m_computedStyle; |
175 Member<V0CustomElementDefinition> m_customElementDefinition; | 180 // TODO(davaajav):remove this field when v0 custom elements are deprecated |
| 181 Member<V0CustomElementDefinition> m_v0CustomElementDefinition; |
| 182 Member<CustomElementDefinition> m_customElementDefinition; |
176 | 183 |
177 Member<PseudoElementData> m_pseudoElementData; | 184 Member<PseudoElementData> m_pseudoElementData; |
178 | 185 |
179 explicit ElementRareData(LayoutObject*); | 186 explicit ElementRareData(LayoutObject*); |
180 }; | 187 }; |
181 | 188 |
182 inline LayoutSize defaultMinimumSizeForResizing() | 189 inline LayoutSize defaultMinimumSizeForResizing() |
183 { | 190 { |
184 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); | 191 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); |
185 } | 192 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() | 247 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() |
241 { | 248 { |
242 if (!m_proxiedProperties) | 249 if (!m_proxiedProperties) |
243 m_proxiedProperties = CompositorProxiedPropertySet::create(); | 250 m_proxiedProperties = CompositorProxiedPropertySet::create(); |
244 return *m_proxiedProperties; | 251 return *m_proxiedProperties; |
245 } | 252 } |
246 | 253 |
247 } // namespace blink | 254 } // namespace blink |
248 | 255 |
249 #endif // ElementRareData_h | 256 #endif // ElementRareData_h |
OLD | NEW |