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