| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |