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

Unified Diff: third_party/WebKit/Source/core/dom/ElementData.cpp

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ElementData.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementData.cpp b/third_party/WebKit/Source/core/dom/ElementData.cpp
index 3774cb63761b62e003a19dd1a307ac536d861474..b2572cadc9eea5901ef790d54a9bba1204c71c73 100644
--- a/third_party/WebKit/Source/core/dom/ElementData.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementData.cpp
@@ -151,7 +151,7 @@ ShareableElementData::~ShareableElementData()
ShareableElementData::ShareableElementData(const UniqueElementData& other)
: ElementData(other, false)
{
- ASSERT(!other.m_presentationAttributeStyle);
+ DCHECK(!other.m_presentationAttributeStyle);
if (other.m_inlineStyle) {
m_inlineStyle = other.m_inlineStyle->immutableCopyIfNeeded();
@@ -183,7 +183,7 @@ UniqueElementData::UniqueElementData(const ShareableElementData& other)
: ElementData(other, true)
{
// An ShareableElementData should never have a mutable inline StylePropertySet attached.
- ASSERT(!other.m_inlineStyle || !other.m_inlineStyle->isMutable());
+ DCHECK(!other.m_inlineStyle || !other.m_inlineStyle->isMutable());
m_inlineStyle = other.m_inlineStyle;
unsigned length = other.attributes().size();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ElementDataCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698