Repository navigation
feat(libSceNKWebKit): implement geometry enclosure helpers - #14138
CobaltMoth482 wants to merge 8 commits into
Conversation
Progress report (f1a7b02 → 7efb741)📈 System libraries: 26.26% (+0.02%, +6 implemented functions) ✅ 6 implemented
Changed libraries (implemented exports)
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Reviewed exact head c4b9ee6ea07d15974779703baf58666d09185b53 against PR base 0836dfdf4fecb1e0326100c490476e15d3a74da5; 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 current main at 9fe758d7520eb0c33f3df8bef539064b40bd523f.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14138
git diff --check 0836dfdf4fecb1e0326100c490476e15d3a74da5...c4b9ee6ea07d15974779703baf58666d09185b53
python3 tools/pr_abi_audit.py --base 0836dfdf4fecb1e0326100c490476e15d3a74da5 --head c4b9ee6ea07d15974779703baf58666d09185b53 --json
python3 tools/pr_stack_check.py 14138 --repo boykopovar/AnyPS5Results
| Check | Result |
|---|---|
| Diff and conventions | Passed |
| Export/declaration/NID lexical audit | The temporary precheck checkout lacked the helper; rerunning it from the workspace passed with no findings (the audit does not certify runtime ABI) |
| Current-main merge preview | Clean |
| Hosted Windows build | Built libSceNKWebKit.prx and the changed geometry test executable (job) |
| Hosted Windows tests | nkwebkit_webcoregeometryaccess passed; selected suite: 2,534 passed, 0 failed (job) |
| Test-quality heuristic | Could not run in the temporary checkout because the helper script was absent; the new C++ test is registered and ran in hosted CI |
Unedited check output
Conventions:
All conventions checks passed.
ABI audit summary from its JSON output:
{
"status": "passed",
"findings": []
}Hosted Windows CTest log:
1851/2534 Test #2304: nkwebkit_webcoregeometryaccess ........................................... Passed 0.01 sec
100% tests passed, 0 tests failed out of 2534
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.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@CobaltMoth482 Main moved and this PR conflicts in |
|
I integrated the six geometry exports from B-Howell’s branch with main The unchanged original Your source branch can fast-forward to 3b972d4b2ff3. Seven-file diff against the tested main. AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head 7efb741f713a8e3eebca3ca6c1515eef87746ccf using 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
| Check | Result | Note |
|---|---|---|
| Source and diff review | passed | Changed implementation and callers inspected |
| Author-reported test suite | not run | Reported passing; not independently verified |
| Full product build and console behavior | not run | Author reports these remain unverified |
Findings
Blocking
None.
Non-blocking
- Console ABI and behavior for the new geometry exports remain unverified, as documented in the PR. Host-side tests and pinned source comparisons provide useful evidence, but cannot establish console execution behavior.
- The report notes four peer PRs with debt-counter-only conflicts; the landing PR should rebase and recompute the aggregate count as described.
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, and tests/WebCoreGeometryAccess.cpp. Excluded from the review folder and not read: Export.cpp, InventoryExports.hpp, docs/dev/debt/libSceNKWebKit.md, and files identified in files.json as 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.
ligmaSec
left a comment
There was a problem hiding this comment.
Checked the branch sources and built the focused tests against the existing Linux runtime. WebCoreGeometryAccess passed.
AI-assisted: yes.
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)