| Index: Source/core/css/resolver/SharedStyleFinder.cpp
|
| diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| index 7558ed508e4f98b86491643793402233352dc109..c0f96494e9ed8bebbd7fcadf44e859a8db571d87 100644
|
| --- a/Source/core/css/resolver/SharedStyleFinder.cpp
|
| +++ b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| @@ -226,6 +226,8 @@
|
| 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))
|
| @@ -253,6 +255,8 @@
|
|
|
| if (element().parentOrShadowHostElement() != parent) {
|
| if (!parent->isStyledElement())
|
| + return false;
|
| + if (parent->hasScopedHTMLStyleChild())
|
| return false;
|
| if (parent->inlineStyle())
|
| return false;
|
|
|