Index: third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
index e9e3cf3bdc53a5d22a32d5addb6dcf33e797b681..a1a3661c28568e2eae72eec999eae4e668f4e259 100644 |
--- a/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
@@ -12,10 +12,22 @@ namespace blink { |
CSSCustomIdentValue::CSSCustomIdentValue(const String& str) |
: CSSValue(CustomIdentClass) |
- , m_string(str) { } |
+ , m_string(str) |
+ , m_propertyId(CSSPropertyInvalid) { } |
+ |
+CSSCustomIdentValue::CSSCustomIdentValue(CSSPropertyID id) |
+ : CSSValue(CustomIdentClass) |
+ , m_string() |
+ , m_propertyId(id) |
+{ |
+ ASSERT(isKnownPropertyID()); |
+} |
+ |
String CSSCustomIdentValue::customCSSText() const |
{ |
+ if (isKnownPropertyID()) |
+ return getPropertyNameAtomicString(m_propertyId); |
return quoteCSSStringIfNeeded(m_string); |
} |