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

Unified Diff: Source/core/css/CSSPrimitiveValue.cpp

Issue 1307673003: Made CSSPrimitiveValue::getString() only work for String types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_out_pair
Patch Set: Review feedback Created 5 years, 4 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: Source/core/css/CSSPrimitiveValue.cpp
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
index 95e9b3b0bbeebe21c38c7dcc41bac05f23bd0d1a..6bc0cf9f93d69d0921c516145bf44294f5c65376 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -748,14 +748,11 @@ String CSSPrimitiveValue::getStringValue() const
case UnitType::Attribute:
case UnitType::URI:
return m_value.string;
- case UnitType::ValueID:
- return valueName(m_value.valueID);
- case UnitType::PropertyID:
- return propertyName(m_value.propertyID);
default:
break;
}
+ ASSERT_NOT_REACHED();
return String();
}

Powered by Google App Engine
This is Rietveld 408576698