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

Unified Diff: Source/platform/image-decoders/ImageFrame.cpp

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/platform/image-decoders/ImageFrame.h ('k') | Source/wtf/dtoa/cached-powers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/image-decoders/ImageFrame.cpp
diff --git a/Source/platform/image-decoders/ImageFrame.cpp b/Source/platform/image-decoders/ImageFrame.cpp
index df42d58e4225adf17e31d948dadb8c18a3d80b2a..2708444e70c1fb854101ea8f5a778c6add374888 100644
--- a/Source/platform/image-decoders/ImageFrame.cpp
+++ b/Source/platform/image-decoders/ImageFrame.cpp
@@ -39,7 +39,7 @@ ImageFrame::ImageFrame()
, m_premultiplyAlpha(true)
, m_pixelsChanged(false)
, m_requiredPreviousFrameIndex(kNotFound)
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
, m_requiredPreviousFrameIndexValid(false)
#endif
{
@@ -69,7 +69,7 @@ ImageFrame& ImageFrame::operator=(const ImageFrame& other)
setHasAlpha(other.hasAlpha());
// Copy raw fields to avoid ASSERT failure in requiredPreviousFrameIndex().
m_requiredPreviousFrameIndex = other.m_requiredPreviousFrameIndex;
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
m_requiredPreviousFrameIndexValid = other.m_requiredPreviousFrameIndexValid;
#endif
return *this;
« no previous file with comments | « Source/platform/image-decoders/ImageFrame.h ('k') | Source/wtf/dtoa/cached-powers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698