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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.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/platform/graphics/filters/FEComponentTransfer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
index 864a21ff50dc02764eedab2b880bbf9ca683b9d6..22fa4d465c085e7fb662c7da4e0267fad20d6bec 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
@@ -160,9 +160,8 @@ void FEComponentTransfer::getValues(unsigned char rValues[256],
discrete, linear, gamma};
for (unsigned channel = 0; channel < 4; channel++) {
- ASSERT_WITH_SECURITY_IMPLICATION(
- static_cast<size_t>(transferFunction[channel].type) <
- WTF_ARRAY_LENGTH(callEffect));
+ SECURITY_DCHECK(static_cast<size_t>(transferFunction[channel].type) <
+ WTF_ARRAY_LENGTH(callEffect));
(*callEffect[transferFunction[channel].type])(tables[channel],
transferFunction[channel]);
}

Powered by Google App Engine
This is Rietveld 408576698