Example #1
0
String CSSCustomIdentValue::customCSSText() const {
  if (isKnownPropertyID())
    return getPropertyNameAtomicString(m_propertyId);
  StringBuilder builder;
  serializeIdentifier(m_string, builder);
  return builder.toString();
}
Example #2
0
static const AtomicString& propertyName(CSSPropertyID propertyID)
{
    ASSERT_ARG(propertyID, propertyID >= 0);
    ASSERT_ARG(propertyID, (propertyID >= firstCSSProperty && propertyID < firstCSSProperty + numCSSProperties));

    if (propertyID < 0)
        return nullAtom;

    return getPropertyNameAtomicString(propertyID);
}
String CSSCustomIdentValue::customCSSText() const
{
    if (isKnownPropertyID())
        return getPropertyNameAtomicString(m_propertyId);
    return quoteCSSStringIfNeeded(m_string);
}
static const AtomicString& propertyName(CSSPropertyID propertyID)
{
    return getPropertyNameAtomicString(propertyID);
}