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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageSetValue.cpp

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 2 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/css/CSSImageSetValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
index e13ed57f2b3275754d99ca53bf5602a619aefc2f..de1297df88304dda61867a080da6dd61cf8f0623 100644
--- a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
@@ -56,7 +56,7 @@ void CSSImageSetValue::fillImageSet() {
String imageURL = imageValue.url();
++i;
- ASSERT_WITH_SECURITY_IMPLICATION(i < length);
+ SECURITY_DCHECK(i < length);
const CSSValue& scaleFactorValue = item(i);
float scaleFactor = toCSSPrimitiveValue(scaleFactorValue).getFloatValue();
@@ -147,7 +147,7 @@ String CSSImageSetValue::customCSSText() const {
result.append(' ');
++i;
- ASSERT_WITH_SECURITY_IMPLICATION(i < length);
+ SECURITY_DCHECK(i < length);
const CSSValue& scaleFactorValue = item(i);
result.append(scaleFactorValue.cssText());
// FIXME: Eventually the scale factor should contain it's own unit
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp ('k') | third_party/WebKit/Source/core/css/FontStyleMatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698