CSSCustomIdentValue::CSSCustomIdentValue(CSSPropertyID id)
    : CSSValue(CustomIdentClass)
    , m_string()
    , m_propertyId(id)
{
    ASSERT(isKnownPropertyID());
}
Example #2
0
String CSSCustomIdentValue::customCSSText() const {
  if (isKnownPropertyID())
    return getPropertyNameAtomicString(m_propertyId);
  StringBuilder builder;
  serializeIdentifier(m_string, builder);
  return builder.toString();
}
String CSSCustomIdentValue::customCSSText() const
{
    if (isKnownPropertyID())
        return getPropertyNameAtomicString(m_propertyId);
    return quoteCSSStringIfNeeded(m_string);
}