| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 252dd3e260a04e082151dd33fe177ee77c61aa72..5a9d9eae3c14811a1c7ef4991f279136c464a0ef 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -3427,6 +3427,13 @@ CSSStyleDeclaration* Element::style()
|
| return &ensureElementRareData().ensureInlineCSSStyleDeclaration(this);
|
| }
|
|
|
| +StylePropertyMap* Element::styleMap()
|
| +{
|
| + if (!isStyledElement())
|
| + return nullptr;
|
| + return &ensureElementRareData().ensureInlineStylePropertyMap(this);
|
| +}
|
| +
|
| MutableStylePropertySet& Element::ensureMutableInlineStyle()
|
| {
|
| ASSERT(isStyledElement());
|
| @@ -3497,20 +3504,21 @@ void Element::inlineStyleChanged()
|
| InspectorInstrumentation::didInvalidateStyleAttr(this);
|
| }
|
|
|
| -bool Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important)
|
| +void Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important)
|
| {
|
| - ASSERT(isStyledElement());
|
| - ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important);
|
| - inlineStyleChanged();
|
| - return true;
|
| + setInlineStyleProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important);
|
| +}
|
| +
|
| +void Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit, bool important)
|
| +{
|
| + setInlineStyleProperty(propertyID, cssValuePool().createValue(value, unit), important);
|
| }
|
|
|
| -bool Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit, bool important)
|
| +void Element::setInlineStyleProperty(CSSPropertyID propertyID, const RawPtr<CSSValue> value, bool important)
|
| {
|
| ASSERT(isStyledElement());
|
| - ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit), important);
|
| + ensureMutableInlineStyle().setProperty(propertyID, value, important);
|
| inlineStyleChanged();
|
| - return true;
|
| }
|
|
|
| bool Element::setInlineStyleProperty(CSSPropertyID propertyID, const String& value, bool important)
|
|
|