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