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

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.cpp

Issue 2727843003: Replace RELEASE_ASSERT with CHECK in core/{dom,editing,html} (Closed)
Patch Set: Add a comment Created 3 years, 10 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/html/ImageDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
index 1744b0f15100a28ee7ed3f094c4e649ef41e4ddd..a434d553edfa512118e0b2d52c4c777d62e29585 100644
--- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
+++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
@@ -148,7 +148,7 @@ void ImageDocumentParser::appendBytes(const char* data, size_t length) {
return;
if (document()->cachedImageResourceDeprecated()) {
- RELEASE_ASSERT(length <= std::numeric_limits<unsigned>::max());
+ CHECK_LE(length, std::numeric_limits<unsigned>::max());
// If decoding has already failed, there's no point in sending additional
// data to the ImageResource.
if (document()->cachedImageResourceDeprecated()->getStatus() !=

Powered by Google App Engine
This is Rietveld 408576698