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

Unified Diff: third_party/WebKit/Source/core/css/FontStyleMatcher.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/FontStyleMatcher.cpp
diff --git a/third_party/WebKit/Source/core/css/FontStyleMatcher.cpp b/third_party/WebKit/Source/core/css/FontStyleMatcher.cpp
index f3cddeb87bc8384cbd9dffe5b526926f9e6420b5..15011eea8d100d6433b17e95821b03552b206bad 100644
--- a/third_party/WebKit/Source/core/css/FontStyleMatcher.cpp
+++ b/third_party/WebKit/Source/core/css/FontStyleMatcher.cpp
@@ -57,8 +57,8 @@ static inline unsigned styleScore(FontTraits desired, FontTraits candidate) {
// highest.
{0, 1, 2}};
- ASSERT_WITH_SECURITY_IMPLICATION(desired.style() < FontStyleItalic + 1);
- ASSERT_WITH_SECURITY_IMPLICATION(candidate.style() < FontStyleItalic + 1);
+ SECURITY_DCHECK(desired.style() < FontStyleItalic + 1);
+ SECURITY_DCHECK(candidate.style() < FontStyleItalic + 1);
return styleScoreLookupTable[desired.style()][candidate.style()];
}
@@ -96,8 +96,8 @@ static inline unsigned weightScore(FontTraits desired, FontTraits candidate) {
unsigned desiredScoresLookup = static_cast<unsigned>(desired.weight());
unsigned candidateScoreLookup = static_cast<unsigned>(candidate.weight());
- ASSERT_WITH_SECURITY_IMPLICATION(desiredScoresLookup < scoreLookupSize);
- ASSERT_WITH_SECURITY_IMPLICATION(candidateScoreLookup < scoreLookupSize);
+ SECURITY_DCHECK(desiredScoresLookup < scoreLookupSize);
+ SECURITY_DCHECK(candidateScoreLookup < scoreLookupSize);
return weightScoreLookup[desiredScoresLookup][candidateScoreLookup];
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageSetValue.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698