[webkit-changes] [WebKit/WebKit] f2adb8: Add `SVGImageElement.prototype.decode()` support
Ahmad Saleem
noreply at github.com
Fri Sep 13 12:27:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f2adb8467c81d2df25e8fa651a54d6d9a00b9338
https://github.com/WebKit/WebKit/commit/f2adb8467c81d2df25e8fa651a54d6d9a00b9338
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2024-09-13 (Fri, 13 Sep 2024)
Changed paths:
A LayoutTests/fast/images/decode-static-svg-image-resolve-expected.html
A LayoutTests/fast/images/decode-static-svg-image-resolve.html
M LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes-svg.tentative-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/decode/image-decode-svg.tentative-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach-svg.tentative-expected.txt
M Source/WebCore/svg/SVGImageElement.cpp
M Source/WebCore/svg/SVGImageElement.h
M Source/WebCore/svg/SVGImageElement.idl
Log Message:
-----------
Add `SVGImageElement.prototype.decode()` support
https://bugs.webkit.org/show_bug.cgi?id=279254
rdar://135404215
Reviewed by Said Abou-Hallawa.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
It extends `decode()` support from HTML Image Element as defined in web
specification [1], to SVG Image Element.
[1] https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-decoding
Credits to Said Abou-Hallawa for test case guidance.
* Source/WebCore/svg/SVGImageElement.cpp:
(WebCore::SVGImageElement::decode):
* Source/WebCore/svg/SVGImageElement.h:
* Source/WebCore/svg/SVGImageElement.idl:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes-svg.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/decode/image-decode-svg.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach-svg.tentative-expected.txt:
* LayoutTests/fast/images/decode-static-svg-image-resolve-expected.html:
* LayoutTests/fast/images/decode-static-svg-image-resolve.html:
Canonical link: https://commits.webkit.org/283643@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list