Changeset 217708 in webkit
- Timestamp:
- Jun 2, 2017 3:18:54 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r217706 r217708 1 2017-06-02 Emilio Cobos Álvarez <ecobos@igalia.com> 2 3 Invalidate the shadow subtree style when slotted pseudo rules are present. 4 https://bugs.webkit.org/show_bug.cgi?id=172822 5 6 Reviewed by Antti Koivisto. 7 8 No new tests, this is tested by 9 fast/shadow-dom/css-scoping-slot-with-id.html, once we don't force an 10 Inherit style change for slots. I could add some more tests for stuff 11 with descendant combinators and similar I guess, though. 12 13 * style/AttributeChangeInvalidation.cpp: 14 (WebCore::Style::AttributeChangeInvalidation::invalidateStyle): 15 * style/ClassChangeInvalidation.cpp: 16 (WebCore::Style::ClassChangeInvalidation::invalidateStyle): 17 * style/IdChangeInvalidation.cpp: 18 (WebCore::Style::IdChangeInvalidation::invalidateStyle): 19 1 20 2017-06-02 Miguel Gomez <magomez@igalia.com> 2 21 -
trunk/Source/WebCore/style/AttributeChangeInvalidation.cpp
r216761 r217708 29 29 #include "DocumentRuleSets.h" 30 30 #include "ElementIterator.h" 31 #include "HTMLSlotElement.h" 31 32 #include "ShadowRoot.h" 32 33 #include "StyleInvalidator.h" … … 98 99 mayAffectShadowTree = true; 99 100 101 if (is<HTMLSlotElement>(m_element) && !ruleSets.authorStyle().slottedPseudoElementRules().isEmpty()) 102 mayAffectShadowTree = true; 103 100 104 if (mayAffectShadowTree) { 101 105 m_element.invalidateStyleForSubtree(); -
trunk/Source/WebCore/style/ClassChangeInvalidation.cpp
r216761 r217708 29 29 #include "DocumentRuleSets.h" 30 30 #include "ElementChildIterator.h" 31 #include "HTMLSlotElement.h" 31 32 #include "ShadowRoot.h" 32 33 #include "SpaceSplitString.h" … … 141 142 mayAffectShadowTree = true; 142 143 144 if (is<HTMLSlotElement>(m_element) && !ruleSets.authorStyle().slottedPseudoElementRules().isEmpty()) 145 mayAffectShadowTree = true; 146 143 147 if (mayAffectShadowTree) { 144 148 // FIXME: We should do fine-grained invalidation for shadow tree. -
trunk/Source/WebCore/style/IdChangeInvalidation.cpp
r216761 r217708 29 29 #include "DocumentRuleSets.h" 30 30 #include "ElementChildIterator.h" 31 #include "HTMLSlotElement.h" 31 32 #include "ShadowRoot.h" 32 33 #include "StyleResolver.h" … … 84 85 mayAffectShadowTree = true; 85 86 87 if (is<HTMLSlotElement>(m_element) && !ruleSets.authorStyle().slottedPseudoElementRules().isEmpty()) 88 mayAffectShadowTree = true; 89 86 90 if (mayAffectShadowTree) { 87 91 m_element.invalidateStyleForSubtree();
Note: See TracChangeset
for help on using the changeset viewer.