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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h

Issue 2751483005: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ (Closed)
Patch Set: rebase Created 3 years, 9 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/parser/HTMLSrcsetParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
index 48e9d7b1346c79b0011ebc563cc69edfa0f78c0a..6044e8c3dd0aee32dba5f96f0134e64d4ec2208d 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h
@@ -57,28 +57,28 @@ class DescriptorParsingResult {
bool hasHeight() const { return m_resourceHeight >= 0; }
float density() const {
- ASSERT(hasDensity());
+ DCHECK(hasDensity());
return m_density;
}
unsigned getResourceWidth() const {
- ASSERT(hasWidth());
+ DCHECK(hasWidth());
return m_resourceWidth;
}
unsigned resourceHeight() const {
- ASSERT(hasHeight());
+ DCHECK(hasHeight());
return m_resourceHeight;
}
void setResourceWidth(int width) {
- ASSERT(width >= 0);
+ DCHECK_GE(width, 0);
m_resourceWidth = (unsigned)width;
}
void setResourceHeight(int height) {
- ASSERT(height >= 0);
+ DCHECK_GE(height, 0);
m_resourceHeight = (unsigned)height;
}
void setDensity(float densityToSet) {
- ASSERT(densityToSet >= 0);
+ DCHECK_GE(densityToSet, 0);
m_density = densityToSet;
}

Powered by Google App Engine
This is Rietveld 408576698