feat(libSceNKWebKit): implement WKPage zoom factor controls #18117
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18117"
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 heditrigui on 2026-11-10T13:49:46Z.
What
Implement 6
WKPagepage and text zoom factor accessors inlibSceNKWebKit:WKPageGetPageZoomFactorWKPageGetTextZoomFactorWKPageSetPageAndTextZoomFactorsWKPageSetPageZoomFactorWKPageSetTextZoomFactorWKPageSupportsTextZoomZoom factor state is modeled on
NKWebKit::Pagefollowing WebKit C API semantics (defaults of1.0for zoom multipliers,truefor text zoom support, and clamping to ignore non-positive factor updates), supporting state query, dynamic factor updates, and null-pointer validation.Tested
Linux x86_64, unit tests in
core/libs/prx/libSceNKWebKit/tests/PageZoom.cpp, validating default values (1.0), dynamic zoom modification, non-positive value clamping, andstd::invalid_argumentexceptions on null page references. Verified clean withpython3 tools/check_conventions.pyand compilation via C++20.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-10T20:53:25Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
35aa59ef56:tools/check_conventions.pypassed;git diff --checkclean.libSceNKWebKit,nkwebkit_pagezoom_testsbuilt cleanly.nkwebkit_pagezoom):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp,core/libs/prx/libSceNKWebKit/src/Configuration.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me