-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate IPC serialization for WebCore::UserStyleLevel enumeration
https://bugs.webkit.org/show_bug.cgi?id=264403 Reviewed by Chris Dumez and Michael Catanzaro. Turn the WebCore::UserStyleLevel enumeration into a scoped one, adjusting uses of values accordingly. This enables removing the EnumTraits specialization in favor of better-handled IPC serialization specification. * Source/WebCore/dom/ExtensionStyleSheets.cpp: (WebCore::createExtensionsStyleSheet): (WebCore::ExtensionStyleSheets::pageUserSheet): * Source/WebCore/page/UserStyleSheet.h: (WebCore::UserStyleSheet::UserStyleSheet): * Source/WebCore/page/UserStyleSheetTypes.h: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:]): * Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheetInternal.h: (API::toWebCoreUserStyleLevel): * Source/WebKit/UIProcess/API/glib/WebKitUserContent.cpp: (toUserStyleLevel): * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm: (WebKit::WebExtensionContext::addInjectedContent): * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionDynamicScriptsCocoa.mm: (WebKit::WebExtensionDynamicScripts::injectStyleSheets): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::addUserStyleSheet): * Source/WebKitLegacy/mac/WebView/WebView.mm: (+[WebView _addUserStyleSheetToGroup:world:source:url:includeMatchPatternStrings:excludeMatchPatternStrings:injectedFrames:]): Canonical link: https://commits.webkit.org/270452@main
- Loading branch information
Showing
11 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6660,3 +6660,5 @@ struct WebCore::KeypressCommand { | |
String text; | ||
} | ||
#endif | ||
|
||
[Nested] enum class WebCore::UserStyleLevel : bool; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters