| 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 0c31e20d226e9dc20127852fee2a8992a415a048..04e85d716498688710b0384aaeff94a8ff3d2557 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1328,12 +1328,6 @@ void Element::attributeChanged(const AttributeModificationParams& params) {
|
|
|
| invalidateNodeListCachesInAncestors(&name, this);
|
|
|
| - // If there is currently no StyleResolver, we can't be sure that this
|
| - // attribute change won't affect style.
|
| - if (!document().styleResolver())
|
| - setNeedsStyleRecalc(SubtreeStyleChange,
|
| - StyleChangeReasonForTracing::fromAttribute(name));
|
| -
|
| if (isConnected()) {
|
| if (AXObjectCache* cache = document().existingAXObjectCache())
|
| cache->handleAttributeChanged(name, this);
|
| @@ -2366,9 +2360,6 @@ void Element::checkForEmptyStyleChange() {
|
| return;
|
| if (!inActiveDocument())
|
| return;
|
| - if (!document().styleResolver())
|
| - return;
|
| -
|
| if (!style ||
|
| (styleAffectedByEmpty() && (!style->emptyState() || hasChildren())))
|
| pseudoStateChanged(CSSSelector::PseudoEmpty);
|
|
|