Title: [240311] trunk/Source/WebKit
Revision
240311
Author
[email protected]
Date
2019-01-22 16:43:18 -0800 (Tue, 22 Jan 2019)

Log Message

Fix an internal build failure after r240292
https://bugs.webkit.org/show_bug.cgi?id=193580

Rubber-stamped by Wenson Hsieh.

* SourcesCocoa.txt:
* UIProcess/mac/WebContextMenuProxyMac.mm:
(-[WKMenuTarget forwardContextMenuAction:]):
* WebKit.xcodeproj/project.pbxproj:
It was apparently unclear to the compiler sometimes which "state" selector to use, and this apparently mattered.
Tell the compiler to use the NSMenuItem selector, but at runtime it doesn't matter.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (240310 => 240311)


--- trunk/Source/WebKit/ChangeLog	2019-01-23 00:37:30 UTC (rev 240310)
+++ trunk/Source/WebKit/ChangeLog	2019-01-23 00:43:18 UTC (rev 240311)
@@ -1,3 +1,17 @@
+2019-01-22  Alex Christensen  <[email protected]>
+
+        Fix an internal build failure after r240292
+        https://bugs.webkit.org/show_bug.cgi?id=193580
+
+        Rubber-stamped by Wenson Hsieh.
+
+        * SourcesCocoa.txt:
+        * UIProcess/mac/WebContextMenuProxyMac.mm:
+        (-[WKMenuTarget forwardContextMenuAction:]):
+        * WebKit.xcodeproj/project.pbxproj:
+        It was apparently unclear to the compiler sometimes which "state" selector to use, and this apparently mattered.
+        Tell the compiler to use the NSMenuItem selector, but at runtime it doesn't matter.
+
 2019-01-22  Michael Catanzaro  <[email protected]>
 
         Unreviewed, fix -Wunused-but-set-variable warning

Modified: trunk/Source/WebKit/SourcesCocoa.txt (240310 => 240311)


--- trunk/Source/WebKit/SourcesCocoa.txt	2019-01-23 00:37:30 UTC (rev 240310)
+++ trunk/Source/WebKit/SourcesCocoa.txt	2019-01-23 00:43:18 UTC (rev 240311)
@@ -255,6 +255,7 @@
 UIProcess/API/Cocoa/_WKWebsitePolicies.mm
 UIProcess/API/Cocoa/APIAttachmentCocoa.mm
 UIProcess/API/Cocoa/APIContentRuleListStoreCocoa.mm
+UIProcess/API/Cocoa/APIHTTPCookieStoreCocoa.mm
 UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm
 UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm
 UIProcess/API/Cocoa/LegacyBundleForClass.mm

Modified: trunk/Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm (240310 => 240311)


--- trunk/Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm	2019-01-23 00:37:30 UTC (rev 240310)
+++ trunk/Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm	2019-01-23 00:43:18 UTC (rev 240311)
@@ -138,7 +138,8 @@
         return;
     }
 
-    WebKit::WebContextMenuItemData item(WebCore::ActionType, static_cast<WebCore::ContextMenuAction>([sender tag]), [sender title], [sender isEnabled], [sender state] == NSControlStateValueOn);
+    ASSERT(!sender || [sender isKindOfClass:NSMenuItem.class]);
+    WebKit::WebContextMenuItemData item(WebCore::ActionType, static_cast<WebCore::ContextMenuAction>([sender tag]), [sender title], [sender isEnabled], [(NSMenuItem *)sender state] == NSControlStateValueOn);
     if (representedObject) {
         ASSERT([representedObject isKindOfClass:[WKUserDataWrapper class]]);
         item.setUserData([static_cast<WKUserDataWrapper *>(representedObject) userData]);

Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (240310 => 240311)


--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2019-01-23 00:37:30 UTC (rev 240310)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2019-01-23 00:43:18 UTC (rev 240311)
@@ -1070,7 +1070,6 @@
 		5CD286551E7235B80094FDC8 /* WKContentRuleListInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CD2864C1E722F440094FDC8 /* WKContentRuleListInternal.h */; };
 		5CD286571E7235C90094FDC8 /* WKContentRuleListStoreInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CD2864F1E722F440094FDC8 /* WKContentRuleListStoreInternal.h */; };
 		5CD286581E7235D10094FDC8 /* WKContentRuleListStorePrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CD286501E722F440094FDC8 /* WKContentRuleListStorePrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
-		5CE43B7221F7CC020093BCC5 /* APIHTTPCookieStoreCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5CA46E7A21F1A23900CE86B4 /* APIHTTPCookieStoreCocoa.mm */; };
 		5CE85B201C88E64B0070BFCE /* PingLoad.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CE85B1F1C88E6430070BFCE /* PingLoad.h */; };
 		617A52D81F43A9DA00DCDC0A /* ServiceWorkerClientFetchMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 617A52D71F43A9B600DCDC0A /* ServiceWorkerClientFetchMessageReceiver.cpp */; };
 		63108F961F96719C00A0DB84 /* _WKApplicationManifest.h in Headers */ = {isa = PBXBuildFile; fileRef = 63108F941F96719C00A0DB84 /* _WKApplicationManifest.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -10787,7 +10786,6 @@
 				2D92A787212B6AB100F493FD /* ShareableBitmap.cpp in Sources */,
 				2DE6943D18BD2A68005C15E5 /* SmartMagnificationControllerMessageReceiver.cpp in Sources */,
 				1A334DED16DE8F88006A8E38 /* StorageAreaMapMessageReceiver.cpp in Sources */,
-				5CE43B7221F7CC020093BCC5 /* APIHTTPCookieStoreCocoa.mm in Sources */,
 				1AB31A9616BC688100F6DBC9 /* StorageManagerMessageReceiver.cpp in Sources */,
 				2D92A783212B6A7100F493FD /* StringReference.cpp in Sources */,
 				2D11B7512126A282006F8878 /* UnifiedSource1-mm.mm in Sources */,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to