Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index b807b0af47410530e24e63fbc8f25bc17a822490..07cb75235c9aa0c774bdf76e756a9f06a1bbb2bf 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1568,6 +1568,8 @@ void Element::recalcChildStyle(StyleChange change) |
if (shouldRecalcStyle(change, element)) { |
parentPusher.push(); |
didReattach = element->recalcStyle(change); |
+ } else { |
+ document().styleResolver()->addToStyleSharingList(element); |
} |
} |