Ejemplo n.º 1
0
void AbstractPropertySetCSSStyleDeclaration::setProperty(
    const String& propertyName,
    const String& value,
    const String& priority,
    ExceptionState& exceptionState) {
  CSSPropertyID propertyID = unresolvedCSSPropertyID(propertyName);
  if (!propertyID)
    return;

  bool important = equalIgnoringCase(priority, "important");
  if (!important && !priority.isEmpty())
    return;

  setPropertyInternal(propertyID, propertyName, value, important,
                      exceptionState);
}
CSSPropertyID CSSParserToken::parseAsUnresolvedCSSPropertyID() const
{
    ASSERT(m_type == IdentToken);
    return unresolvedCSSPropertyID(value());
}