Introduce new SPI for context menus on iOS
[WebKit-https.git] / Source / WebKit / UIProcess / API / Cocoa / _WKActivatedElementInfo.mm
index 5430403..24615bd 100644 (file)
@@ -51,6 +51,7 @@
 #if PLATFORM(MAC)
     RetainPtr<NSImage> _nsImage;
 #endif
+    BOOL _animatedImage;
 }
 
 #if PLATFORM(IOS_FAMILY)
@@ -81,6 +82,7 @@
     
     _image = information.image;
     _ID = information.idAttribute;
+    _animatedImage = information.isAnimatedImage;
     
     return self;
 }
     return _interactionLocation;
 }
 
+- (BOOL)isAnimatedImage
+{
+    return _animatedImage;
+}
+
 #if PLATFORM(IOS_FAMILY)
 - (NSDictionary *)userInfo
 {