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

Side by Side Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 if (!m_refCount) 159 if (!m_refCount)
160 destroy(); 160 destroy();
161 } 161 }
162 162
163 void combine(const InvalidationSet& other); 163 void combine(const InvalidationSet& other);
164 164
165 protected: 165 protected:
166 explicit InvalidationSet(InvalidationType); 166 explicit InvalidationSet(InvalidationType);
167 167
168 ~InvalidationSet() { 168 ~InvalidationSet() {
169 RELEASE_ASSERT(m_isAlive); 169 CHECK(m_isAlive);
170 m_isAlive = false; 170 m_isAlive = false;
171 } 171 }
172 172
173 private: 173 private:
174 void destroy(); 174 void destroy();
175 175
176 HashSet<AtomicString>& ensureClassSet(); 176 HashSet<AtomicString>& ensureClassSet();
177 HashSet<AtomicString>& ensureIdSet(); 177 HashSet<AtomicString>& ensureIdSet();
178 HashSet<AtomicString>& ensureTagNameSet(); 178 HashSet<AtomicString>& ensureTagNameSet();
179 HashSet<AtomicString>& ensureAttributeSet(); 179 HashSet<AtomicString>& ensureAttributeSet();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 value.isDescendantInvalidationSet()); 281 value.isDescendantInvalidationSet());
282 DEFINE_TYPE_CASTS(SiblingInvalidationSet, 282 DEFINE_TYPE_CASTS(SiblingInvalidationSet,
283 InvalidationSet, 283 InvalidationSet,
284 value, 284 value,
285 value->isSiblingInvalidationSet(), 285 value->isSiblingInvalidationSet(),
286 value.isSiblingInvalidationSet()); 286 value.isSiblingInvalidationSet());
287 287
288 } // namespace blink 288 } // namespace blink
289 289
290 #endif // InvalidationSet_h 290 #endif // InvalidationSet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698