[Webkit-unassigned] [Bug 160864] Shadow DOM: Toggling class in `.class ::slotted(*)` does not trigger style recalc
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 11 12:32:08 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=160864
--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 294518
--> https://bugs.webkit.org/attachment.cgi?id=294518
patch
View in context: https://bugs.webkit.org/attachment.cgi?id=294518&action=review
> Source/WebCore/css/StyleInvalidationAnalysis.cpp:114
> + m_didInvalidateHostChildren = true;
It seems like we don't need to set m_didInvalidateHostChildren if the slot isn't in a shadow tree?
Or is this a kind of optimization to avoid checking whether element is in the shadow tree or not?
> Source/WebCore/css/StyleInvalidationAnalysis.cpp:132
> + if (shouldCheckForSlots)
> + return CheckDescendants::Yes;
Don't we need to check the descendants of a 2nd, 3rd, etc... slot elements?
i.e. don't we need to check just !m_ruleSet.slottedPseudoElementRules().isEmpty()?
Put it another way, does this work if a single shadow root had multiple slots
each of which had to be invalidated?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161111/9c72d734/attachment-0001.html>
More information about the webkit-unassigned
mailing list