feat(libSceNKWebKit): implement geometry enclosure helpers #14138
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14138"
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 CobaltMoth482 on 2026-10-31T20:33:39Z.
What
Implements six existing
libSceNKWebKitgeometry stubs in one topic:findIntersection, bothenclosingIntRectoverloads,enclosingLayoutRect,makeMapBetweenRects, andencloseRectToDevicePixels.Also routes the two existing integer
AffineTransform::mapRect/TransformationMatrix::mapRectcallers through the same enclosure implementation, removing a duplicate that overflows signed endpoint subtraction. The exact baseline triggers UBSan for both callers; the candidate returns the source-compatible saturated extent. These two fixes are not counted as new exports.Behavior follows revision-pinned official WebKit GeometryUtilities.cpp, FloatRect.cpp, LayoutRect.cpp and AffineTransform.cpp, including subordinate clamping/fixed-point rules. All 28 checked source sections, including the six bodies and both caller compositions, match the project's existing public-source reference port after whitespace/comments normalization; official upstream files were used for the final reference-execution rerun. This is source-equivalence evidence, not console binary provenance. Both integer-map caller compositions are confirmed in the pinned TransformationMatrix.cpp and AffineTransform source. Uses existing asserted value layouts; no new dependency or opaque object model. Console ABI/behavior remains unverified and is documented as debt.
All six names/NIDs were independently recomputed and matched to exact name/NID pairs in the pinned public 3.20 inventory; that inventory alone does not establish prototypes.
Repository classifier: 1,150 / 11,248 → 1,156 / 11,248 (+6, unchanged denominator; 10.2240% → 10.2774%, +0.05334 percentage points). No game-unblock or performance claim.
Tested
Linux x86-64 / GCC 14.2.0. Candidate
2873edb871327c8be57ef25420afa8178c0b38b0on main0836dfdf4fecb1e0326100c490476e15d3a74da5(2026-10-31).WebCoreGeometry.cpp.Overlap and merge ordering
Required
tools/pr_overlap.pyscanned 1,684 open PRs and found nine shared-file peers; it exited 2, not a clean pass. Manual review and 44 base-vs-candidate controls across 22 shared files found no duplicate functions/NIDs or new-file collisions, including both modified integer-map callers. No peer touchesWebCoreTransform.cpp.Five peers (#13515, #13744, #13766, #13770, #13772) already conflict with main; this candidate adds no code/header conflict. Four peers (#13930, #13936, #13947, #13992) have genuine debt-counter-only conflicts: each changes the aggregate remaining-stub count independently. Whichever lands later must rebase and recompute the count while preserving both independent entries. No functional dependency and no combined-peer build; this branch is based directly on main.
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 MarcZX10 on 2026-10-31T20:46:09Z.
Review: APPROVED
Reviewed — looks good
Reviewed exact head
c4b9ee6ea07d15974779703baf58666d09185b53against PR base0836dfdf4fecb1e0326100c490476e15d3a74da5; the Windows build and changed geometry test passed, and I found no blocking source issue.What I ran
Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build locally. The PR base is
0836dfdf4fecb1e0326100c490476e15d3a74da5; the stack checker previewed cleanly against currentmainat9fe758d7520eb0c33f3df8bef539064b40bd523f.Results
libSceNKWebKit.prxand the changed geometry test executable (job)nkwebkit_webcoregeometryaccesspassed; selected suite: 2,534 passed, 0 failed (job)Unedited check output
Conventions:
ABI audit summary from its JSON output:
Hosted Windows CTest log:
Sources
The implementations follow the pinned WebKit GeometryUtilities.cpp, FloatRect.cpp, LayoutRect.cpp, and AffineTransform.cpp. The changed implementations and tests are available at the reviewed head.
Not verified
Linux CI was skipped, and I did not run a local or full-product build, console execution, or console ABI verification. The PR records the console ABI and behavior as unverified; this review's build/test evidence is the hosted Windows job above.
Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:49:33Z.
Review: COMMENTED
Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (
Unblocks: noneis allowed), and it contained no code review.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:46:06Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
7efb741f713a8e3eebca3ca6c1515eef87746ccfusing the prepared diff and pinned repository reader. No commands or tests were run in this review; test results below are reported by the author.Results
Findings
Blocking
None.
Non-blocking
Not verified
No tests were run. Full product build, Windows execution, guest-loader linking, and console behavior were not verified. Read:
description.md,commits.md,manifest.json,diff.patch,WebCoreExports.hpp,WebCoreGeometryAccess.cpp,WebCoreTransform.cpp, andtests/WebCoreGeometryAccess.cpp. Excluded from the review folder and not read:Export.cpp,InventoryExports.hpp,docs/dev/debt/libSceNKWebKit.md, and files identified infiles.jsonas excluded by rule.To get this to a good state
Nothing is required. Optional: validate the new exports' ABI and behavior on console hardware, and recompute the debt counter after rebasing if one of the noted peer PRs lands first.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T13:16:46Z.
Review: COMMENTED
Checked the branch sources and built the focused tests against the existing Linux runtime.
WebCoreGeometryAccesspassed.AI-assisted: yes.
Pull request closed