| 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 63df73dbe813f155d403d0174a7531425355644e..9452c69ea5f4109c773b70a98ef91b259b11476d 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -3434,6 +3434,13 @@ CSSStyleDeclaration* Element::style()
|
| return &ensureElementRareData().ensureInlineCSSStyleDeclaration(this);
|
| }
|
|
|
| +StylePropertyMap* Element::styleMap()
|
| +{
|
| + if (!isStyledElement())
|
| + return nullptr;
|
| + return &ensureElementRareData().ensureInlineStylePropertyMap(this);
|
| +}
|
| +
|
| MutableStylePropertySet& Element::ensureMutableInlineStyle()
|
| {
|
| ASSERT(isStyledElement());
|
| @@ -3504,20 +3511,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)
|
|
|