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 575b315200c86f5f591b7e574ae3f19c22bd5757..35a1d56049ba7abad9aa03485d2a24aeb7f57566 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -1548,8 +1548,6 @@ void Element::removedFrom(ContainerNode* insertionPoint) |
if (ElementAnimations* elementAnimations = data->elementAnimations()) |
elementAnimations->cssAnimations().cancel(); |
} |
- |
- document().styleEngine().styleInvalidator().clearInvalidation(*this); |
} |
void Element::attach(const AttachContext& context) |
@@ -1636,6 +1634,8 @@ void Element::detach(const AttachContext& context) |
document().userActionElements().didDetach(*this); |
} |
+ document().styleEngine().styleInvalidator().clearInvalidation(*this); |
+ |
if (svgFilterNeedsLayerUpdate()) |
document().unscheduleSVGFilterLayerUpdateHack(*this); |