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

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

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 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) 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 m_isElementRareData = true; 180 m_isElementRareData = true;
181 } 181 }
182 182
183 inline ElementRareData::~ElementRareData() 183 inline ElementRareData::~ElementRareData()
184 { 184 {
185 #if !ENABLE(OILPAN) 185 #if !ENABLE(OILPAN)
186 if (m_elementAnimations) 186 if (m_elementAnimations)
187 m_elementAnimations->dispose(); 187 m_elementAnimations->dispose();
188 if (m_intersectionObserverData) 188 if (m_intersectionObserverData)
189 m_intersectionObserverData->dispose(); 189 m_intersectionObserverData->dispose();
190 ASSERT(!m_shadow); 190 DCHECK(!m_shadow);
191 #endif 191 #endif
192 ASSERT(!m_generatedBefore); 192 DCHECK(!m_generatedBefore);
193 ASSERT(!m_generatedAfter); 193 DCHECK(!m_generatedAfter);
194 ASSERT(!m_generatedFirstLetter); 194 DCHECK(!m_generatedFirstLetter);
195 ASSERT(!m_backdrop); 195 DCHECK(!m_backdrop);
196 } 196 }
197 197
198 inline bool ElementRareData::hasPseudoElements() const 198 inline bool ElementRareData::hasPseudoElements() const
199 { 199 {
200 return m_generatedBefore || m_generatedAfter || m_backdrop || m_generatedFir stLetter; 200 return m_generatedBefore || m_generatedAfter || m_backdrop || m_generatedFir stLetter;
201 } 201 }
202 202
203 inline void ElementRareData::clearPseudoElements() 203 inline void ElementRareData::clearPseudoElements()
204 { 204 {
205 setPseudoElement(PseudoIdBefore, nullptr); 205 setPseudoElement(PseudoIdBefore, nullptr);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet() 267 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet()
268 { 268 {
269 if (!m_proxiedProperties) 269 if (!m_proxiedProperties)
270 m_proxiedProperties = CompositorProxiedPropertySet::create(); 270 m_proxiedProperties = CompositorProxiedPropertySet::create();
271 return *m_proxiedProperties; 271 return *m_proxiedProperties;
272 } 272 }
273 273
274 } // namespace blink 274 } // namespace blink
275 275
276 #endif // ElementRareData_h 276 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementDataCache.cpp ('k') | third_party/WebKit/Source/core/dom/ElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698