Changeset 277672 in webkit
- Timestamp:
- May 18, 2021, 1:26:15 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 15 edited
- 3 copied
-
ChangeLog (modified) (1 diff)
-
Shared/API/APIObject.h (modified) (4 diffs)
-
Shared/API/APIPageGroupHandle.cpp (copied) (copied from trunk/Source/WebKit/Shared/API/APIPageGroupHandle.cpp )
-
Shared/API/APIPageGroupHandle.h (copied) (copied from trunk/Source/WebKit/Shared/API/APIPageGroupHandle.h )
-
Shared/Cocoa/APIObject.mm (modified) (2 diffs)
-
Shared/Cocoa/SharedRingBufferStorage.cpp (modified) (2 diffs)
-
Shared/UserData.cpp (modified) (3 diffs)
-
Shared/mac/MediaFormatReader/MediaSampleCursor.h (modified) (1 diff)
-
Sources.txt (modified) (1 diff)
-
UIProcess/WebProcessProxy.cpp (modified) (4 diffs)
-
WebKit.xcodeproj/project.pbxproj (modified) (6 diffs)
-
WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.h (modified) (1 diff)
-
WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.mm (modified) (1 diff)
-
WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroupInternal.h (copied) (copied from trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroupInternal.h )
-
WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h (modified) (2 diffs)
-
WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm (modified) (2 diffs)
-
WebProcess/WebPage/WebPageGroupProxy.h (modified) (1 diff)
-
WebProcess/WebProcess.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r277666 r277672 1 2021-05-18 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, reverting r277614. 4 <rdar://78167889> 5 6 Broke Mail 7 8 Reverted changeset: 9 10 "Remove API::Object::Type::BundlePageGroup" 11 https://bugs.webkit.org/show_bug.cgi?id=225611 12 https://commits.webkit.org/r277614 13 1 14 2021-05-18 Said Abou-Hallawa <said@apple.com> 2 15 -
trunk/Source/WebKit/Shared/API/APIObject.h
r277614 r277672 67 67 FrameHandle, 68 68 Image, 69 PageGroupData, 69 70 PageHandle, 71 PageGroupHandle, 70 72 ProtectionSpace, 71 73 RenderLayer, … … 203 205 BundlePage, 204 206 BundlePageBanner, 207 BundlePageGroup, 205 208 BundlePageOverlay, 206 209 BundleRangeHandle, … … 317 320 API::Object::Type::FrameHandle, 318 321 API::Object::Type::Image, 322 API::Object::Type::PageGroupData, 319 323 API::Object::Type::PageHandle, 324 API::Object::Type::PageGroupHandle, 320 325 API::Object::Type::ProtectionSpace, 321 326 API::Object::Type::ResourceLoadInfo, … … 451 456 API::Object::Type::BundlePage, 452 457 API::Object::Type::BundlePageBanner, 458 API::Object::Type::BundlePageGroup, 453 459 API::Object::Type::BundlePageOverlay, 454 460 API::Object::Type::BundleRangeHandle, -
trunk/Source/WebKit/Shared/Cocoa/APIObject.mm
r277614 r277672 64 64 #import "WKWebProcessPlugInInternal.h" 65 65 #import "WKWebProcessPlugInNodeHandleInternal.h" 66 #import "WKWebProcessPlugInPageGroupInternal.h" 66 67 #import "WKWebProcessPlugInRangeHandleInternal.h" 67 68 #import "WKWebProcessPlugInScriptWorldInternal.h" … … 427 428 break; 428 429 430 case Type::BundlePageGroup: 431 ALLOW_DEPRECATED_DECLARATIONS_BEGIN; 432 wrapper = [WKWebProcessPlugInPageGroup alloc]; 433 ALLOW_DEPRECATED_DECLARATIONS_END; 434 break; 435 429 436 case Type::BundleRangeHandle: 430 437 wrapper = [WKWebProcessPlugInRangeHandle alloc]; -
trunk/Source/WebKit/Shared/Cocoa/SharedRingBufferStorage.cpp
r277655 r277672 81 81 } 82 82 83 void SharedRingBufferStorage::setStorage(RefPtr<SharedMemory>&& storage, const WebCore::CAAudioStreamDescription& format, size_t frameCount)83 void SharedRingBufferStorage::setStorage(RefPtr<SharedMemory>&& storage, const CAAudioStreamDescription& format, size_t frameCount) 84 84 { 85 85 m_storage = WTFMove(storage); … … 88 88 } 89 89 90 void SharedRingBufferStorage::allocate(size_t byteCount, const WebCore::CAAudioStreamDescription& format, size_t frameCount)90 void SharedRingBufferStorage::allocate(size_t byteCount, const CAAudioStreamDescription& format, size_t frameCount) 91 91 { 92 92 auto sharedMemory = SharedMemory::allocate(byteCount + sizeof(FrameBounds)); -
trunk/Source/WebKit/Shared/UserData.cpp
r277614 r277672 34 34 #include "APIGeometry.h" 35 35 #include "APINumber.h" 36 #include "APIPageGroupHandle.h" 36 37 #include "APIPageHandle.h" 37 38 #include "APISerializedScriptValue.h" … … 230 231 } 231 232 233 case API::Object::Type::PageGroupHandle: 234 static_cast<const API::PageGroupHandle&>(object).encode(encoder); 235 break; 236 232 237 case API::Object::Type::PageHandle: 233 238 static_cast<const API::PageHandle&>(object).encode(encoder); … … 411 416 break; 412 417 418 case API::Object::Type::PageGroupHandle: 419 if (!API::PageGroupHandle::decode(decoder, result)) 420 return false; 421 break; 422 413 423 case API::Object::Type::PageHandle: 414 424 if (!API::PageHandle::decode(decoder, result)) -
trunk/Source/WebKit/Shared/mac/MediaFormatReader/MediaSampleCursor.h
r277614 r277672 30 30 #include "CoreMediaWrapped.h" 31 31 #include <WebCore/SampleMap.h> 32 #include <wtf/Identified.h>33 32 #include <wtf/MediaTime.h> 34 33 #include <wtf/Variant.h> -
trunk/Source/WebKit/Sources.txt
r277614 r277672 239 239 Shared/API/APIGeometry.cpp 240 240 Shared/API/APIObject.cpp 241 Shared/API/APIPageGroupHandle.cpp 241 242 Shared/API/APIPageHandle.cpp 242 243 Shared/API/APIURLRequest.cpp -
trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp
r277614 r277672 28 28 29 29 #include "APIFrameHandle.h" 30 #include "APIPageGroupHandle.h" 30 31 #include "APIPageHandle.h" 31 32 #include "AuthenticatorManager.h" … … 1340 1341 return static_cast<const API::PageHandle&>(object).isAutoconverting(); 1341 1342 1343 case API::Object::Type::PageGroupHandle: 1342 1344 #if PLATFORM(COCOA) 1343 1345 case API::Object::Type::ObjCObjectGraph: … … 1356 1358 ASSERT(static_cast<API::FrameHandle&>(object).isAutoconverting()); 1357 1359 return m_webProcessProxy.webFrame(static_cast<API::FrameHandle&>(object).frameID()); 1360 1361 case API::Object::Type::PageGroupHandle: 1362 return WebPageGroup::get(static_cast<API::PageGroupHandle&>(object).webPageGroupData().pageGroupID); 1358 1363 1359 1364 case API::Object::Type::PageHandle: … … 1403 1408 case API::Object::Type::Page: 1404 1409 return API::PageHandle::createAutoconverting(static_cast<const WebPageProxy&>(object).identifier(), static_cast<const WebPageProxy&>(object).webPageID()); 1410 1411 case API::Object::Type::PageGroup: 1412 return API::PageGroupHandle::create(WebPageGroupData(static_cast<const WebPageGroup&>(object).data())); 1405 1413 1406 1414 #if PLATFORM(COCOA) -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r277627 r277672 465 465 1F7D36C118DA513F00D9D659 /* APIDownloadClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F7D36C018DA513F00D9D659 /* APIDownloadClient.h */; }; 466 466 1FB00AC7185F76460019142E /* WKWebProcessPlugInPageGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = 1FB00AC4185F76460019142E /* WKWebProcessPlugInPageGroup.h */; settings = {ATTRIBUTES = (Private, ); }; }; 467 1FB00AC9185F76460019142E /* WKWebProcessPlugInPageGroupInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 1FB00AC6185F76460019142E /* WKWebProcessPlugInPageGroupInternal.h */; }; 467 468 263172CF18B469490065B9C3 /* NativeWebTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 263172CE18B469490065B9C3 /* NativeWebTouchEvent.h */; }; 468 469 2684054418B85A630022C38B /* VisibleContentRectUpdateInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 2684054218B85A630022C38B /* VisibleContentRectUpdateInfo.h */; }; … … 2659 2660 1A334DEB16DE8F88006A8E38 /* StorageAreaMapMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StorageAreaMapMessageReceiver.cpp; path = DerivedSources/WebKit2/StorageAreaMapMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 2660 2661 1A334DEC16DE8F88006A8E38 /* StorageAreaMapMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StorageAreaMapMessages.h; path = DerivedSources/WebKit2/StorageAreaMapMessages.h; sourceTree = BUILT_PRODUCTS_DIR; }; 2662 1A3A73CB1A48C6D4007231B3 /* APIPageGroupHandle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = APIPageGroupHandle.cpp; sourceTree = "<group>"; }; 2663 1A3A73CC1A48C6D4007231B3 /* APIPageGroupHandle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIPageGroupHandle.h; sourceTree = "<group>"; }; 2661 2664 1A3C887F18A5ABAE00C4C962 /* WKPreferencesInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPreferencesInternal.h; sourceTree = "<group>"; }; 2662 2665 1A3CC16418906ACF001E6ED8 /* WKWebView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKWebView.mm; sourceTree = "<group>"; }; … … 3113 3116 1FB00AC4185F76460019142E /* WKWebProcessPlugInPageGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebProcessPlugInPageGroup.h; sourceTree = "<group>"; }; 3114 3117 1FB00AC5185F76460019142E /* WKWebProcessPlugInPageGroup.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKWebProcessPlugInPageGroup.mm; sourceTree = "<group>"; }; 3118 1FB00AC6185F76460019142E /* WKWebProcessPlugInPageGroupInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebProcessPlugInPageGroupInternal.h; sourceTree = "<group>"; }; 3115 3119 263172CE18B469490065B9C3 /* NativeWebTouchEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeWebTouchEvent.h; sourceTree = "<group>"; }; 3116 3120 26659AA0185FAAED004303DD /* Info-iOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-iOS.plist"; sourceTree = "<group>"; }; … … 7230 7234 1FB00AC4185F76460019142E /* WKWebProcessPlugInPageGroup.h */, 7231 7235 1FB00AC5185F76460019142E /* WKWebProcessPlugInPageGroup.mm */, 7236 1FB00AC6185F76460019142E /* WKWebProcessPlugInPageGroupInternal.h */, 7232 7237 374942191DF1F9FF0033C19F /* WKWebProcessPlugInRangeHandle.h */, 7233 7238 374942181DF1F9FF0033C19F /* WKWebProcessPlugInRangeHandle.mm */, … … 10880 10885 B63403F814910D57001070B5 /* APIObject.cpp */, 10881 10886 BCF04C8C11FF9B7D00F86A58 /* APIObject.h */, 10887 1A3A73CB1A48C6D4007231B3 /* APIPageGroupHandle.cpp */, 10888 1A3A73CC1A48C6D4007231B3 /* APIPageGroupHandle.h */, 10882 10889 1AC1336D18565D2B00F3EC05 /* APIPageHandle.cpp */, 10883 10890 1AC1336B18565C7A00F3EC05 /* APIPageHandle.h */, … … 12980 12987 CEC8F9CB1FDF5870002635E7 /* WKWebProcessPlugInNodeHandlePrivate.h in Headers */, 12981 12988 1FB00AC7185F76460019142E /* WKWebProcessPlugInPageGroup.h in Headers */, 12989 1FB00AC9185F76460019142E /* WKWebProcessPlugInPageGroupInternal.h in Headers */, 12982 12990 BC04EFFC16E65AFB00E336F0 /* WKWebProcessPlugInPrivate.h in Headers */, 12983 12991 3749421B1DF1F9FF0033C19F /* WKWebProcessPlugInRangeHandle.h in Headers */, -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.h
r277614 r277672 28 28 #import <Foundation/Foundation.h> 29 29 30 // FIXME: Remove this file once the staging code for rdar://77775952 is removed.31 30 WK_CLASS_DEPRECATED_WITH_REPLACEMENT("WKWebProcessPlugInBrowserContextController._groupIdentifier", macos(10.10, WK_MAC_TBA), ios(8.0, WK_IOS_TBA)) 32 31 @interface WKWebProcessPlugInPageGroup : NSObject 33 32 33 @property (readonly) NSString *identifier; 34 34 35 @end -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.mm
r277614 r277672 25 25 26 26 #import "config.h" 27 #import "WKWebProcessPlugInPageGroup .h"27 #import "WKWebProcessPlugInPageGroupInternal.h" 28 28 29 // FIXME: Remove this file once the staging code for rdar://77775952 is removed. 29 #import "WKAPICast.h" 30 #import "WKNSString.h" 31 #import "WKRetainPtr.h" 32 #import "WebPageGroupProxy.h" 33 #import <WebCore/WebCoreObjCExtras.h> 30 34 31 35 ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN 32 @implementation WKWebProcessPlugInPageGroup 36 @implementation WKWebProcessPlugInPageGroup { 37 API::ObjectStorage<WebKit::WebPageGroupProxy> _bundlePageGroup; 38 } 33 39 ALLOW_DEPRECATED_IMPLEMENTATIONS_END 34 40 41 - (NSString *)identifier 42 { 43 return _bundlePageGroup->identifier(); 44 } 45 46 - (void)dealloc 47 { 48 if (WebCoreObjCScheduleDeallocateOnMainRunLoop(WKWebProcessPlugInPageGroup.class, self)) 49 return; 50 _bundlePageGroup->~WebPageGroupProxy(); 51 [super dealloc]; 52 } 53 54 #pragma mark WKObject protocol implementation 55 56 - (API::Object&)_apiObject 57 { 58 return *_bundlePageGroup; 59 } 60 35 61 @end -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h
r277614 r277672 31 31 @class WKDOMRange; 32 32 @class WKWebProcessPlugInFrame; 33 @class WKWebProcessPlugInPageGroup; 33 34 @protocol WKWebProcessPlugInLoadDelegate; 34 35 … … 42 43 @property (readonly) WKWebProcessPlugInFrame *mainFrame; 43 44 45 @property (readonly) WKWebProcessPlugInPageGroup *pageGroup WK_API_DEPRECATED_WITH_REPLACEMENT("_groupIdentifier", macos(10.10, WK_MAC_TBA), ios(8.0, WK_IOS_TBA)); 46 44 47 @property (weak) id <WKWebProcessPlugInLoadDelegate> loadDelegate; 45 48 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm
r277614 r277672 49 49 #import "WKWebProcessPlugInLoadDelegate.h" 50 50 #import "WKWebProcessPlugInNodeHandleInternal.h" 51 #import "WKWebProcessPlugInPageGroupInternal.h" 51 52 #import "WKWebProcessPlugInRangeHandleInternal.h" 52 53 #import "WKWebProcessPlugInScriptWorldInternal.h" 53 54 #import "WebPage.h" 54 #import "WebPageGroupProxy.h"55 55 #import "WebProcess.h" 56 56 #import "_WKRemoteObjectRegistryInternal.h" … … 405 405 } 406 406 407 - (WKWebProcessPlugInPageGroup *)pageGroup 408 { 409 return wrapper(*_page->pageGroup()); 410 } 411 407 412 #pragma mark WKObject protocol implementation 408 413 -
trunk/Source/WebKit/WebProcess/WebPage/WebPageGroupProxy.h
r277614 r277672 39 39 class WebUserContentController; 40 40 41 class WebPageGroupProxy : public RefCounted<WebPageGroupProxy> {41 class WebPageGroupProxy : public API::ObjectImpl<API::Object::Type::BundlePageGroup> { 42 42 public: 43 43 static Ref<WebPageGroupProxy> create(const WebPageGroupData&); -
trunk/Source/WebKit/WebProcess/WebProcess.cpp
r277641 r277672 28 28 29 29 #include "APIFrameHandle.h" 30 #include "APIPageGroupHandle.h" 30 31 #include "APIPageHandle.h" 31 32 #include "AuthenticationManager.h" … … 1698 1699 return static_cast<const API::PageHandle&>(object).isAutoconverting(); 1699 1700 1701 case API::Object::Type::PageGroupHandle: 1700 1702 #if PLATFORM(COCOA) 1701 1703 case API::Object::Type::ObjCObjectGraph: … … 1713 1715 case API::Object::Type::FrameHandle: 1714 1716 return m_webProcess.webFrame(static_cast<const API::FrameHandle&>(object).frameID()); 1717 1718 case API::Object::Type::PageGroupHandle: 1719 return m_webProcess.webPageGroup(static_cast<const API::PageGroupHandle&>(object).webPageGroupData()); 1715 1720 1716 1721 case API::Object::Type::PageHandle: … … 1740 1745 case API::Object::Type::BundleFrame: 1741 1746 case API::Object::Type::BundlePage: 1747 case API::Object::Type::BundlePageGroup: 1742 1748 #if PLATFORM(COCOA) 1743 1749 case API::Object::Type::ObjCObjectGraph: … … 1758 1764 case API::Object::Type::BundlePage: 1759 1765 return API::PageHandle::createAutoconverting(static_cast<const WebPage&>(object).webPageProxyIdentifier(), static_cast<const WebPage&>(object).identifier()); 1766 1767 case API::Object::Type::BundlePageGroup: { 1768 WebPageGroupData pageGroupData; 1769 pageGroupData.pageGroupID = static_cast<const WebPageGroupProxy&>(object).pageGroupID(); 1770 1771 return API::PageGroupHandle::create(WTFMove(pageGroupData)); 1772 } 1760 1773 1761 1774 #if PLATFORM(COCOA)
Note:
See TracChangeset
for help on using the changeset viewer.