Shadow DOM: :host() From The First Shadow Context Should Not Style All Shadow Context
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Apr 2016 16:45:51 +0000 (16:45 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Apr 2016 16:45:51 +0000 (16:45 +0000)
commita5deb5179c88e503d3c9f6255bb299dc23775a28
treeca7477812bb66ebfaef2b0f88a4e0eef968ccafa
parent44d328f1a015720281deeefd8ce1f06542e4311f
Shadow DOM: :host() From The First Shadow Context Should Not Style All Shadow Context
https://bugs.webkit.org/show_bug.cgi?id=156235
<rdar://problem/24668206>

Reviewed by Andreas Kling.

Source/WebCore:

Test: fast/shadow-dom/host-style-sharing.html

* style/StyleSharingResolver.cpp:
(WebCore::Style::SharingResolver::resolve):
(WebCore::Style::SharingResolver::canShareStyleWithElement):

    Disallow style sharing for shadow hosts affected by :host pseudo class rules.

LayoutTests:

* fast/shadow-dom/host-style-sharing-expected.html: Added.
* fast/shadow-dom/host-style-sharing.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/shadow-dom/host-style-sharing-expected.html [new file with mode: 0644]
LayoutTests/fast/shadow-dom/host-style-sharing.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/style/StyleSharingResolver.cpp