コード例 #1
0
ファイル: Element.cpp プロジェクト: ksimbili/sky_engine
bool Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit)
{
    ASSERT(isStyledElement());
    ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit));
    inlineStyleChanged();
    return true;
}
コード例 #2
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
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;
}
コード例 #3
0
ファイル: Element.cpp プロジェクト: ksimbili/sky_engine
bool Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier)
{
    ASSERT(isStyledElement());
    ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier));
    inlineStyleChanged();
    return true;
}
コード例 #4
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
void StyledElement::removeAllInlineStyleProperties()
{
    if (!inlineStyle() || inlineStyle()->isEmpty())
        return;
    ensureMutableInlineStyle().clear();
    inlineStyleChanged();
}
コード例 #5
0
ファイル: Element.cpp プロジェクト: ksimbili/sky_engine
void Element::removeAllInlineStyleProperties()
{
    ASSERT(isStyledElement());
    if (!inlineStyle())
        return;
    ensureMutableInlineStyle().clear();
    inlineStyleChanged();
}
コード例 #6
0
ファイル: Element.cpp プロジェクト: ksimbili/sky_engine
bool Element::setInlineStyleProperty(CSSPropertyID propertyID, const String& value)
{
    ASSERT(isStyledElement());
    bool changes = ensureMutableInlineStyle().setProperty(propertyID, value, document().elementSheet().contents());
    if (changes)
        inlineStyleChanged();
    return changes;
}
コード例 #7
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
PropertySetCSSStyleDeclaration* StyledElement::inlineStyleCSSOMWrapper()
{
    if (!inlineStyle() || !inlineStyle()->hasCSSOMWrapper())
        return 0;
    PropertySetCSSStyleDeclaration* cssomWrapper = ensureMutableInlineStyle().cssStyleDeclaration();
    ASSERT(cssomWrapper && cssomWrapper->parentElement() == this);
    return cssomWrapper;
}
コード例 #8
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
bool StyledElement::removeInlineStyleProperty(CSSPropertyID propertyID)
{
    if (!inlineStyle())
        return false;
    bool changes = ensureMutableInlineStyle().removeProperty(propertyID);
    if (changes)
        inlineStyleChanged();
    return changes;
}
コード例 #9
0
ファイル: Element.cpp プロジェクト: ksimbili/sky_engine
void Element::clearMutableInlineStyleIfEmpty()
{
    if (ensureMutableInlineStyle().isEmpty()) {
        ensureUniqueElementData().m_inlineStyle.clear();
    }
}
コード例 #10
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitTypes unit, bool important)
{
    ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit), important);
    inlineStyleChanged();
    return true;
}
コード例 #11
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, CSSPropertyID identifier, bool important)
{
    ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important);
    inlineStyleChanged();
    return true;
}
コード例 #12
0
ファイル: StyledElement.cpp プロジェクト: biddyweb/switch-oss
CSSStyleDeclaration* StyledElement::style()
{
    return ensureMutableInlineStyle().ensureInlineCSSStyleDeclaration(this);
}