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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ElementShadow& ensureShadow() 80 ElementShadow& ensureShadow()
81 { 81 {
82 if (!m_shadow) 82 if (!m_shadow)
83 m_shadow = ElementShadow::create(); 83 m_shadow = ElementShadow::create();
84 return *m_shadow; 84 return *m_shadow;
85 } 85 }
86 86
87 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } 87 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); }
88 void setAttributeMap(PassOwnPtrWillBeRawPtr<NamedNodeMap> attributeMap) { m_ attributeMap = attributeMap; } 88 void setAttributeMap(PassOwnPtrWillBeRawPtr<NamedNodeMap> attributeMap) { m_ attributeMap = attributeMap; }
89 89
90 LayoutStyle* computedStyle() const { return m_computedStyle.get(); } 90 ComputedStyle* ensureComputedStyle() const { return m_computedStyle.get(); }
91 void setComputedStyle(PassRefPtr<LayoutStyle> computedStyle) { m_computedSty le = computedStyle; } 91 void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle) { m_computedS tyle = computedStyle; }
92 void clearComputedStyle() { m_computedStyle = nullptr; } 92 void clearComputedStyle() { m_computedStyle = nullptr; }
93 93
94 ClassList* classList() const { return m_classList.get(); } 94 ClassList* classList() const { return m_classList.get(); }
95 void setClassList(PassOwnPtrWillBeRawPtr<ClassList> classList) { m_classList = classList; } 95 void setClassList(PassOwnPtrWillBeRawPtr<ClassList> classList) { m_classList = classList; }
96 void clearClassListValueForQuirksMode() 96 void clearClassListValueForQuirksMode()
97 { 97 {
98 if (!m_classList) 98 if (!m_classList)
99 return; 99 return;
100 m_classList->clearValueForQuirksMode(); 100 m_classList->clearValueForQuirksMode();
101 } 101 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; 145 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset;
146 OwnPtrWillBeMember<ClassList> m_classList; 146 OwnPtrWillBeMember<ClassList> m_classList;
147 OwnPtrWillBeMember<ElementShadow> m_shadow; 147 OwnPtrWillBeMember<ElementShadow> m_shadow;
148 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; 148 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap;
149 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Attr>>> m_attrNodeLis t; 149 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Attr>>> m_attrNodeLis t;
150 OwnPtrWillBeMember<InputMethodContext> m_inputMethodContext; 150 OwnPtrWillBeMember<InputMethodContext> m_inputMethodContext;
151 OwnPtrWillBeMember<ElementAnimations> m_elementAnimations; 151 OwnPtrWillBeMember<ElementAnimations> m_elementAnimations;
152 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; 152 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper;
153 153
154 RefPtr<LayoutStyle> m_computedStyle; 154 RefPtr<ComputedStyle> m_computedStyle;
155 RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition; 155 RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition;
156 156
157 RefPtrWillBeMember<PseudoElement> m_generatedBefore; 157 RefPtrWillBeMember<PseudoElement> m_generatedBefore;
158 RefPtrWillBeMember<PseudoElement> m_generatedAfter; 158 RefPtrWillBeMember<PseudoElement> m_generatedAfter;
159 RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter; 159 RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter;
160 RefPtrWillBeMember<PseudoElement> m_backdrop; 160 RefPtrWillBeMember<PseudoElement> m_backdrop;
161 161
162 explicit ElementRareData(LayoutObject*); 162 explicit ElementRareData(LayoutObject*);
163 }; 163 };
164 164
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 case FIRST_LETTER: 240 case FIRST_LETTER:
241 return m_generatedFirstLetter.get(); 241 return m_generatedFirstLetter.get();
242 default: 242 default:
243 return 0; 243 return 0;
244 } 244 }
245 } 245 }
246 246
247 } // namespace 247 } // namespace
248 248
249 #endif // ElementRareData_h 249 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698