| 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 bfaa2f8bb88134a6766ff2b6fdf50b6ff9cea07d..fd79b779eabf4799b7ba977e3148225b61db4544 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -3908,21 +3908,23 @@ bool Element::setInlineStyleProperty(CSSPropertyID propertyID,
|
| const String& value,
|
| bool important) {
|
| DCHECK(isStyledElement());
|
| - bool changes = ensureMutableInlineStyle().setProperty(
|
| - propertyID, value, important, document().elementSheet().contents());
|
| - if (changes)
|
| + bool didChange = ensureMutableInlineStyle()
|
| + .setProperty(propertyID, value, important,
|
| + document().elementSheet().contents())
|
| + .didChange;
|
| + if (didChange)
|
| inlineStyleChanged();
|
| - return changes;
|
| + return didChange;
|
| }
|
|
|
| bool Element::removeInlineStyleProperty(CSSPropertyID propertyID) {
|
| DCHECK(isStyledElement());
|
| if (!inlineStyle())
|
| return false;
|
| - bool changes = ensureMutableInlineStyle().removeProperty(propertyID);
|
| - if (changes)
|
| + bool didChange = ensureMutableInlineStyle().removeProperty(propertyID);
|
| + if (didChange)
|
| inlineStyleChanged();
|
| - return changes;
|
| + return didChange;
|
| }
|
|
|
| void Element::removeAllInlineStyleProperties() {
|
|
|