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

Unified Diff: Source/core/html/parser/BackgroundHTMLInputStream.h

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/html/parser/BackgroundHTMLInputStream.h
diff --git a/Source/core/html/parser/BackgroundHTMLInputStream.h b/Source/core/html/parser/BackgroundHTMLInputStream.h
index ba12b63e070af90603e21eb35396756bc67e9be9..a6fce7de4595d2f97f1ae4c4f8d46bbc34d54866 100644
--- a/Source/core/html/parser/BackgroundHTMLInputStream.h
+++ b/Source/core/html/parser/BackgroundHTMLInputStream.h
@@ -60,7 +60,7 @@ private:
size_t numberOfSegmentsAlreadyAppended;
size_t tokensExtractedSincePreviousCheckpoint;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool isNull() const { return input.isEmpty() && !numberOfSegmentsAlreadyAppended; }
#endif
void clear() { input.clear(); numberOfSegmentsAlreadyAppended = 0; tokensExtractedSincePreviousCheckpoint = 0;}

Powered by Google App Engine
This is Rietveld 408576698