feat(libSceNKWebKit): implement WebCore::nativeImageSize for cairo surfaces #23493
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23493"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by noisyweather on 2026-11-19T05:07:10Z.
What
Follow NativeImageCairo.cpp and cairoSurfaceSize from WebKit 73a35b43:
a null RefPtr or a non-image surface gives an empty IntSize, an image
surface gives its width and height through libcairo.
Co-Authored-By: Claude Opus 5.5 [email protected]
Tested
tools/debt_fold.py --checkandtools/check_conventions.py.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T05:10:39Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
9e130bf60c:tools/check_conventions.pyfailed.nkwebkit_nativeimagecairo_tests,nkwebkit_refptrcairo_testsbuilt cleanly.nkwebkit_nativeimagecairo,nkwebkit_refptrcairo):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T05:12:33Z.
Review: APPROVED
Reviewed — looks good
The inspected implementation follows the stated null, image-surface, and non-image behavior; I did not run the tests, and
Export.cppwas not fully read.What I ran
Reviewed head
9e130bf60c8c41f7fe8df363e78e2e1e174fc1a3and its prepared diff. No build or test command was run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Export.cppwas read only around removed stubs, not in full; no claim is made about unrelated code in that file.CMakeLists.txt,LegacyExports.hpp, both new export headers,libSceNKWebKit.hpp, both new source files, both new test files, both debt notes, plus the prepared description, commits, manifest, and diff.files.jsonwas unavailable; the review folder listing showedExport.cppexcluded as too large. All other changed files were read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T00:30:13Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e4674c4ba4:tools/check_conventions.pyfailed.guest_cairo_context_font_options_tests,guest_cairo_context_guest_pointers_tests,guest_cairo_context_tests,guest_cairo_drawing_tests,guest_cairo_geometry_tests,guest_cairo_glyph_drawing_tests,guest_cairo_graphics_state_tests,guest_cairo_path_extents_tests,guest_cairo_path_tests,guest_cairo_png_tests,guest_cairo_surface_pattern_tests,guest_cairo_surface_tests,guest_cairo_surface_user_data_allocation_tests,guest_cairo_surface_user_data_tests,guest_cairo_toy_text_tests,nkwebkit_nativeimagecairo_tests,nkwebkit_refptrcairo_testsbuilt cleanly.nkwebkit_nativeimagecairo,nkwebkit_refptrcairo,guest_cairo_surface_pattern_patterns,guest_cairo_surface_pattern_source,guest_cairo_surface_pattern_mask,guest_cairo_glyph_drawing_show,guest_cairo_glyph_drawing_errors,guest_cairo_glyph_drawing_path,guest_cairo_context_font_options_values,guest_cairo_context_font_options_render,guest_cairo_context_font_options_errors,guest_cairo_png,guest_cairo_surface,guest_cairo_surface_user_data,guest_cairo_surface_user_data_allocation,guest_cairo_context,guest_cairo_graphics_state,guest_cairo_path,guest_cairo_geometry,guest_cairo_path_extents,guest_cairo_drawing,guest_cairo_context_guest_pointers,guest_cairo_toy_text):Requesting changes for the points above.
Pull request closed