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

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

Issue 2748103002: [wrapper-tracing] Redesign dispatching on non-inheriting cases (Closed)
Patch Set: Addressed comment Created 3 years, 9 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 RefPtr<ComputedStyle> m_computedStyle; 206 RefPtr<ComputedStyle> m_computedStyle;
207 // TODO(davaajav):remove this field when v0 custom elements are deprecated 207 // TODO(davaajav):remove this field when v0 custom elements are deprecated
208 Member<V0CustomElementDefinition> m_v0CustomElementDefinition; 208 Member<V0CustomElementDefinition> m_v0CustomElementDefinition;
209 Member<CustomElementDefinition> m_customElementDefinition; 209 Member<CustomElementDefinition> m_customElementDefinition;
210 210
211 Member<PseudoElementData> m_pseudoElementData; 211 Member<PseudoElementData> m_pseudoElementData;
212 212
213 explicit ElementRareData(LayoutObject*); 213 explicit ElementRareData(LayoutObject*);
214 }; 214 };
215 215
216 DEFINE_TRAIT_FOR_TRACE_WRAPPERS(ElementRareData);
217
216 inline LayoutSize defaultMinimumSizeForResizing() { 218 inline LayoutSize defaultMinimumSizeForResizing() {
217 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); 219 return LayoutSize(LayoutUnit::max(), LayoutUnit::max());
218 } 220 }
219 221
220 inline ElementRareData::ElementRareData(LayoutObject* layoutObject) 222 inline ElementRareData::ElementRareData(LayoutObject* layoutObject)
221 : NodeRareData(layoutObject), 223 : NodeRareData(layoutObject),
222 m_minimumSizeForResizing(defaultMinimumSizeForResizing()), 224 m_minimumSizeForResizing(defaultMinimumSizeForResizing()),
223 m_classList(nullptr) { 225 m_classList(nullptr) {
224 m_isElementRareData = true; 226 m_isElementRareData = true;
225 } 227 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 inline CompositorProxiedPropertySet& 269 inline CompositorProxiedPropertySet&
268 ElementRareData::ensureCompositorProxiedPropertySet() { 270 ElementRareData::ensureCompositorProxiedPropertySet() {
269 if (!m_proxiedProperties) 271 if (!m_proxiedProperties)
270 m_proxiedProperties = CompositorProxiedPropertySet::create(); 272 m_proxiedProperties = CompositorProxiedPropertySet::create();
271 return *m_proxiedProperties; 273 return *m_proxiedProperties;
272 } 274 }
273 275
274 } // namespace blink 276 } // namespace blink
275 277
276 #endif // ElementRareData_h 278 #endif // ElementRareData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698