Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 017879d35e6ef4f6e16e16e37452d3243bef079d..217380a80434683c731f51cf968495dda60e795c 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1468,9 +1468,10 @@ void Element::recalcStyle(StyleChange change) |
if (shouldRecalcStyle(change, this)) |
updatePseudoElement(AFTER, change); |
+ setAttached(); |
clearNeedsStyleRecalc(); |
clearChildNeedsStyleRecalc(); |
- |
+ |
if (hasCustomStyleCallbacks()) |
didRecalcStyle(change); |
InspectorInstrumentation::didRecalculateStyleForElement(this); |