Build fix for iOS
[WebKit-https.git] / Source / WebCore / bindings / objc / DOM.mm
index 12b187f9701e840c0646ca311c19d66013d41a6f..780940cc623d493c62df59190397348b9ec67221 100644 (file)
@@ -610,6 +610,8 @@ id <DOMEventTarget> kit(WebCore::EventTarget* eventTarget)
     if (!frame)
         return nil;
 
+    // iOS uses CGImageRef for drag images, which doesn't support separate logical/physical sizes.
+#if PLATFORM(MAC)
     RetainPtr<NSImage> renderedImage = createDragImageForRange(*frame, *range, forceBlackText);
 
     IntSize size([renderedImage size]);
@@ -617,6 +619,9 @@ id <DOMEventTarget> kit(WebCore::EventTarget* eventTarget)
     [renderedImage setSize:size];
 
     return renderedImage.autorelease();
+#else
+    return createDragImageForRange(*frame, *range, forceBlackText).autorelease();
+#endif
 }
 
 - (NSArray *)textRects