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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp ('k') | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 HeapVector<Member<InsertionPoint>> m_descendantInsertionPoints; 95 HeapVector<Member<InsertionPoint>> m_descendantInsertionPoints;
96 }; 96 };
97 97
98 inline void ShadowRootRareDataV0::didAddInsertionPoint(InsertionPoint* point) { 98 inline void ShadowRootRareDataV0::didAddInsertionPoint(InsertionPoint* point) {
99 DCHECK(point); 99 DCHECK(point);
100 if (isHTMLShadowElement(*point)) 100 if (isHTMLShadowElement(*point))
101 ++m_descendantShadowElementCount; 101 ++m_descendantShadowElementCount;
102 else if (isHTMLContentElement(*point)) 102 else if (isHTMLContentElement(*point))
103 ++m_descendantContentElementCount; 103 ++m_descendantContentElementCount;
104 else 104 else
105 ASSERT_NOT_REACHED(); 105 NOTREACHED();
106 } 106 }
107 107
108 inline void ShadowRootRareDataV0::didRemoveInsertionPoint( 108 inline void ShadowRootRareDataV0::didRemoveInsertionPoint(
109 InsertionPoint* point) { 109 InsertionPoint* point) {
110 DCHECK(point); 110 DCHECK(point);
111 if (isHTMLShadowElement(*point)) { 111 if (isHTMLShadowElement(*point)) {
112 DCHECK_GT(m_descendantShadowElementCount, 0u); 112 DCHECK_GT(m_descendantShadowElementCount, 0u);
113 --m_descendantShadowElementCount; 113 --m_descendantShadowElementCount;
114 } else if (isHTMLContentElement(*point)) { 114 } else if (isHTMLContentElement(*point)) {
115 DCHECK_GT(m_descendantContentElementCount, 0u); 115 DCHECK_GT(m_descendantContentElementCount, 0u);
116 --m_descendantContentElementCount; 116 --m_descendantContentElementCount;
117 } else { 117 } else {
118 ASSERT_NOT_REACHED(); 118 NOTREACHED();
119 } 119 }
120 } 120 }
121 121
122 } // namespace blink 122 } // namespace blink
123 123
124 #endif 124 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698