Index: Source/core/css/resolver/SharedStyleFinder.cpp |
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp |
index c0f96494e9ed8bebbd7fcadf44e859a8db571d87..7558ed508e4f98b86491643793402233352dc109 100644 |
--- a/Source/core/css/resolver/SharedStyleFinder.cpp |
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp |
@@ -226,8 +226,6 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const |
return false; |
if (candidate.hasID() && m_features.hasSelectorForId(candidate.idForStyleResolution())) |
return false; |
- if (candidate.hasScopedHTMLStyleChild()) |
- return false; |
if (!sharingCandidateCanShareHostStyles(candidate)) |
return false; |
if (!sharingCandidateDistributedToSameInsertionPoint(candidate)) |
@@ -256,8 +254,6 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const |
if (element().parentOrShadowHostElement() != parent) { |
if (!parent->isStyledElement()) |
return false; |
- if (parent->hasScopedHTMLStyleChild()) |
- return false; |
if (parent->inlineStyle()) |
return false; |
if (parent->isSVGElement() && toSVGElement(parent)->animatedSMILStyleProperties()) |