Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 2170383002: CustomElements: adopt node (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout test went from bad to good, deleting failure expectation Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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 Member<V0CustomElementDefinition> m_v0customElementDefinition;
dominicc (has gone to gerrit) 2016/08/03 07:56:56 As above, treat v0 like a word, so this should be
181 Member<CustomElementDefinition> m_customElementDefinition;
176 182
177 Member<PseudoElementData> m_pseudoElementData; 183 Member<PseudoElementData> m_pseudoElementData;
178 184
179 explicit ElementRareData(LayoutObject*); 185 explicit ElementRareData(LayoutObject*);
180 }; 186 };
181 187
182 inline LayoutSize defaultMinimumSizeForResizing() 188 inline LayoutSize defaultMinimumSizeForResizing()
183 { 189 {
184 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); 190 return LayoutSize(LayoutUnit::max(), LayoutUnit::max());
185 } 191 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet() 246 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet()
241 { 247 {
242 if (!m_proxiedProperties) 248 if (!m_proxiedProperties)
243 m_proxiedProperties = CompositorProxiedPropertySet::create(); 249 m_proxiedProperties = CompositorProxiedPropertySet::create();
244 return *m_proxiedProperties; 250 return *m_proxiedProperties;
245 } 251 }
246 252
247 } // namespace blink 253 } // namespace blink
248 254
249 #endif // ElementRareData_h 255 #endif // ElementRareData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698