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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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/ElementDataCache.cpp ('k') | Source/core/dom/FullscreenElementStack.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (!m_shadow) 100 if (!m_shadow)
101 m_shadow = ElementShadow::create(); 101 m_shadow = ElementShadow::create();
102 return *m_shadow; 102 return *m_shadow;
103 } 103 }
104 104
105 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } 105 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); }
106 void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap = attributeMap; } 106 void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap = attributeMap; }
107 107
108 RenderStyle* computedStyle() const { return m_computedStyle.get(); } 108 RenderStyle* computedStyle() const { return m_computedStyle.get(); }
109 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; } 109 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; }
110 void clearComputedStyle() { m_computedStyle = 0; } 110 void clearComputedStyle() { m_computedStyle = nullptr; }
111 111
112 ClassList* classList() const { return m_classList.get(); } 112 ClassList* classList() const { return m_classList.get(); }
113 void setClassList(PassOwnPtr<ClassList> classList) { m_classList = classList ; } 113 void setClassList(PassOwnPtr<ClassList> classList) { m_classList = classList ; }
114 void clearClassListValueForQuirksMode() 114 void clearClassListValueForQuirksMode()
115 { 115 {
116 if (!m_classList) 116 if (!m_classList)
117 return; 117 return;
118 m_classList->clearValueForQuirksMode(); 118 m_classList->clearValueForQuirksMode();
119 } 119 }
120 120
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 ASSERT(!m_backdrop); 226 ASSERT(!m_backdrop);
227 } 227 }
228 228
229 inline bool ElementRareData::hasPseudoElements() const 229 inline bool ElementRareData::hasPseudoElements() const
230 { 230 {
231 return m_generatedBefore || m_generatedAfter || m_backdrop; 231 return m_generatedBefore || m_generatedAfter || m_backdrop;
232 } 232 }
233 233
234 inline void ElementRareData::clearPseudoElements() 234 inline void ElementRareData::clearPseudoElements()
235 { 235 {
236 setPseudoElement(BEFORE, 0); 236 setPseudoElement(BEFORE, nullptr);
237 setPseudoElement(AFTER, 0); 237 setPseudoElement(AFTER, nullptr);
238 setPseudoElement(BACKDROP, 0); 238 setPseudoElement(BACKDROP, nullptr);
239 } 239 }
240 240
241 inline void ElementRareData::setPseudoElement(PseudoId pseudoId, PassRefPtr<Pseu doElement> element) 241 inline void ElementRareData::setPseudoElement(PseudoId pseudoId, PassRefPtr<Pseu doElement> element)
242 { 242 {
243 switch (pseudoId) { 243 switch (pseudoId) {
244 case BEFORE: 244 case BEFORE:
245 if (m_generatedBefore) 245 if (m_generatedBefore)
246 m_generatedBefore->dispose(); 246 m_generatedBefore->dispose();
247 m_generatedBefore = element; 247 m_generatedBefore = element;
248 break; 248 break;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 setChildrenAffectedByFirstChildRules(false); 290 setChildrenAffectedByFirstChildRules(false);
291 setChildrenAffectedByLastChildRules(false); 291 setChildrenAffectedByLastChildRules(false);
292 setChildrenAffectedByDirectAdjacentRules(false); 292 setChildrenAffectedByDirectAdjacentRules(false);
293 setChildrenAffectedByForwardPositionalRules(false); 293 setChildrenAffectedByForwardPositionalRules(false);
294 setChildrenAffectedByBackwardPositionalRules(false); 294 setChildrenAffectedByBackwardPositionalRules(false);
295 } 295 }
296 296
297 } // namespace 297 } // namespace
298 298
299 #endif // ElementRareData_h 299 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « Source/core/dom/ElementDataCache.cpp ('k') | Source/core/dom/FullscreenElementStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698