Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4f90f08efe55ca33abe2635371f765229e18f64f
https://github.com/WebKit/WebKit/commit/4f90f08efe55ca33abe2635371f765229e18f64f
Author: Simon Pena <[email protected]>
Date: 2025-12-09 (Tue, 09 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitImage.cpp
M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp
Log Message:
-----------
[GTK] Use WebKitImage for the GTK snapshot implementation
https://bugs.webkit.org/show_bug.cgi?id=303173
Reviewed by Adrian Perez de Castro.
This unifies the snapshot implementation to use WebKitImage when
2022_GLIB_API is enabled (converting from a WebKitImage to a GdkTexture
when using GTK, directly returning the WebKitImage for WPE), falling
back to cairo_surface_t otherwise.
It additional ensures we follow the same pixel format as WebImage, and
adds a test confirming that snapshot's colors are captured as intended.
Test: Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp
* Source/WebKit/UIProcess/API/glib/WebKitImage.cpp:
(webkit_image_class_init):
(webkitImageNew):
(webkitImageHash):
(webkitImageEqual):
(webkitImageLoad):
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
(testWebViewColorQuadrants):
(beforeAll):
Canonical link: https://commits.webkit.org/304209@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications