| Index: Source/core/css/resolver/SharedStyleFinder.cpp
|
| diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| index a82521d270e3f05fa027289ca10e4e4480cb92df..9ee0d9b1e070fe09dd19049b1603c41a9797d5bb 100644
|
| --- a/Source/core/css/resolver/SharedStyleFinder.cpp
|
| +++ b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| @@ -209,6 +209,8 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const
|
| return false;
|
| if (candidate.shadow() && candidate.shadow()->containsActiveStyles() && !sharingCandidateShadowHasSharedStyleSheetContents(candidate))
|
| return false;
|
| + if (candidate.isInTopLayer() != element().isInTopLayer())
|
| + return false;
|
|
|
| bool isControl = candidate.isFormControlElement();
|
|
|
|
|