[webkit-changes] [WebKit/WebKit] 504cb3: Support <svg:image crossorigin>

Anne van Kesteren noreply at github.com
Mon Aug 28 03:16:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 504cb3567c094a4118abbe6812443cdd431fb374
      https://github.com/WebKit/WebKit/commit/504cb3567c094a4118abbe6812443cdd431fb374
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/svg/idlharness.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub.html
    M Source/WebCore/html/HTMLImageElement.cpp
    M Source/WebCore/svg/SVGImageElement.cpp
    M Source/WebCore/svg/SVGImageElement.h
    M Source/WebCore/svg/SVGImageElement.idl

  Log Message:
  -----------
  Support <svg:image crossorigin>
https://bugs.webkit.org/show_bug.cgi?id=260724
rdar://114462749

Reviewed by Youenn Fablet.

Add support for the crossorigin attribute to SVGImageElement in a
manner analogous to HTMLImageElement.

Also remove a duplicate parser for the crossorigin attribute in
HTMLImageElement.

* LayoutTests/imported/w3c/web-platform-tests/svg/idlharness.window-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub.html:
* Source/WebCore/html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::attributeChanged):
(): Deleted.
(WebCore::parseCrossoriginState): Deleted.
* Source/WebCore/svg/SVGImageElement.cpp:
(WebCore::SVGImageElement::attributeChanged):
(WebCore::SVGImageElement::setCrossOrigin):
(WebCore::SVGImageElement::crossOrigin const):
* Source/WebCore/svg/SVGImageElement.h:
* Source/WebCore/svg/SVGImageElement.idl:

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




More information about the webkit-changes mailing list