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(); |
} |