feat(libSceNKWebKit): implement WebCore::DisplayList color and image items #22557
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22557"
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 RiverWhy on 2026-11-17T20:38:48Z.
What
Implements the constructors and destructors of 9
WebCore::DisplayListcolor and image items: 45 3.20 exports that all throw onmaintoday. Each item hasC1/C2/D0/D1/D2:FillRectWithColor,FillCompositedRect,FillRoundedRect,FillRectWithRoundedHole,DrawFocusRingRectsDrawImage,DrawTiledImage,DrawTiledScaledImage,DrawPatternStacked on #22556, which is stacked on #22555. Only the last commit is new here.
Source: DisplayListItems.cpp at
c55364d53f97, as in #22555.01/11mark an inline color;00is a pointer to aRefCountedExtendedColor, whose count is at offset 0.operator deleteon the last release.Color, not the newer packing theWebCore::Colorexports onmainuse, so these items don't call those exports.Ref<Image>takes a reference through the count at offset 8 (ImageisRefCountedwith a virtual destructor). The last release calls the image's deleting destructor from vtable slot 1.ImagePaintingOptionsis 12 bytes,DrawPatternis 160 and itsAffineTransformis at 48. All were measured on that source.DrawFocusRingRects::localBoundsunites the non-empty rects and inflates them byplatformFocusRingWidth(3).Debt: a fragment,
docs/dev/debt/changes/feat-nkwebkit-display-list-color-image-items.md, adds the entry.Overlap:
pr_overlap.pyfinds no open PR with these exports. It could not compare #21957 and #21958, which conflict withmain; I checked their diffs by hand and they have no DisplayList code. The conflicts it reports are lines next to each other only: the shared last include line oflibSceNKWebKit.hpp(#18797, #18805, #20327, #21422, #21432, #21979, #22449–#22456, #22480–#22482), and stubs next to these ones that #17912, #18377, #19581, #19636, #19771, #20296, #20326, #20327, #22450 and #22480–#22482 also remove.Tested
Linux Mint 22.3, with the driver and oracle from #22555. It adds invalid, inline, semantic and extended colors, rounded rects, focus ring rect vectors with spare capacity, images and every
ImagePaintingOptionsfield, and hashes the color and image reference counts after construction and after destruction.nkwebkit_displaylistcolorimageitemstest: 16 sequences of 500 items match the real September 2020 classes. As a one-off, 300 sequences of 5,000 also matched.WTF::fastFree) and of an image (its deleting destructor runs once);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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T20:43:02Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
f59201d2f3:tools/check_conventions.pypassed.nkwebkit_displaylistcolorimageitems_tests,nkwebkit_displaylistdrawingitems_tests,nkwebkit_displayliststateitems_testsbuilt cleanly.nkwebkit_displaylistcolorimageitems,nkwebkit_displaylistdrawingitems,nkwebkit_displayliststateitems):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListDrawingItems.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListItem.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListStateItems.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T23:53:39Z.
Review: COMMENTED
Reviewed — comments
The core item implementations and ABI declarations were inspected, but the full changed-file set was not reviewed, so a formal merge decision is not justified.
What I ran
222455ac0a88e89361c39431ef169a4e0ce4b1b0.Results
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Not verified
The prepared diff and
review/README.mdwere read. Changed source files read:src/DisplayListColorImageItems.cpp,src/DisplayListItem.cpp,src/DisplayListItemAbi.hpp,include/DisplayListColorImageItemExports.hpp,include/Api.hpp,libSceNKWebKit.hpp, and the tail ofExport.cpp.Export.cppis excluded from the review folder because it is too large; the reader range inspected only its final lines, not the added line. The remaining changed files, their uninspected added lines, and the tests were not read. No claim is made about those files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T23:58:28Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
222455ac0a:tools/check_conventions.pypassed.nkwebkit_displaylistcolorimageitems_tests,nkwebkit_displaylistdrawingitems_tests,nkwebkit_displayliststateitems_testsbuilt cleanly.nkwebkit_displaylistcolorimageitems,nkwebkit_displaylistdrawingitems,nkwebkit_displayliststateitems):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListDrawingItems.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListItem.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListStateItems.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T16:47:56Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because several changed files and added line ranges were not read, so a formal decision is not justified.
What I ran
Inspected the prepared review bundle and targeted source context at head
e0cd4848f672e45739db9ecef186c0413ff9c053. No tests or build commands were run.Results
Findings
Blocking
None identified in the code inspected; this is not a complete review.
Non-blocking
None.
Not verified
Did not read every changed line required for a full review. Specifically, the drawing-item implementation and tests, color/image tests beyond the initial section, remaining export declarations and legacy export changes, and the oversized
Export.cppwere not reviewed in full. No build or tests were run. The author's test results are reported in the description and were not independently confirmed.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch(opening section and targeted portions),review/README.md,core/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cpp,core/libs/prx/libSceNKWebKit/include/DisplayListColorImageItemExports.hpp,core/libs/prx/libSceNKWebKit/tests/DisplayListColorImageItems.cpp(initial section), andcore/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp.Files reviewed per manifest:
core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/DisplayListColorImageItemExports.hpp,core/libs/prx/libSceNKWebKit/include/DisplayListDrawingItemExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cpp,core/libs/prx/libSceNKWebKit/src/DisplayListDrawingItems.cpp,core/libs/prx/libSceNKWebKit/tests/DisplayListColorImageItems.cpp,core/libs/prx/libSceNKWebKit/tests/DisplayListDrawingItems.cpp,docs/dev/debt/changes/feat-nkwebkit-display-list-color-image-items.md, anddocs/dev/debt/changes/feat-nkwebkit-display-list-drawing-items.md.To get this to a good state
Nothing is required. Optional: complete the review of the unread changed files and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T23:25:20Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected color and image implementations show no verified blocking defect, but this review is incomplete because several changed files and parts of the diff were not read.
What I ran
Inspected the prepared PR description, commits, manifest, selected diff ranges, and repository files through
repo_read.pyat head91723ae9b7ba6f7931ce89ed36293e26f48bc5f5. No build or tests were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The changed files
Export.cpp,LegacyExports.hpp,DisplayListDrawingItemExports.hpp,DisplayListDrawingItems.cpp, both changed test files, and both debt fragments were not fully read.Export.cppwas excluded from the review folder because it was too large; only selected diff ranges were inspected. The color/image test file was only partially read. The full diff was not read. No build, test suite, or negative control was run. Files fully read among the changed files:DisplayListColorImageItemExports.hpp,DisplayListColorImageItems.cpp, andlibSceNKWebKit.hpp.To get this to a good state
Nothing is required. Optional: complete the review of the unread changed files and run the relevant build and tests before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:47:32Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the optional points below are for review scope and verification.
What I ran
Reviewed head
71138b9fba0f32a8b86714f34cd741b6546d20aeusing the prepared diff andrepo_read.pyat the pinned head. No build or tests were run during this review.Results
Findings
Blocking
None in the code inspected.
Non-blocking
Not verified
core/libs/prx/libSceNKWebKit/Export.cppwas excluded from the prepared files because it was too large. Its relevant sections were not available as a manageable targeted read, so export wiring was not verified.Export.cppwas excluded. The other 8 reviewed files wereDisplayListColorImageItemExports.hpp,DisplayListDrawingItemExports.hpp,LegacyExports.hpp,libSceNKWebKit.hpp,DisplayListColorImageItems.cpp,DisplayListDrawingItems.cpp,tests/DisplayListColorImageItems.cpp, andtests/DisplayListDrawingItems.cpp, plus both debt fragments. (The manifest contains 10 changed paths.)To get this to a good state
Nothing is required. The optional points above are shared for context, not merge requirements.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T08:12:25Z.
Review: COMMENTED
Actionable comments posted: 2
Architecture findings (1)
Advisory architecture findings (1)
f81e896f-e972-4d50-b836-b431b3242124Reviewing files that changed from the base of the PR and between
fc5bd59376and2854bdc968.core/libs/prx/libSceNKWebKit/Export.cppcore/libs/prx/libSceNKWebKit/include/DisplayListColorImageItemExports.hppcore/libs/prx/libSceNKWebKit/include/DisplayListDrawingItemExports.hppcore/libs/prx/libSceNKWebKit/include/LegacyExports.hppcore/libs/prx/libSceNKWebKit/libSceNKWebKit.hppcore/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cppcore/libs/prx/libSceNKWebKit/src/DisplayListDrawingItems.cppcore/libs/prx/libSceNKWebKit/tests/DisplayListColorImageItems.cppcore/libs/prx/libSceNKWebKit/tests/DisplayListDrawingItems.cppdocs/dev/debt/changes/feat-nkwebkit-display-list-color-image-items.mddocs/dev/debt/changes/feat-nkwebkit-display-list-drawing-items.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T08:17:08Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the inspected implementation supports the stated construction, bounds, and reference-count behavior.
What I ran
2854bdc9686b2d5fb9a4bf436dab5e2340664b04against the prepared diff; no build or tests run.review/description.md,review/commits.md,review/manifest.json,review/diff.patch, andcore/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cpp(lines 1–557).DisplayListColorImageItemExports; did not read the excludedExport.cpp.Results
Export.cppexcluded as too largeFindings
Blocking
None in the code inspected.
Non-blocking
None.
Not verified
core/libs/prx/libSceNKWebKit/Export.cppwas excluded as too large, so its integration changes were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T18:06:45Z.
Review: COMMENTED
Architecture findings (2)
Advisory architecture findings (2)
0319d0f1-6c99-4046-94c1-02989df2a5e5Reviewing files that changed from the base of the PR and between
2854bdc968and15caf53f9c.core/libs/prx/libSceNKWebKit/src/DisplayListColorImageItems.cppcore/libs/prx/libSceNKWebKit/tests/DisplayListColorImageItems.cppcore/libs/prx/libSceNKWebKit/tests/DisplayListDrawingItems.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T18:24:22Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks the inspected changes; the points below are optional.
What I ran
Reviewed head
15caf53f9cad90885afa469be11af101d2bfb452using the prepared diff andrepo_read.pyat the pinned head. No tests or build commands were run.Results
.cppfilesNegative control
Not independently run. The author reports that omitting the extended-color reference increment fails the transcript check.
Findings
Blocking
No verified blocking defect in the changed hunks inspected.
Non-blocking
None.
Sources
src/*.cppglob in CMakeLists.txt at the reviewed head.Not verified
The full text of
Export.cppwas excluded from the prepared folder due to size; I inspected its changed hunks indiff.patch. I read the changed hunks, but not all surrounding text, inLegacyExports.hpp. The author-reported test results and console behavior were not independently confirmed. Nine changed files were read in full; two were reviewed through their changed hunks only.To get this to a good state
Nothing is required. A further review could read the remaining
Export.cppandLegacyExports.hppcontext before making a formal approval decision.Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:59:06Z.
Review: COMMENTED
Built the branch’s changed sources and ran DisplayListColorImageItems and DisplayListDrawingItems on Linux against the existing runtime libraries. The test run passed and covered the display-list color, image, and drawing cases.
AI-assisted: yes.
Pull request closed