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

Unified Diff: Source/core/dom/Element.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index d7b4a1239835cec7ba4f6b992c0368b535cda941..d360cfb84990326dd3ea09bd385472ad151060e2 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2629,7 +2629,7 @@ DOMStringMap& Element::dataset()
KURL Element::getURLAttribute(const QualifiedName& name) const
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
if (elementData()) {
if (const Attribute* attribute = attributes().find(name))
ASSERT(isURLAttribute(*attribute));
@@ -2640,7 +2640,7 @@ KURL Element::getURLAttribute(const QualifiedName& name) const
KURL Element::getNonEmptyURLAttribute(const QualifiedName& name) const
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
if (elementData()) {
if (const Attribute* attribute = attributes().find(name))
ASSERT(isURLAttribute(*attribute));
@@ -2772,7 +2772,7 @@ bool Element::isSpellCheckingEnabled() const
return true;
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool Element::fastAttributeLookupAllowed(const QualifiedName& name) const
{
if (name == HTMLNames::styleAttr)

Powered by Google App Engine
This is Rietveld 408576698