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

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

Issue 1962953002: Storage of ComputedStyle separate from LayoutObject. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs to remove redundant ComputedStyle members Created 4 years, 6 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Member<ClassList> m_classList; 156 Member<ClassList> m_classList;
157 Member<NamedNodeMap> m_attributeMap; 157 Member<NamedNodeMap> m_attributeMap;
158 Member<AttrNodeList> m_attrNodeList; 158 Member<AttrNodeList> m_attrNodeList;
159 Member<InlineCSSStyleDeclaration> m_cssomWrapper; 159 Member<InlineCSSStyleDeclaration> m_cssomWrapper;
160 Member<InlineStylePropertyMap> m_cssomMapWrapper; 160 Member<InlineStylePropertyMap> m_cssomMapWrapper;
161 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; 161 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties;
162 162
163 Member<ElementAnimations> m_elementAnimations; 163 Member<ElementAnimations> m_elementAnimations;
164 Member<NodeIntersectionObserverData> m_intersectionObserverData; 164 Member<NodeIntersectionObserverData> m_intersectionObserverData;
165 165
166 // TODO(bugsnash): Use NodeRareData's ComputedStyle instead
166 RefPtr<ComputedStyle> m_computedStyle; 167 RefPtr<ComputedStyle> m_computedStyle;
167 Member<V0CustomElementDefinition> m_customElementDefinition; 168 Member<V0CustomElementDefinition> m_customElementDefinition;
168 169
169 Member<PseudoElementData> m_pseudoElementData; 170 Member<PseudoElementData> m_pseudoElementData;
170 171
171 explicit ElementRareData(LayoutObject*); 172 explicit ElementRareData(LayoutObject*);
172 }; 173 };
173 174
174 inline LayoutSize defaultMinimumSizeForResizing() 175 inline LayoutSize defaultMinimumSizeForResizing()
175 { 176 {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet() 233 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet()
233 { 234 {
234 if (!m_proxiedProperties) 235 if (!m_proxiedProperties)
235 m_proxiedProperties = CompositorProxiedPropertySet::create(); 236 m_proxiedProperties = CompositorProxiedPropertySet::create();
236 return *m_proxiedProperties; 237 return *m_proxiedProperties;
237 } 238 }
238 239
239 } // namespace blink 240 } // namespace blink
240 241
241 #endif // ElementRareData_h 242 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | third_party/WebKit/Source/core/dom/Node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698