bool Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit) { ASSERT(isStyledElement()); ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit)); inlineStyleChanged(); return true; }
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; }
bool Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier) { ASSERT(isStyledElement()); ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier)); inlineStyleChanged(); return true; }
void StyledElement::removeAllInlineStyleProperties() { if (!inlineStyle() || inlineStyle()->isEmpty()) return; ensureMutableInlineStyle().clear(); inlineStyleChanged(); }
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; }
PropertySetCSSStyleDeclaration* StyledElement::inlineStyleCSSOMWrapper() { if (!inlineStyle() || !inlineStyle()->hasCSSOMWrapper()) return 0; PropertySetCSSStyleDeclaration* cssomWrapper = ensureMutableInlineStyle().cssStyleDeclaration(); ASSERT(cssomWrapper && cssomWrapper->parentElement() == this); return cssomWrapper; }
bool StyledElement::removeInlineStyleProperty(CSSPropertyID propertyID) { if (!inlineStyle()) return false; bool changes = ensureMutableInlineStyle().removeProperty(propertyID); if (changes) inlineStyleChanged(); return changes; }
void Element::clearMutableInlineStyleIfEmpty() { if (ensureMutableInlineStyle().isEmpty()) { ensureUniqueElementData().m_inlineStyle.clear(); } }
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; }
CSSStyleDeclaration* StyledElement::style() { return ensureMutableInlineStyle().ensureInlineCSSStyleDeclaration(this); }