| Index: Source/core/css/resolver/SharedStyleFinder.cpp
|
| diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| index 0bfdbf4c5914841bdfd785f91b6bfacd77f5162a..5830c6d40b3bcc4bfd906dffff746e8c21202547 100644
|
| --- a/Source/core/css/resolver/SharedStyleFinder.cpp
|
| +++ b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| @@ -220,8 +220,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 (candidate.shadow() && candidate.shadow()->containsActiveStyles() && !sharingCandidateShadowHasSharedStyleSheetContents(candidate))
|
| return false;
|
| if (!sharingCandidateDistributedToSameInsertionPoint(candidate))
|
| @@ -250,8 +248,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())
|
|
|