feat(libSceNKWebKit): implement WebCore TextStream dumps for geometry, transforms and scrolling and graphics enums #15517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15517"
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 Jawschamp on 2026-11-03T17:10:12Z.
What
Implements 31 libSceNKWebKit
WebCore::operator<<(WTF::TextStream&, ...)exports that threwNotImplemented_nid_no_patchas parameterless placeholders, with real signatures declared in the newinclude/WebCoreDumpExports.hppand the code insrc/WebCoreDump.cpp:FloatPoint,IntPoint,IntSize,IntRect,FloatSize,FloatRect,FloatPoint3D,LayoutUnit,LayoutPoint,LayoutSize,LayoutRect.AffineTransform,TransformationMatrix.ScrollAlignment,ScrollAlignment::Behavior,ScrollType,ScrollClamping,ScrollBehaviorForFixedElements,ScrollingNodeType,ScrollingLayerPositionAction,ViewportRectStability,ScrollPositioningBehavior.CompositeOperator,BlendMode,WindRule,LineCap,LineJoin,ColorSpace,AlphaPremultiplication,GraphicsLayerPaintingPhase,GraphicsLayer::CustomAppearance.Their placeholders leave
Export.cppandinclude/InventoryExports.hpp, anddocs/dev/debt/libSceNKWebKit.mdloses their 31 table rows; its count line goes from 7408 (as left by #14172 atd15cf41cfa) to 7377.FloatPoint.cpp,IntPoint.cpp,IntSize.cpp,IntRect.cpp,FloatSize.cpp,FloatRect.cpp,FloatPoint3D.cpp,LayoutUnit.h,LayoutPoint.h,LayoutSize.h,LayoutRect.h,AffineTransform.cpp,TransformationMatrix.cpp,ScrollTypes.cpp,ScrollAlignment.cpp,ScrollingCoordinatorTypes.cpp,ScrollingConstraints.cpp,GraphicsTypes.cpp,ColorSpace.cpp,AlphaPremultiplication.cppandGraphicsLayer.cpp.d15cf41cfa(its head when this was rebuilt); the single commit of this PR sits on top of it. Depends on: #14172.WTF::TextStreamlayout and itsoperator<<exports come from #14172, so this branch contains that PR's commits until it merges.FormatNumberRespectingIntegersis not an NKWebKit export, so it is emulated by setting the stream's formatting flag for the duration of the write and restoring it afterwards, then calling the exporteddoublewriter.ColorSpace::XYZ_D65printsXYZ-D50, as the pinned source does.RectEdges<float>(box side order cannot be confirmed in the pinned tree) and the dumps ofFloatRoundedRect,Region,ImageData,VelocityData,TimingFunction,EventRegion, filters,Color,TouchActionand the scrolling constraint types, which have no matching source or layout evidence.Tested
Linux x86_64, GCC 14.2 (g++ extracted from Debian trixie packages),
-DBUILD_TESTING=ON. Hardware and titles: not tested.nkwebkit_webcoredump(auto-registered fromtests/WebCoreDump.cpp) runs in well under a second. No public tests exist for these dumps and native WebKit cannot be run for a differential test, so every expected string is derived by hand from the pinned source, including indentation, multi-line mode and the integer-respecting number format.ctest -R nkwebkitpasses all 13 tests.tools/check_conventions.pypasses against bothorigin/mainand #14172's head;tools/check_test_registration.pyandcore/libs/tests/test_public_headers.py --audit-onlypass.tools/pr_overlap.py --branch fix/nkwebkit-textstream-dumps-v2reports no open PR with the same new files. Its only same-exports hit is #13486, a stacked draft relinker PR whose own diff is 3 relinker files; the exports it lists are theWTF::TextStreamones this branch inherits from #14172. It reports textual overlap with thedocs/dev/debt/libSceNKWebKit.mdcount line of many open libSceNKWebKit PRs, and could not compare #13486, #13515, #14138, #14152, #14212, #14259, #14999, #15011, #15173, #15175, #15184, #15216, #15217, #15218 and #15224 because they conflict withmain.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)