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

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: Small fix 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 414056f14f4ea532b5623f39e230b67021bdbc22..bcf12717c54e0bf41b70c9834aa301f6232a2009 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