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

Unified Diff: third_party/WebKit/Source/core/css/StyleAutoColor.h

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: Patch for landing adding TODO Created 4 years 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/StyleAutoColor.h
diff --git a/third_party/WebKit/Source/core/css/StyleAutoColor.h b/third_party/WebKit/Source/core/css/StyleAutoColor.h
index c3bb6ea7669aaa6f642716976c754c95514ba093..c35799df4343146c2ba7950a7ee39271cf78c311 100644
--- a/third_party/WebKit/Source/core/css/StyleAutoColor.h
+++ b/third_party/WebKit/Source/core/css/StyleAutoColor.h
@@ -34,8 +34,10 @@ class StyleAutoColor {
}
StyleColor toStyleColor() const {
+ DCHECK(m_type != ValueType::Auto);
if (m_type == ValueType::SpecifiedColor)
return StyleColor(m_color);
+ DCHECK(m_type == ValueType::CurrentColor);
return StyleColor::currentColor();
}

Powered by Google App Engine
This is Rietveld 408576698