feat(libSceNKWebKit): implement WTF::refIfNotNull and derefIfNotNull for cairo #23481
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23481"
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-19T04:21:10Z.
What
Forward the cairo_t and cairo_surface_t specializations to libcairo's
reference and destroy exports, ignoring null, as WebKit's RefPtrCairo.cpp
does in the revision that still used the template<> form.
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-19T04:36:05Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
a512e28f8d:tools/check_conventions.pyfailed.nkwebkit_refptrcairo_testsbuilt cleanly.nkwebkit_refptrcairo):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T05:17:52Z.
Review: COMMENTED
Reviewed — no blocking findings
The four null-safe cairo reference helpers match the described behavior; console import compatibility remains unverified.
What I ran
Reviewed head
a512e28f8def407327d282ef8bdd143c8732f37dusing the prepared diff and the pinned repository reader. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceNKWebKit/src/RefPtrCairo.cpp:26).Not verified
The full
Export.cppwas excluded for size and not inspected. The source files included in the review folder were read for the relevant changed hunks:CMakeLists.txt,RefPtrCairoExports.hpp,libSceNKWebKit.hpp,src/RefPtrCairo.cpp, andtests/RefPtrCairo.cpp. The remaining changed file,include/LegacyExports.hpp, was listed in the manifest but not inspected; its diff only removes four legacy stubs/declarations for the now-implemented helpers. The debt-note source was also not read from the repository. Console import compatibility, compilation, and runtime behavior were not verified.To get this to a good state
Nothing is required. Optional: compare the four exports with a console module to confirm import compatibility.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T00:38:55Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
07a076d8f8: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_refptrcairo_testsbuilt cleanly.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.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T01:47:40Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
8797472799: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_refptrcairo_testsbuilt cleanly.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