Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bd53bc0caa62ef3e0ff79cead06684acd77441f8
https://github.com/WebKit/WebKit/commit/bd53bc0caa62ef3e0ff79cead06684acd77441f8
Author: Simon Pena <[email protected]>
Date: 2025-12-01 (Mon, 01 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitImage.cpp
M Source/WebKit/UIProcess/API/glib/WebKitImage.h.in
M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitImage.cpp
Log Message:
-----------
[WPE] WebKitImage uses incorrect color type when encoding
https://bugs.webkit.org/show_bug.cgi?id=303230
Reviewed by Adrian Perez de Castro and Carlos Garcia Campos.
Align WebKitImage with WebKit::WebImage, using BGRA8. This fixes PNG
encoding in WebKitImage load-related functions. Additionally rename
webkit_image_as_rgba_bytes into webkit_image_as_bytes, to stop implying
any pixel format.
Test: Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitImage.cpp
* Source/WebKit/UIProcess/API/glib/WebKitImage.cpp:
(webkit_image_as_bytes):
(webkitImageHash):
(webkitImageEqual):
(webkitImageLoad):
(webkit_image_as_rgba_bytes): Deleted.
* Source/WebKit/UIProcess/API/glib/WebKitImage.h.in:
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitImage.cpp:
(testWebKitImagePropertiesConstruct):
Canonical link: https://commits.webkit.org/303675@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications