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

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

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PseudoElementData_h 5 #ifndef PseudoElementData_h
6 #define PseudoElementData_h 6 #define PseudoElementData_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 if (m_backdrop) 66 if (m_backdrop)
67 m_backdrop->dispose(); 67 m_backdrop->dispose();
68 m_backdrop = element; 68 m_backdrop = element;
69 break; 69 break;
70 case PseudoIdFirstLetter: 70 case PseudoIdFirstLetter:
71 if (m_generatedFirstLetter) 71 if (m_generatedFirstLetter)
72 m_generatedFirstLetter->dispose(); 72 m_generatedFirstLetter->dispose();
73 m_generatedFirstLetter = element; 73 m_generatedFirstLetter = element;
74 break; 74 break;
75 default: 75 default:
76 ASSERT_NOT_REACHED(); 76 NOTREACHED();
77 } 77 }
78 } 78 }
79 79
80 inline PseudoElement* PseudoElementData::pseudoElement( 80 inline PseudoElement* PseudoElementData::pseudoElement(
81 PseudoId pseudoId) const { 81 PseudoId pseudoId) const {
82 switch (pseudoId) { 82 switch (pseudoId) {
83 case PseudoIdBefore: 83 case PseudoIdBefore:
84 return m_generatedBefore; 84 return m_generatedBefore;
85 case PseudoIdAfter: 85 case PseudoIdAfter:
86 return m_generatedAfter; 86 return m_generatedAfter;
87 case PseudoIdBackdrop: 87 case PseudoIdBackdrop:
88 return m_backdrop; 88 return m_backdrop;
89 case PseudoIdFirstLetter: 89 case PseudoIdFirstLetter:
90 return m_generatedFirstLetter; 90 return m_generatedFirstLetter;
91 default: 91 default:
92 return nullptr; 92 return nullptr;
93 } 93 }
94 } 94 }
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // PseudoElementData_h 98 #endif // PseudoElementData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/PseudoElement.cpp ('k') | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698