Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index c1692498bb3c514883c54b58ce70dffce85383a9..02518c5bcfad6a3e0e43c5279e4d700cd817c74a 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1563,6 +1563,8 @@ void Element::recalcChildStyle(StyleRecalcChange change) |
if (shouldRecalcStyle(change, element)) { |
parentPusher.push(); |
didReattach = element->recalcStyle(change); |
+ } else if (document().styleResolver()->supportsStyleSharing(element)) { |
+ document().styleResolver()->addToStyleSharingList(element); |
} |
} |