[Webkit-unassigned] [Bug 226724] `text-decoration: underline` is not applied to web component

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 8 02:20:00 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226724

Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #430819|                            |review+
              Flags|                            |

--- Comment #6 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 430819
  --> https://bugs.webkit.org/attachment.cgi?id=430819
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430819&action=review

> Source/WebCore/ChangeLog:12
> +        Test case by Jeroen Zwartepoorte.

Maybe put this in the change log for the layout test?

> Source/WebCore/style/StyleAdjuster.cpp:154
> +    auto isAtUserAgentShadowBoundary = [&] {
> +        if (!element)
> +            return false;
> +        auto* parentNode = element->parentNode();
> +        return parentNode && parentNode->isUserAgentShadowRoot();
> +    }();

Hm... I feel like we should be checking the slot assignment here
but I suppose we don't let a node inside a UA shadow root assigned to an author defined shadow tree,
and we don't really set text decoration within UA shadow tree so it's probably okay.
It might be still good to add a comment in the code explaining why this is okay though.

> Source/WebCore/style/StyleAdjuster.cpp:166
> +    default:
> +        return true;

I think putting this return true outside switch would read better.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210608/96f60d7d/attachment.htm>


More information about the webkit-unassigned mailing list