Chromium Code Reviews| Index: Source/core/dom/Element.cpp |
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
| index 1997e9d06bbfe6c070e576ec7ed8cd2d48d31677..c19f22870d364f717767a9dbcc67b0d3911e9c03 100644 |
| --- a/Source/core/dom/Element.cpp |
| +++ b/Source/core/dom/Element.cpp |
| @@ -2801,7 +2801,7 @@ void Element::willModifyAttribute(const QualifiedName& name, const AtomicString& |
| } |
| if (oldValue != newValue) { |
| - if (inActiveDocument()) |
| + if (inActiveDocument() && document().styleResolver() && styleChangeType() < SubtreeStyleChange) |
|
ojan
2014/05/08 19:14:56
We chatted about this in person. I'm not sure the
esprehn
2014/05/08 19:17:56
Yeah it doesn't seem like we do that anymore, want
|
| document().ensureStyleResolver().ensureUpdatedRuleFeatureSet().scheduleStyleInvalidationForAttributeChange(name, *this); |
| if (isUpgradedCustomElement()) |