void StyledElement::removeAllInlineStyleProperties() { if (!inlineStyle() || inlineStyle()->isEmpty()) return; ensureMutableInlineStyle().clear(); inlineStyleChanged(); }
PropertySetCSSStyleDeclaration* StyledElement::inlineStyleCSSOMWrapper() { if (!inlineStyle() || !inlineStyle()->hasCSSOMWrapper()) return 0; PropertySetCSSStyleDeclaration* cssomWrapper = ensureMutableInlineStyle().cssStyleDeclaration(); ASSERT(cssomWrapper && cssomWrapper->parentElement() == this); return cssomWrapper; }
void Element::removeAllInlineStyleProperties() { ASSERT(isStyledElement()); if (!inlineStyle()) return; ensureMutableInlineStyle().clear(); inlineStyleChanged(); }
bool StyledElement::removeInlineStyleProperty(CSSPropertyID propertyID) { if (!inlineStyle()) return false; bool changes = ensureMutableInlineStyle().removeProperty(propertyID); if (changes) inlineStyleChanged(); return changes; }
bool Element::supportsStyleSharing() const { if (!isStyledElement() || !parentElement()) return false; // If the element has inline style it is probably unique. if (inlineStyle()) return false; // Ids stop style sharing if they show up in the stylesheets. if (hasID() && affectedByIdSelector(idForStyleResolution())) return false; // :active and :hover elements always make a chain towards the document node // and no siblings or cousins will have the same state. if (isUserActionElement()) return false; return true; }