| 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 f7134fd8dc86fe9274d0fc8a430b9c933fc41c9d..e6ea1367784cc7749b2c307b7f81929ed7f372a4 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -3437,6 +3437,13 @@ CSSStyleDeclaration* Element::style()
|
| return &ensureElementRareData().ensureInlineCSSStyleDeclaration(this);
|
| }
|
|
|
| +StylePropertyMap* Element::styleMap()
|
| +{
|
| + if (!isStyledElement())
|
| + return nullptr;
|
| + return &ensureElementRareData().ensureInlineStylePropertyMap(this);
|
| +}
|
| +
|
| MutableStylePropertySet& Element::ensureMutableInlineStyle()
|
| {
|
| DCHECK(isStyledElement());
|
| @@ -3507,20 +3514,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)
|
| {
|
| - DCHECK(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, CSSValue* value, bool important)
|
| {
|
| DCHECK(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)
|
|
|