[webkit-changes] [WebKit/WebKit] 4d56d8: Add some metrics to WKFrameInfo when snapshotting ...
Brady Eidson
noreply at github.com
Wed Oct 30 14:51:04 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4d56d8b6c952bb803a2cd30e2589a5777b6e5e4a
https://github.com/WebKit/WebKit/commit/4d56d8b6c952bb803a2cd30e2589a5777b6e5e4a
Author: Brady Eidson <beidson at apple.com>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M Source/WebKit/CMakeLists.txt
M Source/WebKit/DerivedSources-input.xcfilelist
M Source/WebKit/DerivedSources.make
M Source/WebKit/Shared/FrameInfoData.h
M Source/WebKit/Shared/FrameInfoData.serialization.in
A Source/WebKit/Shared/WebFrameMetrics.h
A Source/WebKit/Shared/WebFrameMetrics.serialization.in
M Source/WebKit/UIProcess/API/APIFrameInfo.h
M Source/WebKit/UIProcess/API/Cocoa/WKFrameInfo.mm
M Source/WebKit/UIProcess/API/Cocoa/WKFrameInfoPrivate.h
M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
M Source/WebKit/WebProcess/WebPage/WebFrame.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
Log Message:
-----------
Add some metrics to WKFrameInfo when snapshotting the frame tree for client use
rdar://116842131
https://bugs.webkit.org/show_bug.cgi?id=282334
Reviewed by Alex Christensen.
Clients that used to walk WKBundleFrames to get this information can now grab a snapshot of the frame tree
from the UI process and use the metrics there.
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Shared/FrameInfoData.h:
* Source/WebKit/Shared/FrameInfoData.serialization.in:
* Source/WebKit/Shared/WebFrameMetrics.h: Copied from Source/WebKit/Shared/FrameInfoData.h.
* Source/WebKit/Shared/WebFrameMetrics.serialization.in: Copied from Source/WebKit/Shared/FrameInfoData.serialization.in.
* Source/WebKit/UIProcess/API/APIFrameInfo.h:
* Source/WebKit/UIProcess/API/Cocoa/WKFrameInfo.mm:
(-[WKFrameInfo _isScrollable]):
(-[WKFrameInfo _contentSize]):
(-[WKFrameInfo _visibleContentSize]):
(-[WKFrameInfo _visibleContentSizeExcludingScrollbars]):
* Source/WebKit/UIProcess/API/Cocoa/WKFrameInfoPrivate.h:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::info const):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm:
(TestWebKitAPI::TEST(SiteIsolation, FrameMetrics)):
Canonical link: https://commits.webkit.org/285927@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list