[webkit-changes] [WebKit/WebKit] a99abd: Fix warnings found by compiling with -Wdeprecated-...
Commit Queue
noreply at github.com
Sun Jan 7 15:45:53 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a99abdd4861553671d45fcd3b11714c82a803421
https://github.com/WebKit/WebKit/commit/a99abdd4861553671d45fcd3b11714c82a803421
Author: David Kilzer <ddkilzer at apple.com>
Date: 2024-01-07 (Sun, 07 Jan 2024)
Changed paths:
M Source/WebCore/platform/graphics/cg/ImageBackingStoreCG.cpp
M Source/WebKit/UIProcess/mac/WebPopupMenuProxyMac.mm
M Source/WebKitLegacy/mac/WebCoreSupport/PopupMenuMac.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKRequestActivatedElementInfo.mm
M Tools/TestWebKitAPI/cocoa/CGImagePixelReader.cpp
Log Message:
-----------
Fix warnings found by compiling with -Wdeprecated-enum-enum-conversion
https://bugs.webkit.org/show_bug.cgi?id=267204
<rdar://120609798>
Reviewed by Wenson Hsieh.
* Source/WebKit/UIProcess/mac/WebPopupMenuProxyMac.mm:
(WebKit::WebPopupMenuProxyMac::populate):
* Source/WebKitLegacy/mac/WebCoreSupport/PopupMenuMac.mm:
(PopupMenuMac::populate):
- Use static_cast<NSInteger>() operators to combine two different enum
type values.
* Source/WebCore/platform/graphics/cg/ImageBackingStoreCG.cpp:
(WebCore::ImageBackingStore::image const):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKRequestActivatedElementInfo.mm:
(TestWebKitAPI::TEST):
* Tools/TestWebKitAPI/cocoa/CGImagePixelReader.cpp:
(TestWebKitAPI::CGImagePixelReader::CGImagePixelReader):
- Use IGNORE_WARNINGS_BEGIN("deprecated-enum-enum-conversion")/IGNORE_WARNINGS_END
when computing a CGBitmapInfo value before calling CGImageCreate().
Canonical link: https://commits.webkit.org/272749@main
More information about the webkit-changes
mailing list