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; |
} |