[iOS] WKPreviewAction conforms to NSCopying but doesn’t override -
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 22:58:28 +0000 (22:58 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 22:58:28 +0000 (22:58 +0000)
copyWithZone:
https://bugs.webkit.org/show_bug.cgi?id=155395

Reviewed by Sam Weinig.

* UIProcess/API/Cocoa/WKPreviewActionItem.mm:
(-[WKPreviewAction copyWithZone:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198166 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKPreviewActionItem.mm
Source/WebKit2/UIProcess/API/Cocoa/WKPreviewActionItemInternal.h

index ada7665..8862366 100644 (file)
@@ -1,3 +1,14 @@
+2016-03-14  Beth Dakin  <bdakin@apple.com>
+
+        [iOS] WKPreviewAction conforms to NSCopying but doesn’t override -
+        copyWithZone:
+        https://bugs.webkit.org/show_bug.cgi?id=155395
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/API/Cocoa/WKPreviewActionItem.mm:
+        (-[WKPreviewAction copyWithZone:]):
+
 2016-03-14  Anders Carlsson  <andersca@apple.com>
 
         Remove usage of -[UIGestureRecognizer requireOtherGestureToFail:]
index 6dd1dfa..c7c30d1 100644 (file)
     return action;
 }
 
+- (id)copyWithZone:(NSZone *)zone
+{
+    WKPreviewAction *action = [super copyWithZone:zone];
+    action->_identifier = self.identifier;
+    return action;
+}
+
 @end
 
 #endif // WK_API_ENABLED && TARGET_OS_IPHONE
index 6cb3082..7b65d2d 100644 (file)
@@ -29,7 +29,7 @@
 
 #import "WKPreviewActionItem.h"
 
-@interface WKPreviewAction : UIPreviewAction <NSCopying, WKPreviewActionItem>
+@interface WKPreviewAction : UIPreviewAction <WKPreviewActionItem>
 
 + (instancetype)actionWithIdentifier:(NSString *)identifier title:(NSString *)title style:(UIPreviewActionStyle)style handler:(void (^)(UIPreviewAction *action, UIViewController *previewViewController))handler;