feat(libSceNKWebKit): implement WebCore ISO box, text-encoding default and hit-test rect static helpers #19771

Merged
B-Howell merged 5 commits from upstream-pr/19771 into main 2026-11-19 03:58:38 +00:00
B-Howell commented 2026-11-13 22:24:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-13T22:24:11Z.


What

Implements four 3.20 legacy libSceNKWebKit exports that are static or free functions, from WebKit 73a35b43, the August 2020 revision already used for the other legacy exports:

  • ISOWebVTTCue::boxTypeName returns the vttc FourCC, 0x76747463 (ISOVTTCue.h#L47, packed as in FourCC.h#L36-L41). WebCore::FourCC is added to WebCoreTypes.hpp as a 4-byte trivially copyable struct with static_asserts, so it is returned in eax as on the console.
  • ISOBox::minimumBoxSize returns 2 * sizeof(uint32_t), 8 (ISOBox.h#L45).
  • defaultTextEncodingNameForSystemLanguage returns the non-Cocoa "ISO-8859-1" (TextEncodingRegistry.cpp#L304-L324); the pinned PS5 tree has the same branch. The String is built through the existing WTF::StringImpl::create export, as DiagnosticLoggingKeys.cpp does.
  • HitTestLocation::rectForPoint floors the LayoutPoint with LayoutUnit::floor (including the clamp to INT_MIN / 64, LayoutUnit.h#L157-L164), moves it by the left and top padding and adds one to each padded extent (HitTestLocation.cpp#L150-L161). Padding sums wrap in 32 bits as the original unsigned-to-int arithmetic does. It uses the IntRect and LayoutPoint layouts already pinned in WebCoreTypes.hpp.

The stubs and their untyped legacy declarations are replaced by typed declarations in WebCoreExports.hpp. The debt file records that the console's WebKit revision is not verified. tools/progress.py: 15773 to 15777 implemented functions (+4).

Tested

Ubuntu 22.04 (WSL), GCC 11, Release build of the needed targets.

  • New nkwebkit_webcoreisotexthittest: the FourCC value, the box size of 8, the returned 8-bit String (ISO-8859-1, length 10, twice), and nine rectForPoint cases: whole and fractional positive points, negative fractions (-1 and -65 raw floor to -1 and -2), the INT_MIN + 63 clamp to INT_MIN / 64, INT_MAX, and padding that wraps (UINT_MAX left padding gives width 0).
  • Red control: the same test with the four bodies replaced by NotImplemented_nid_no_patch aborts (_ZN7WebCore12ISOWebVTTCue11boxTypeNameEv not implemented).
  • With this change: passed 3 of 3 runs. nkwebkit_constants, nkwebkit_diagnosticloggingkeys, nkwebkit_webcoredump and nkwebkit_webcoregeometry pass (5/5 with the new test). ctest -R '^public_headers': 65/65 passed.
  • @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 641ec02025 merged onto main 5f749eee1e (report): nkwebkit_webcoreisotexthittest passed 3/3, none skipped.
  • Main merge 4f3454c37ef: Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main 790e9a371cc: ctest -R nkwebkit 116/116 passed, patched_libraries passed once the #19822 fix was in. Re-merged onto b9fb5ab5a32 (no NKWebKit changes in between); check_conventions passed. Resolved a conflict in the WebCoreExports.hpp include list by taking main's list, which already includes this PR's header.
  • Debt fragment 0026a41afd: merged main c3d38470e0c and moved this PR's debt edits into docs/dev/debt/changes/claude-webcore-iso-textenc-hittest.md; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head. debt_fold.py --check and check_conventions.py --base origin/main pass. Documentation only, no build.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5303775019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19771). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-13T22:24:11Z. --- ### What Implements four 3.20 legacy `libSceNKWebKit` exports that are static or free functions, from WebKit [73a35b43](https://github.com/WebKit/WebKit/tree/73a35b43be7ae44c084885bd3fa4b403e59723c8), the August 2020 revision already used for the other legacy exports: - `ISOWebVTTCue::boxTypeName` returns the `vttc` `FourCC`, `0x76747463` ([ISOVTTCue.h#L47](https://github.com/WebKit/WebKit/blob/73a35b43be7ae44c084885bd3fa4b403e59723c8/Source/WebCore/platform/graphics/iso/ISOVTTCue.h#L47), packed as in [FourCC.h#L36-L41](https://github.com/WebKit/WebKit/blob/73a35b43be7ae44c084885bd3fa4b403e59723c8/Source/WebCore/platform/graphics/FourCC.h#L36-L41)). `WebCore::FourCC` is added to `WebCoreTypes.hpp` as a 4-byte trivially copyable struct with `static_assert`s, so it is returned in `eax` as on the console. - `ISOBox::minimumBoxSize` returns `2 * sizeof(uint32_t)`, 8 ([ISOBox.h#L45](https://github.com/WebKit/WebKit/blob/73a35b43be7ae44c084885bd3fa4b403e59723c8/Source/WebCore/platform/graphics/iso/ISOBox.h#L45)). - `defaultTextEncodingNameForSystemLanguage` returns the non-Cocoa `"ISO-8859-1"` ([TextEncodingRegistry.cpp#L304-L324](https://github.com/WebKit/WebKit/blob/73a35b43be7ae44c084885bd3fa4b403e59723c8/Source/WebCore/platform/text/TextEncodingRegistry.cpp#L304-L324)); the pinned PS5 tree has the same branch. The `String` is built through the existing `WTF::StringImpl::create` export, as `DiagnosticLoggingKeys.cpp` does. - `HitTestLocation::rectForPoint` floors the `LayoutPoint` with `LayoutUnit::floor` (including the clamp to `INT_MIN / 64`, [LayoutUnit.h#L157-L164](https://github.com/WebKit/WebKit/blob/73a35b43be7ae44c084885bd3fa4b403e59723c8/Source/WebCore/platform/LayoutUnit.h#L157-L164)), moves it by the left and top padding and adds one to each padded extent ([HitTestLocation.cpp#L150-L161](https://github.com/WebKit/WebKit/blob/73a35b43be7ae44c084885bd3fa4b403e59723c8/Source/WebCore/rendering/HitTestLocation.cpp#L150-L161)). Padding sums wrap in 32 bits as the original unsigned-to-int arithmetic does. It uses the `IntRect` and `LayoutPoint` layouts already pinned in `WebCoreTypes.hpp`. The stubs and their untyped legacy declarations are replaced by typed declarations in `WebCoreExports.hpp`. The debt file records that the console's WebKit revision is not verified. `tools/progress.py`: 15773 to 15777 implemented functions (+4). ### Tested Ubuntu 22.04 (WSL), GCC 11, Release build of the needed targets. - New `nkwebkit_webcoreisotexthittest`: the `FourCC` value, the box size of 8, the returned 8-bit `String` (`ISO-8859-1`, length 10, twice), and nine `rectForPoint` cases: whole and fractional positive points, negative fractions (`-1` and `-65` raw floor to `-1` and `-2`), the `INT_MIN + 63` clamp to `INT_MIN / 64`, `INT_MAX`, and padding that wraps (`UINT_MAX` left padding gives width 0). - Red control: the same test with the four bodies replaced by `NotImplemented_nid_no_patch` aborts (`_ZN7WebCore12ISOWebVTTCue11boxTypeNameEv not implemented`). - With this change: passed 3 of 3 runs. `nkwebkit_constants`, `nkwebkit_diagnosticloggingkeys`, `nkwebkit_webcoredump` and `nkwebkit_webcoregeometry` pass (5/5 with the new test). `ctest -R '^public_headers'`: 65/65 passed. - @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 641ec02025 merged onto main 5f749eee1e ([report](https://github.com/boykopovar/AnyPS5/pull/19771#issuecomment-6870019925)): `nkwebkit_webcoreisotexthittest` passed 3/3, none skipped. - Main merge `4f3454c37ef`: Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main `790e9a371cc`: `ctest -R nkwebkit` 116/116 passed, `patched_libraries` passed once the #19822 fix was in. Re-merged onto `b9fb5ab5a32` (no NKWebKit changes in between); `check_conventions` passed. Resolved a conflict in the `WebCoreExports.hpp` include list by taking main's list, which already includes this PR's header. - Debt fragment `0026a41afd`: merged main `c3d38470e0c` and moved this PR's debt edits into `docs/dev/debt/changes/claude-webcore-iso-textenc-hittest.md`; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass. Documentation only, no build. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-14 04:40:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T04:40:45Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 641ec02025:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_webcoreisotexthittest_tests built cleanly.
  • CTest (nkwebkit_webcoreisotexthittest):
    1/1 Test #3925: nkwebkit_webcoreisotexthittest ...   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/include/WebCoreExports.hpp, core/libs/prx/libSceNKWebKit/src/WebCoreTypes.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified that _ZN7WebCore12ISOWebVTTCue11boxTypeNameEv in WebCoreIsoVttCue.cpp returns WebCore::FourCC("vttc") with packed value 0x76747463u, and WebCore::FourCC in WebCoreTypes.hpp is 4 bytes, 4-byte aligned, trivially copyable, and returned in eax according to SysV AMD64 ABI.
    • Verified that _ZN7WebCore6ISOBox14minimumBoxSizeEv in WebCoreIsoBox.cpp returns 2 * sizeof(std::uint32_t) (8 bytes), matching WebKit 73a35b43 ISOBox::minimumBoxSize with 64-bit std::size_t return across LP64 and LLP64 platforms.
    • Verified that _ZN7WebCore40defaultTextEncodingNameForSystemLanguageEv in WebCoreTextEncodingRegistry.cpp returns an 8-bit StringImpl of length 10 for "ISO-8859-1" via _ZN3WTF10StringImpl6createEPKhj, matching non-Cocoa WebCore behavior and avoiding static buffer mutation.
    • Verified _ZN7WebCore15HitTestLocation12rectForPointERKNS_11LayoutPointEjjjj in WebCoreHitTestLocation.cpp implements LayoutUnit::floor with INT_MIN / 64 clamp, exact TRBL padding offsets (Subtract(Floor(x), leftPadding), Subtract(Floor(y), topPadding)), and modulo 2^32 wrapping arithmetic in Subtract and Extent.
    • Verified that WebCore::IntRect (16 bytes, two 8-byte INTEGER classes) is returned in rax:rdx under System V AMD64 ABI across Linux and Windows via APS5_VABI, with correct typed signatures in WebCoreExports.hpp and stubs removed from Export.cpp and LegacyExports.hpp.
    • Verified tests/WebCoreIsoTextHitTest.cpp rigorously exercises all four exports across positive, negative, and fractional points, INT_MIN / INT_MAX boundaries, wrapping UINT_MAX padding, and StringImpl metadata without leaks or side effects.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5901687491 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19771#pullrequestreview-5901687491). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T04:40:45Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `641ec02025`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_webcoreisotexthittest_tests` built cleanly. - **CTest** (`nkwebkit_webcoreisotexthittest`): ``` 1/1 Test #3925: nkwebkit_webcoreisotexthittest ... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WebCoreExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WebCoreTypes.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified that _ZN7WebCore12ISOWebVTTCue11boxTypeNameEv in WebCoreIsoVttCue.cpp returns WebCore::FourCC("vttc") with packed value 0x76747463u, and WebCore::FourCC in WebCoreTypes.hpp is 4 bytes, 4-byte aligned, trivially copyable, and returned in eax according to SysV AMD64 ABI. - Verified that _ZN7WebCore6ISOBox14minimumBoxSizeEv in WebCoreIsoBox.cpp returns 2 * sizeof(std::uint32_t) (8 bytes), matching WebKit 73a35b43 ISOBox::minimumBoxSize with 64-bit std::size_t return across LP64 and LLP64 platforms. - Verified that _ZN7WebCore40defaultTextEncodingNameForSystemLanguageEv in WebCoreTextEncodingRegistry.cpp returns an 8-bit StringImpl of length 10 for "ISO-8859-1" via _ZN3WTF10StringImpl6createEPKhj, matching non-Cocoa WebCore behavior and avoiding static buffer mutation. - Verified _ZN7WebCore15HitTestLocation12rectForPointERKNS_11LayoutPointEjjjj in WebCoreHitTestLocation.cpp implements LayoutUnit::floor with INT_MIN / 64 clamp, exact TRBL padding offsets (Subtract(Floor(x), leftPadding), Subtract(Floor(y), topPadding)), and modulo 2^32 wrapping arithmetic in Subtract and Extent. - Verified that WebCore::IntRect (16 bytes, two 8-byte INTEGER classes) is returned in rax:rdx under System V AMD64 ABI across Linux and Windows via APS5_VABI, with correct typed signatures in WebCoreExports.hpp and stubs removed from Export.cpp and LegacyExports.hpp. - Verified tests/WebCoreIsoTextHitTest.cpp rigorously exercises all four exports across positive, negative, and fractional points, INT_MIN / INT_MAX boundaries, wrapping UINT_MAX padding, and StringImpl metadata without leaks or side effects. - Note: the AI-assisted checkbox can stay. Looks Good To Me
PrivacyOnion commented 2026-11-16 16:54:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T16:54:35Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 0026a41afd:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_webcoreisotexthittest_tests built cleanly.
  • CTest (nkwebkit_webcoreisotexthittest):
    1/1 Test #4372: nkwebkit_webcoreisotexthittest ...   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, core/libs/prx/libSceNKWebKit/include/WebCoreExports.hpp, core/libs/prx/libSceNKWebKit/src/WebCoreTypes.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified that _ZN7WebCore12ISOWebVTTCue11boxTypeNameEv in WebCoreIsoVttCue.cpp returns WebCore::FourCC("vttc") with packed value 0x76747463u, and WebCore::FourCC in WebCoreTypes.hpp is 4 bytes, 4-byte aligned, trivially copyable, and returned in eax under the System V AMD64 ABI.
    • Verified that _ZN7WebCore6ISOBox14minimumBoxSizeEv in WebCoreIsoBox.cpp returns 2 * sizeof(std::uint32_t) (8 bytes) with 64-bit std::size_t return across LP64 and LLP64 platforms.
    • Verified that _ZN7WebCore40defaultTextEncodingNameForSystemLanguageEv in WebCoreTextEncodingRegistry.cpp constructs an 8-bit StringImpl of length 10 for "ISO-8859-1" via _ZN3WTF10StringImpl6createEPKhj, matching non-Cocoa WebCore behavior.
    • Verified that _ZN7WebCore15HitTestLocation12rectForPointERKNS_11LayoutPointEjjjj in WebCoreHitTestLocation.cpp implements LayoutUnit::floor with INT_MIN / 64 clamping, TRBL padding offsets, and defined unsigned wrapping arithmetic in Subtract and Extent, returning WebCore::IntRect by value in rax:rdx under APS5_VABI.
    • Verified that all four legacy stubs are cleanly removed from Export.cpp and LegacyExports.hpp, declared in WebCoreExports.hpp, documented via a debt fragment in docs/dev/debt/changes/claude-webcore-iso-textenc-hittest.md, and passes all mechanical gates and unit tests on Linux and Windows.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5923926953 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19771#pullrequestreview-5923926953). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T16:54:35Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `0026a41afd`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_webcoreisotexthittest_tests` built cleanly. - **CTest** (`nkwebkit_webcoreisotexthittest`): ``` 1/1 Test #4372: nkwebkit_webcoreisotexthittest ... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WebCoreExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WebCoreTypes.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified that _ZN7WebCore12ISOWebVTTCue11boxTypeNameEv in WebCoreIsoVttCue.cpp returns WebCore::FourCC("vttc") with packed value 0x76747463u, and WebCore::FourCC in WebCoreTypes.hpp is 4 bytes, 4-byte aligned, trivially copyable, and returned in eax under the System V AMD64 ABI. - Verified that _ZN7WebCore6ISOBox14minimumBoxSizeEv in WebCoreIsoBox.cpp returns 2 * sizeof(std::uint32_t) (8 bytes) with 64-bit std::size_t return across LP64 and LLP64 platforms. - Verified that _ZN7WebCore40defaultTextEncodingNameForSystemLanguageEv in WebCoreTextEncodingRegistry.cpp constructs an 8-bit StringImpl of length 10 for "ISO-8859-1" via _ZN3WTF10StringImpl6createEPKhj, matching non-Cocoa WebCore behavior. - Verified that _ZN7WebCore15HitTestLocation12rectForPointERKNS_11LayoutPointEjjjj in WebCoreHitTestLocation.cpp implements LayoutUnit::floor with INT_MIN / 64 clamping, TRBL padding offsets, and defined unsigned wrapping arithmetic in Subtract and Extent, returning WebCore::IntRect by value in rax:rdx under APS5_VABI. - Verified that all four legacy stubs are cleanly removed from Export.cpp and LegacyExports.hpp, declared in WebCoreExports.hpp, documented via a debt fragment in docs/dev/debt/changes/claude-webcore-iso-textenc-hittest.md, and passes all mechanical gates and unit tests on Linux and Windows. Looks Good To Me
MarcZX10 commented 2026-11-16 17:09:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T17:09:53Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the implementation matches the described helpers, and the only review concern is portability of signed right shift in the hit-test floor helper.

What I ran

Reviewed head 0026a41afd02a5849997c4c98ff7d36d539ca88c using the prepared diff and the pinned repo_read.py reader. No commands or tests were run in this review.

Results

Check Result Note
Diff and targeted source review passed Reviewed implementation and wiring
Tests not run Results in the PR description are author supplied
Build and console behavior not run Not independently confirmed

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceNKWebKit/src/WebCoreHitTestLocation.cpp:142 uses right shift on a negative signed value to implement floor division. The C++ standard leaves this implementation-defined, so behavior may differ across compiler targets. Consider spelling out the negative-value floor calculation using division and remainder, while retaining the existing lower-bound clamp.

Not verified

  • The changed Export.cpp was excluded from the review bundle as too large; targeted reader search did not independently verify the removed stubs at their hunk locations.
  • No tests/build were run. The test and build results in the description are author-reported.
  • Console WebKit revision and physical console behavior remain unverified, as noted in the debt fragment.

Files read: description.md, commits.md, manifest.json, diff.patch; WebCoreExports.hpp, WebCoreHitTestLocation.cpp, WebCoreIsoBox.cpp, WebCoreIsoVttCue.cpp, WebCoreTextEncodingRegistry.cpp, WebCoreTypes.hpp, WebCoreIsoTextHitTest.cpp, WebCoreExports.hpp, WtfStringAbi.hpp, WtfString.cpp, CMakeLists.txt, and the debt fragment. LegacyExports.hpp was listed as included but its full text was not read. Export.cpp was excluded by size; files.json was not available through the reader.

To get this to a good state

Nothing is required. The signed-shift portability point is optional.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5924153407 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19771#pullrequestreview-5924153407). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T17:09:53Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the implementation matches the described helpers, and the only review concern is portability of signed right shift in the hit-test floor helper. ## What I ran Reviewed head `0026a41afd02a5849997c4c98ff7d36d539ca88c` using the prepared diff and the pinned `repo_read.py` reader. No commands or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Reviewed implementation and wiring | | Tests | not run | Results in the PR description are author supplied | | Build and console behavior | not run | Not independently confirmed | ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceNKWebKit/src/WebCoreHitTestLocation.cpp:142` uses right shift on a negative signed value to implement floor division. The C++ standard leaves this implementation-defined, so behavior may differ across compiler targets. Consider spelling out the negative-value floor calculation using division and remainder, while retaining the existing lower-bound clamp. ## Not verified - The changed `Export.cpp` was excluded from the review bundle as too large; targeted reader search did not independently verify the removed stubs at their hunk locations. - No tests/build were run. The test and build results in the description are author-reported. - Console WebKit revision and physical console behavior remain unverified, as noted in the debt fragment. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`; `WebCoreExports.hpp`, `WebCoreHitTestLocation.cpp`, `WebCoreIsoBox.cpp`, `WebCoreIsoVttCue.cpp`, `WebCoreTextEncodingRegistry.cpp`, `WebCoreTypes.hpp`, `WebCoreIsoTextHitTest.cpp`, `WebCoreExports.hpp`, `WtfStringAbi.hpp`, `WtfString.cpp`, `CMakeLists.txt`, and the debt fragment. `LegacyExports.hpp` was listed as included but its full text was not read. `Export.cpp` was excluded by size; `files.json` was not available through the reader. ## To get this to a good state Nothing is required. The signed-shift portability point is optional.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!19771
No description provided.