[webkit-changes] [WebKit/WebKit] 350f4f: HTMLTemplateElement should have shadowRootMode att...

Ryosuke Niwa noreply at github.com
Wed Dec 14 16:48:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 350f4f7ded4367ff4ca04675f4c9fb198e972f67
      https://github.com/WebKit/WebKit/commit/350f4f7ded4367ff4ca04675f4c9fb198e972f67
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2022-12-14 (Wed, 14 Dec 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/shadow-dom/declarative/declarative-shadow-dom-basic.tentative-expected.txt
    M Source/WebCore/html/HTMLTemplateElement.cpp
    M Source/WebCore/html/HTMLTemplateElement.h
    M Source/WebCore/html/HTMLTemplateElement.idl
    M Source/WebCore/html/parser/HTMLConstructionSite.cpp

  Log Message:
  -----------
  HTMLTemplateElement should have shadowRootMode attribute
https://bugs.webkit.org/show_bug.cgi?id=249287

Reviewed by Chris Dumez.

Add shadowRootMode IDL attribute to HTMLTemplateElement.

* LayoutTests/imported/w3c/web-platform-tests/shadow-dom/declarative/declarative-shadow-dom-basic.tentative-expected.txt:
* Source/WebCore/html/HTMLTemplateElement.cpp:
(WebCore::HTMLTemplateElement::shadowRootMode const): Added.
(WebCore::HTMLTemplateElement::setShadowRootMode): Added.
* Source/WebCore/html/HTMLTemplateElement.h:
* Source/WebCore/html/HTMLTemplateElement.idl:
* Source/WebCore/html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::insertHTMLTemplateElement): Fixed a bug that this wasn't checking whether declarative
shadow DOM is enabled or not. This is necessary now since the streaming is always enabled as of 257820 at main.

Canonical link: https://commits.webkit.org/257887@main




More information about the webkit-changes mailing list