| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index df7cfc8d14fcaeeffc9cf1d8ac3a0cde8982f163..4a4ef0569508f30a08b0697bcaf95d736e25c699 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1110,11 +1110,13 @@ void Element::attributeChanged(const QualifiedName& name, const AtomicString& ne
|
| StyleResolver* styleResolver = document().styleResolver();
|
| bool testShouldInvalidateStyle = inActiveDocument() && styleResolver && styleChangeType() < SubtreeStyleChange;
|
|
|
| - if (isStyledElement() && name == styleAttr) {
|
| - styleAttributeChanged(newValue, reason);
|
| - } else if (isStyledElement() && isPresentationAttribute(name)) {
|
| - elementData()->m_presentationAttributeStyleIsDirty = true;
|
| - setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::fromAttribute(name));
|
| + if (isStyledElement()) {
|
| + if (name == styleAttr) {
|
| + styleAttributeChanged(newValue, reason);
|
| + } else if (isPresentationAttribute(name)) {
|
| + elementData()->m_presentationAttributeStyleIsDirty = true;
|
| + setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::fromAttribute(name));
|
| + }
|
| }
|
|
|
| if (name == HTMLNames::idAttr) {
|
|
|