Changeset 199060 in webkit
- Timestamp:
- Apr 5, 2016 9:45:51 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r199054 r199060 1 2016-04-05 Antti Koivisto <antti@apple.com> 2 3 Shadow DOM: :host() From The First Shadow Context Should Not Style All Shadow Context 4 https://bugs.webkit.org/show_bug.cgi?id=156235 5 <rdar://problem/24668206> 6 7 Reviewed by Andreas Kling. 8 9 * fast/shadow-dom/host-style-sharing-expected.html: Added. 10 * fast/shadow-dom/host-style-sharing.html: Added. 11 1 12 2016-04-05 Antti Koivisto <antti@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r199059 r199060 1 2016-04-05 Antti Koivisto <antti@apple.com> 2 3 Shadow DOM: :host() From The First Shadow Context Should Not Style All Shadow Context 4 https://bugs.webkit.org/show_bug.cgi?id=156235 5 <rdar://problem/24668206> 6 7 Reviewed by Andreas Kling. 8 9 Test: fast/shadow-dom/host-style-sharing.html 10 11 * style/StyleSharingResolver.cpp: 12 (WebCore::Style::SharingResolver::resolve): 13 (WebCore::Style::SharingResolver::canShareStyleWithElement): 14 15 Disallow style sharing for shadow hosts affected by :host pseudo class rules. 16 1 17 2016-04-05 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebCore/style/StyleSharingResolver.cpp
r198943 r199060 34 34 #include "RenderStyle.h" 35 35 #include "SVGElement.h" 36 #include "ShadowRoot.h" 36 37 #include "StyleUpdate.h" 37 38 #include "StyledElement.h" … … 96 97 if (elementHasDirectionAuto(element)) 97 98 return nullptr; 99 #if ENABLE(SHADOW_DOM) 100 if (element.shadowRoot() && !element.shadowRoot()->styleResolver().ruleSets().authorStyle()->hostPseudoClassRules().isEmpty()) 101 return nullptr; 102 #endif 98 103 99 104 Context context { … … 278 283 if (element.matchesInvalidPseudoClass() != element.matchesValidPseudoClass()) 279 284 return false; 285 286 #if ENABLE(SHADOW_DOM) 287 if (element.shadowRoot() && !element.shadowRoot()->styleResolver().ruleSets().authorStyle()->hostPseudoClassRules().isEmpty()) 288 return nullptr; 289 #endif 280 290 281 291 #if ENABLE(VIDEO_TRACK)
Note: See TracChangeset
for help on using the changeset viewer.