bool Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier) { ASSERT(isStyledElement()); ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier)); inlineStyleChanged(); return true; }
bool Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit) { ASSERT(isStyledElement()); ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit)); inlineStyleChanged(); return true; }
void StyledElement::removeAllInlineStyleProperties() { if (!inlineStyle() || inlineStyle()->isEmpty()) return; ensureMutableInlineStyle().clear(); inlineStyleChanged(); }
bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, const String& value, bool important) { bool changes = ensureMutableInlineStyle().setProperty(propertyID, value, important, &document().elementSheet().contents()); if (changes) inlineStyleChanged(); return changes; }
void Element::removeAllInlineStyleProperties() { ASSERT(isStyledElement()); if (!inlineStyle()) return; ensureMutableInlineStyle().clear(); inlineStyleChanged(); }
bool Element::setInlineStyleProperty(CSSPropertyID propertyID, const String& value) { ASSERT(isStyledElement()); bool changes = ensureMutableInlineStyle().setProperty(propertyID, value, document().elementSheet().contents()); if (changes) inlineStyleChanged(); return changes; }
bool StyledElement::removeInlineStyleProperty(CSSPropertyID propertyID) { if (!inlineStyle()) return false; bool changes = ensureMutableInlineStyle().removeProperty(propertyID); if (changes) inlineStyleChanged(); return changes; }
bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitTypes unit, bool important) { ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit), important); inlineStyleChanged(); return true; }
bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, CSSPropertyID identifier, bool important) { ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important); inlineStyleChanged(); return true; }