12021-06-08 Antti Koivisto <antti@apple.com>
2
3 `text-decoration: underline` is not applied to web component
4 https://bugs.webkit.org/show_bug.cgi?id=226724
5 <rdar://problem/78987286>
6
7 Reviewed by NOBODY (OOPS!).
8
9 'text-decoration' is not an inherited property in itself but its effective value
10 behaves as it was. We fail to inherit this effective value into author shadow trees.
11
12 Test case by Jeroen Zwartepoorte.
13
14 Test: fast/shadow-dom/effective-text-decoration-inheritance.html
15
16 * style/StyleAdjuster.cpp:
17 (WebCore::Style::shouldInheritEffectiveTextDecorations):
18
19 Test for user agent shadow tree, not a shadow tree in general.
20 Also inverse the logic and refactor a bit.
21
22 (WebCore::Style::Adjuster::adjust const):
23 (WebCore::Style::isAtShadowBoundary): Deleted.
24 (WebCore::Style::doesNotInheritTextDecoration): Deleted.
25