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

Unified Diff: third_party/WebKit/Source/core/html/forms/ColorInputType.cpp

Issue 2097313002: Replace ASSERT macros with DCHECK, etc. in core/html/forms/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/forms/ColorInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
index e7510c540ace725c33feadbcd19dc5b937c6eda2..3dd217acfd75aa5dfe7a994dca9ae9476ac6e6a8 100644
--- a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
@@ -134,13 +134,13 @@ Color ColorInputType::valueAsColor() const
{
Color color;
bool success = color.setFromString(element().value());
- ASSERT_UNUSED(success, success);
+ DCHECK(success);
return color;
}
void ColorInputType::createShadowSubtree()
{
- ASSERT(element().shadow());
+ DCHECK(element().shadow());
Document& document = element().document();
HTMLDivElement* wrapperElement = HTMLDivElement::create(document);

Powered by Google App Engine
This is Rietveld 408576698