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

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

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + final adjustments Created 6 years, 7 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
« 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void clearShadow() { m_shadow = nullptr; } 72 void clearShadow() { m_shadow = nullptr; }
73 ElementShadow* shadow() const { return m_shadow.get(); } 73 ElementShadow* shadow() const { return m_shadow.get(); }
74 ElementShadow& ensureShadow() 74 ElementShadow& ensureShadow()
75 { 75 {
76 if (!m_shadow) 76 if (!m_shadow)
77 m_shadow = ElementShadow::create(); 77 m_shadow = ElementShadow::create();
78 return *m_shadow; 78 return *m_shadow;
79 } 79 }
80 80
81 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } 81 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); }
82 void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap = attributeMap; } 82 void setAttributeMap(PassOwnPtrWillBeRawPtr<NamedNodeMap> attributeMap) { m_ attributeMap = attributeMap; }
83 83
84 RenderStyle* computedStyle() const { return m_computedStyle.get(); } 84 RenderStyle* computedStyle() const { return m_computedStyle.get(); }
85 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; } 85 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; }
86 void clearComputedStyle() { m_computedStyle = nullptr; } 86 void clearComputedStyle() { m_computedStyle = nullptr; }
87 87
88 ClassList* classList() const { return m_classList.get(); } 88 ClassList* classList() const { return m_classList.get(); }
89 void setClassList(PassOwnPtr<ClassList> classList) { m_classList = classList ; } 89 void setClassList(PassOwnPtrWillBeRawPtr<ClassList> classList) { m_classList = classList; }
90 void clearClassListValueForQuirksMode() 90 void clearClassListValueForQuirksMode()
91 { 91 {
92 if (!m_classList) 92 if (!m_classList)
93 return; 93 return;
94 m_classList->clearValueForQuirksMode(); 94 m_classList->clearValueForQuirksMode();
95 } 95 }
96 96
97 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } 97 DatasetDOMStringMap* dataset() const { return m_dataset.get(); }
98 void setDataset(PassOwnPtr<DatasetDOMStringMap> dataset) { m_dataset = datas et; } 98 void setDataset(PassOwnPtrWillBeRawPtr<DatasetDOMStringMap> dataset) { m_dat aset = dataset; }
99 99
100 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } 100 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; }
101 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si ze; } 101 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si ze; }
102 102
103 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); } 103 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); }
104 void setActiveAnimations(PassOwnPtrWillBeRawPtr<ActiveAnimations> activeAnim ations) 104 void setActiveAnimations(PassOwnPtrWillBeRawPtr<ActiveAnimations> activeAnim ations)
105 { 105 {
106 m_activeAnimations = activeAnimations; 106 m_activeAnimations = activeAnimations;
107 } 107 }
108 108
(...skipping 11 matching lines...) Expand all
120 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definiti on) { m_customElementDefinition = definition; } 120 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definiti on) { m_customElementDefinition = definition; }
121 CustomElementDefinition* customElementDefinition() const { return m_customEl ementDefinition.get(); } 121 CustomElementDefinition* customElementDefinition() const { return m_customEl ementDefinition.get(); }
122 122
123 void traceAfterDispatch(Visitor*); 123 void traceAfterDispatch(Visitor*);
124 124
125 private: 125 private:
126 short m_tabindex; 126 short m_tabindex;
127 127
128 IntSize m_savedLayerScrollOffset; 128 IntSize m_savedLayerScrollOffset;
129 129
130 OwnPtr<DatasetDOMStringMap> m_dataset; 130 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset;
131 OwnPtr<ClassList> m_classList; 131 OwnPtrWillBeMember<ClassList> m_classList;
132 OwnPtrWillBeMember<ElementShadow> m_shadow; 132 OwnPtrWillBeMember<ElementShadow> m_shadow;
133 OwnPtr<NamedNodeMap> m_attributeMap; 133 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap;
134 OwnPtr<InputMethodContext> m_inputMethodContext; 134 OwnPtr<InputMethodContext> m_inputMethodContext;
135 OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations; 135 OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations;
136 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; 136 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper;
137 137
138 RefPtr<RenderStyle> m_computedStyle; 138 RefPtr<RenderStyle> m_computedStyle;
139 RefPtr<CustomElementDefinition> m_customElementDefinition; 139 RefPtr<CustomElementDefinition> m_customElementDefinition;
140 140
141 RefPtr<PseudoElement> m_generatedBefore; 141 RefPtr<PseudoElement> m_generatedBefore;
142 RefPtr<PseudoElement> m_generatedAfter; 142 RefPtr<PseudoElement> m_generatedAfter;
143 RefPtr<PseudoElement> m_backdrop; 143 RefPtr<PseudoElement> m_backdrop;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 213
214 inline void ElementRareData::resetStyleState() 214 inline void ElementRareData::resetStyleState()
215 { 215 {
216 clearElementFlag(StyleAffectedByEmpty); 216 clearElementFlag(StyleAffectedByEmpty);
217 } 217 }
218 218
219 } // namespace 219 } // namespace
220 220
221 #endif // ElementRareData_h 221 #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