Ignore deprecation warnings
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Oct 2013 22:15:08 +0000 (22:15 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Oct 2013 22:15:08 +0000 (22:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=122302

Reviewed by Mark Rowe.

Source/WebCore:

* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper convertPointToScreenSpace:]):
* bindings/objc/DOMHTML.mm:
(-[DOMHTMLInputElement _rectOnScreen]):
* page/mac/EventHandlerMac.mm:
(WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
* page/mac/FrameSnapshottingMac.mm:
(WebCore::imageFromRect):
* platform/graphics/mac/IconMac.mm:
(WebCore::Icon::Icon):
* platform/mac/DragImageMac.mm:
(WebCore::scaleDragImage):
* platform/mac/PlatformEventFactoryMac.mm:
(WebCore::globalPoint):
* platform/mac/ScrollViewMac.mm:
(WebCore::ScrollView::platformContentsToScreen):
(WebCore::ScrollView::platformScreenToContents):

Source/WebKit/mac:

* Misc/WebIconDatabase.mm:
(-[WebIconDatabase _scaleIcon:toSize:]):
(webGetNSImage):
* Misc/WebNSImageExtras.m:
(-[NSImage _web_scaleToMaxSize:]):
(-[NSImage _web_dissolveToFraction:]):
* Misc/WebNSViewExtras.m:
(-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
(-[NSView _web_convertRect:toView:]):
* Plugins/Hosted/NetscapePluginInstanceProxy.mm:
(WebKit::NetscapePluginInstanceProxy::mouseEvent):
* Plugins/Hosted/WebTextInputWindowController.m:
(-[WebTextInputPanel _interpretKeyEvent:string:]):
* Plugins/WebBaseNetscapePluginView.mm:
(-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
* WebCoreSupport/WebDragClient.mm:
(WebDragClient::startDrag):
* WebInspector/WebNodeHighlight.mm:
(-[WebNodeHighlight _computeHighlightWindowFrame]):
* WebView/WebFullScreenController.mm:
(-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
(-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
* WebView/WebHTMLView.mm:
(+[WebHTMLView _postFlagsChangedEvent:]):
(-[WebHTMLView _updateMouseoverWithFakeEvent]):
(-[WebHTMLView _autoscroll]):
(-[WebHTMLView mouseDown:]):
(-[WebHTMLView mouseDragged:]):
(-[WebHTMLView mouseUp:]):
(-[WebHTMLView accessibilityHitTest:]):
(-[WebHTMLView _executeSavedKeypressCommands]):
(-[WebHTMLView attachRootLayer:]):
(-[WebHTMLView textStorage]):
(-[WebHTMLView _updateSelectionForInputManager]):
* WebView/WebTextCompletionController.mm:
(-[WebTextCompletionController _buildUI]):
(-[WebTextCompletionController _placePopupWindow:]):

Source/WebKit2:

* Shared/mac/WebEventFactory.mm:
(WebKit::globalPoint):
* UIProcess/API/mac/FindIndicatorWindow.mm:
(WebKit::FindIndicatorWindow::setFindIndicator):
* UIProcess/API/mac/PageClientImpl.mm:
(WebKit::PageClientImpl::screenToWindow):
(WebKit::PageClientImpl::windowToScreen):
* UIProcess/API/mac/WKTextInputWindowController.mm:
(-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]):
(-[WKTextInputPanel _hasMarkedText]):
* UIProcess/API/mac/WKView.mm:
(-[WKView characterIndexForPoint:]):
(-[WKView firstRectForCharacterRange:actualRange:]):
(-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]):
(-[WKView _setDragImage:at:linkDrag:]):
(-[WKView performDictionaryLookupAtCurrentMouseLocation]):
* UIProcess/mac/WKFullScreenWindowController.mm:
(-[WKFullScreenWindowController _startEnterFullScreenAnimationWithDuration:]):
(-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::showContextMenu):
* UIProcess/mac/WebPopupMenuProxyMac.mm:
(WebKit::WebPopupMenuProxyMac::showPopupMenu):

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

30 files changed:
Source/WebCore/ChangeLog
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
Source/WebCore/bindings/objc/DOMHTML.mm
Source/WebCore/page/mac/EventHandlerMac.mm
Source/WebCore/page/mac/FrameSnapshottingMac.mm
Source/WebCore/platform/graphics/mac/IconMac.mm
Source/WebCore/platform/mac/DragImageMac.mm
Source/WebCore/platform/mac/PlatformEventFactoryMac.mm
Source/WebCore/platform/mac/ScrollViewMac.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/Misc/WebIconDatabase.mm
Source/WebKit/mac/Misc/WebNSImageExtras.m
Source/WebKit/mac/Misc/WebNSViewExtras.m
Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm
Source/WebKit/mac/Plugins/Hosted/WebTextInputWindowController.m
Source/WebKit/mac/Plugins/WebBaseNetscapePluginView.mm
Source/WebKit/mac/WebCoreSupport/WebDragClient.mm
Source/WebKit/mac/WebInspector/WebNodeHighlight.mm
Source/WebKit/mac/WebView/WebFullScreenController.mm
Source/WebKit/mac/WebView/WebHTMLView.mm
Source/WebKit/mac/WebView/WebTextCompletionController.mm
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/mac/WebEventFactory.mm
Source/WebKit2/UIProcess/API/mac/FindIndicatorWindow.mm
Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm
Source/WebKit2/UIProcess/API/mac/WKTextInputWindowController.mm
Source/WebKit2/UIProcess/API/mac/WKView.mm
Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm
Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm
Source/WebKit2/UIProcess/mac/WebPopupMenuProxyMac.mm

index 1fe78bd..fc6043a 100644 (file)
@@ -1,3 +1,28 @@
+2013-10-03  Anders Carlsson  <andersca@apple.com>
+
+        Ignore deprecation warnings
+        https://bugs.webkit.org/show_bug.cgi?id=122302
+
+        Reviewed by Mark Rowe.
+
+        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
+        (-[WebAccessibilityObjectWrapper convertPointToScreenSpace:]):
+        * bindings/objc/DOMHTML.mm:
+        (-[DOMHTMLInputElement _rectOnScreen]):
+        * page/mac/EventHandlerMac.mm:
+        (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
+        * page/mac/FrameSnapshottingMac.mm:
+        (WebCore::imageFromRect):
+        * platform/graphics/mac/IconMac.mm:
+        (WebCore::Icon::Icon):
+        * platform/mac/DragImageMac.mm:
+        (WebCore::scaleDragImage):
+        * platform/mac/PlatformEventFactoryMac.mm:
+        (WebCore::globalPoint):
+        * platform/mac/ScrollViewMac.mm:
+        (WebCore::ScrollView::platformContentsToScreen):
+        (WebCore::ScrollView::platformScreenToContents):
+
 2013-10-03  Hans Muller  <hmuller@adobe.com>
 
         [CSS Shapes] Support the shape-image-threshold property
index 693ca98..ac23fcc 100644 (file)
@@ -1524,12 +1524,13 @@ static NSMutableArray *convertStringsToNSArray(const Vector<String>& vector)
     
     // WebKit1 code path... platformWidget() exists.
     if (frameView && frameView->platformWidget()) {
-        
         NSPoint nsPoint = (NSPoint)point;
         NSView* view = frameView->documentView();
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         nsPoint = [[view window] convertBaseToScreen:[view convertPoint:nsPoint toView:nil]];
+#pragma clang diagnostic pop
         return CGPointMake(nsPoint.x, nsPoint.y);
-
     } else {
         
         // Find the appropriate scroll view to use to convert the contents to the window.
index 38637cc..65b8a81 100644 (file)
 
     NSView* view = core(self)->document().view()->documentView();
     result = [view convertRect:result toView:nil];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     result.origin = [[view window] convertBaseToScreen:result.origin];
+#pragma clang diagnostic pop
     return result;
 }
 
index 8ec9560..d3a1f95 100644 (file)
@@ -567,6 +567,8 @@ void EventHandler::sendFakeEventsAfterWidgetTracking(NSEvent *initiatingEvent)
         // FIXME: We should really get the current modifierFlags here, but there's no way to poll
         // them in Cocoa, and because the event stream was stolen by the Carbon menu code we have
         // no up-to-date cache of them anywhere.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved
                                        location:[[view->platformWidget() window] convertScreenToBase:[NSEvent mouseLocation]]
                                   modifierFlags:[initiatingEvent modifierFlags]
@@ -576,6 +578,7 @@ void EventHandler::sendFakeEventsAfterWidgetTracking(NSEvent *initiatingEvent)
                                     eventNumber:0
                                      clickCount:0
                                        pressure:0];
+#pragma clang diagnostic pop
         [NSApp postEvent:fakeEvent atStart:YES];
     }
     
index 29ec77e..e92c2f2 100644 (file)
@@ -49,7 +49,10 @@ NSImage* imageFromRect(Frame* frame, NSRect rect)
     NSImage* resultImage = [[[NSImage alloc] initWithSize:rect.size] autorelease];
     
     if (rect.size.width != 0 && rect.size.height != 0) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [resultImage setFlipped:YES];
+#pragma clang diagnostic pop
         [resultImage lockFocus];
 
         GraphicsContext graphicsContext((CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]);        
@@ -59,7 +62,10 @@ NSImage* imageFromRect(Frame* frame, NSRect rect)
         graphicsContext.restore();
 
         [resultImage unlockFocus];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [resultImage setFlipped:NO];
+#pragma clang diagnostic pop
     }
     
     frame->view()->setPaintBehavior(oldBehavior);
index dbf6a71..dcb2694 100644 (file)
@@ -32,7 +32,10 @@ Icon::Icon(NSImage *image)
     : m_nsImage(image)
 {
     // Need this because WebCore uses AppKit's flipped coordinate system exclusively.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [image setFlipped:YES];
+#pragma clang diagnostic pop
 }
 
 Icon::~Icon()
index 2e05c9f..4d41b20 100644 (file)
@@ -58,7 +58,10 @@ RetainPtr<NSImage> scaleDragImage(RetainPtr<NSImage> image, FloatSize scale)
     NSSize newSize = NSMakeSize((originalSize.width * scale.width()), (originalSize.height * scale.height()));
     newSize.width = roundf(newSize.width);
     newSize.height = roundf(newSize.height);
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [image.get() setScalesWhenResized:YES];
+#pragma clang diagnostic pop
     [image.get() setSize:newSize];
     return image;
 }
index 1b7c1e8..00f311f 100644 (file)
@@ -39,7 +39,10 @@ namespace WebCore {
 
 IntPoint globalPoint(const NSPoint& windowPoint, NSWindow *window)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     return IntPoint(flipScreenPoint([window convertBaseToScreen:windowPoint], screenForWindow(window)));
+#pragma clang diagnostic pop
 }
 
 static IntPoint globalPointForEvent(NSEvent *event)
index d017df5..b207a74 100644 (file)
@@ -182,7 +182,10 @@ IntRect ScrollView::platformContentsToScreen(const IntRect& rect) const
     if (NSView* documentView = this->documentView()) {
         NSRect tempRect = rect;
         tempRect = [documentView convertRect:tempRect toView:nil];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         tempRect.origin = [[documentView window] convertBaseToScreen:tempRect.origin];
+#pragma clang diagnostic pop
         return enclosingIntRect(tempRect);
     }
     END_BLOCK_OBJC_EXCEPTIONS;
@@ -193,7 +196,10 @@ IntPoint ScrollView::platformScreenToContents(const IntPoint& point) const
 {
     BEGIN_BLOCK_OBJC_EXCEPTIONS;
     if (NSView* documentView = this->documentView()) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         NSPoint windowCoord = [[documentView window] convertScreenToBase: point];
+#pragma clang diagnostic pop
         return IntPoint([documentView convertPoint:windowCoord fromView:nil]);
     }
     END_BLOCK_OBJC_EXCEPTIONS;
index 70177e7..1cad434 100644 (file)
@@ -1,3 +1,48 @@
+2013-10-03  Anders Carlsson  <andersca@apple.com>
+
+        Ignore deprecation warnings
+        https://bugs.webkit.org/show_bug.cgi?id=122302
+
+        Reviewed by Mark Rowe.
+
+        * Misc/WebIconDatabase.mm:
+        (-[WebIconDatabase _scaleIcon:toSize:]):
+        (webGetNSImage):
+        * Misc/WebNSImageExtras.m:
+        (-[NSImage _web_scaleToMaxSize:]):
+        (-[NSImage _web_dissolveToFraction:]):
+        * Misc/WebNSViewExtras.m:
+        (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
+        (-[NSView _web_convertRect:toView:]):
+        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
+        (WebKit::NetscapePluginInstanceProxy::mouseEvent):
+        * Plugins/Hosted/WebTextInputWindowController.m:
+        (-[WebTextInputPanel _interpretKeyEvent:string:]):
+        * Plugins/WebBaseNetscapePluginView.mm:
+        (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
+        * WebCoreSupport/WebDragClient.mm:
+        (WebDragClient::startDrag):
+        * WebInspector/WebNodeHighlight.mm:
+        (-[WebNodeHighlight _computeHighlightWindowFrame]):
+        * WebView/WebFullScreenController.mm:
+        (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
+        (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
+        * WebView/WebHTMLView.mm:
+        (+[WebHTMLView _postFlagsChangedEvent:]):
+        (-[WebHTMLView _updateMouseoverWithFakeEvent]):
+        (-[WebHTMLView _autoscroll]):
+        (-[WebHTMLView mouseDown:]):
+        (-[WebHTMLView mouseDragged:]):
+        (-[WebHTMLView mouseUp:]):
+        (-[WebHTMLView accessibilityHitTest:]):
+        (-[WebHTMLView _executeSavedKeypressCommands]):
+        (-[WebHTMLView attachRootLayer:]):
+        (-[WebHTMLView textStorage]):
+        (-[WebHTMLView _updateSelectionForInputManager]):
+        * WebView/WebTextCompletionController.mm:
+        (-[WebTextCompletionController _buildUI]):
+        (-[WebTextCompletionController _placePopupWindow:]):
+
 2013-10-01  Sam Weinig  <sam@webkit.org>
 
         CTTE: DOMWrapperWorlds should be passed around by reference
index b22a441..7e2b786 100644 (file)
@@ -441,7 +441,10 @@ static WebIconDatabaseClient* defaultClient()
     double start = CFAbsoluteTimeGetCurrent();
 #endif
     
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [icon setScalesWhenResized:YES];
+#pragma clang diagnostic pop
     [icon setSize:size];
     
 #if !LOG_DISABLED
@@ -484,7 +487,10 @@ NSImage *webGetNSImage(Image* image, NSSize size)
     if (!nsImage)
         return nil;
     if (!NSEqualSizes([nsImage size], size)) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [nsImage setScalesWhenResized:YES];
+#pragma clang diagnostic pop
         [nsImage setSize:size];
     }
     return nsImage;
index 7124f85..2b06ff6 100644 (file)
     
     if(resizeDelta > 0.0){
         NSSize newSize = NSMakeSize((originalSize.width * resizeDelta), (originalSize.height * resizeDelta));
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [self setScalesWhenResized:YES];
+#pragma clang diagnostic pop
         [self setSize:newSize];
     }
 }
 {
     NSImage *dissolvedImage = [[NSImage alloc] initWithSize:[self size]];
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSPoint point = [self isFlipped] ? NSMakePoint(0, [self size].height) : NSZeroPoint;
+#pragma clang diagnostic pop
     
     // In this case the dragging image is always correct.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [dissolvedImage setFlipped:[self isFlipped]];
+#pragma clang diagnostic pop
 
     [dissolvedImage lockFocus];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [self dissolveToPoint:point fraction: delta];
+#pragma clang diagnostic pop
     [dissolvedImage unlockFocus];
 
     [self lockFocus];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [dissolvedImage compositeToPoint:point operation:NSCompositeCopy];
+#pragma clang diagnostic pop
     [self unlockFocus];
 
     [dissolvedImage release];
index 70ff68a..97f05b4 100644 (file)
         origin = rect.origin;
         
         dragImage = [[image copy] autorelease];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [dragImage setScalesWhenResized:YES];
+#pragma clang diagnostic pop
         [dragImage setSize:originalSize];
         
         [dragImage _web_scaleToMaxSize:WebMaxDragImageSize];
     }
     
     // Per kwebster, offset arg is ignored
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [self dragImage:dragImage at:origin offset:NSZeroSize event:event pasteboard:pasteboard source:source slideBack:YES];
+#pragma clang diagnostic pop
 }
 
 - (BOOL)_web_firstResponderIsSelfOrDescendantView
     NSRect convertedRect = [self convertRect:aRect toView:nil];
     
     // Convert to screen coordinates
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     convertedRect.origin = [thisWindow convertBaseToScreen:convertedRect.origin];
-    
+
     // Convert to other window's coordinates
     convertedRect.origin = [otherWindow convertScreenToBase:convertedRect.origin];
+#pragma clang diagnostic pop
     
     // Convert to other view's coordinates
     convertedRect = [aView convertRect:convertedRect fromView:nil];
index 5417224..b165584 100644 (file)
@@ -426,7 +426,10 @@ void NetscapePluginInstanceProxy::startTimers(bool throttleTimers)
     
 void NetscapePluginInstanceProxy::mouseEvent(NSView *pluginView, NSEvent *event, NPCocoaEventType type)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSPoint screenPoint = [[event window] convertBaseToScreen:[event locationInWindow]];
+#pragma clang diagnostic pop
     NSPoint pluginPoint = [pluginView convertPoint:[event locationInWindow] fromView:nil];
     
     int clickCount;
index dc9f4a7..0040293 100644 (file)
 
 - (BOOL)_interpretKeyEvent:(NSEvent *)event string:(NSString **)string
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     BOOL hadMarkedText = [_inputTextView hasMarkedText];
+#pragma clang diagnostic pop
+
     *string = nil;
 
     // Let TSM know that a bottom input window would be created for marked text.
     if (![[_inputTextView inputContext] handleEvent:event])
         return NO;
     
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     if ([_inputTextView hasMarkedText]) {
+#pragma clang diagnostic pop
         // Don't show the input method window for dead keys
         if ([[event characters] length] > 0)
             [self orderFront:nil];
index 1de0ab7..cf1b2c8 100644 (file)
@@ -764,16 +764,25 @@ using namespace WebCore;
     switch (sourceSpace) {
         case NPCoordinateSpacePlugin:
             sourcePointInScreenSpace = [self convertPoint:sourcePoint toView:nil];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             sourcePointInScreenSpace = [[self currentWindow] convertBaseToScreen:sourcePointInScreenSpace];
+#pragma clang diagnostic pop
             break;
             
         case NPCoordinateSpaceWindow:
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             sourcePointInScreenSpace = [[self currentWindow] convertBaseToScreen:sourcePoint];
+#pragma clang diagnostic pop
             break;
             
         case NPCoordinateSpaceFlippedWindow:
             sourcePoint.y = [[self currentWindow] frame].size.height - sourcePoint.y;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             sourcePointInScreenSpace = [[self currentWindow] convertBaseToScreen:sourcePoint];
+#pragma clang diagnostic pop
             break;
             
         case NPCoordinateSpaceScreen:
@@ -793,16 +802,25 @@ using namespace WebCore;
     // Then convert back to the destination space
     switch (destSpace) {
         case NPCoordinateSpacePlugin:
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             destPoint = [[self currentWindow] convertScreenToBase:sourcePointInScreenSpace];
+#pragma clang diagnostic pop
             destPoint = [self convertPoint:destPoint fromView:nil];
             break;
             
         case NPCoordinateSpaceWindow:
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             destPoint = [[self currentWindow] convertScreenToBase:sourcePointInScreenSpace];
+#pragma clang diagnostic pop
             break;
             
         case NPCoordinateSpaceFlippedWindow:
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             destPoint = [[self currentWindow] convertScreenToBase:sourcePointInScreenSpace];
+#pragma clang diagnostic pop
             destPoint.y = [[self currentWindow] frame].size.height - destPoint.y;
             break;
             
index 4fc48f2..6eecfec 100644 (file)
@@ -117,7 +117,10 @@ void WebDragClient::startDrag(DragImageRef dragImage, const IntPoint& at, const
             ReportDiscardedDelegateException(selector, exception);
         }
     } else
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [topHTMLView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sourceHTMLView slideBack:YES];
+#pragma clang diagnostic pop
 }
 
 void WebDragClient::declareAndWriteDragImage(const String& pasteboardName, DOMElement* element, NSURL* URL, NSString* title, WebCore::Frame* frame) 
index c918d2d..2174b03 100644 (file)
@@ -179,7 +179,10 @@ using namespace WebCore;
     ASSERT([_targetView window]);
 
     NSRect highlightWindowFrame = [_targetView convertRect:[_targetView visibleRect] toView:nil];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     highlightWindowFrame.origin = [[_targetView window] convertBaseToScreen:highlightWindowFrame.origin];
+#pragma clang diagnostic pop
 
     return highlightWindowFrame;
 }
index 34a6c39..285a5e6 100644 (file)
@@ -490,7 +490,10 @@ static NSRect windowFrameFromApparentFrames(NSRect screenFrame, NSRect initialFr
     
     // WKWindowSetClipRect takes window coordinates, so convert from screen coordinates here:
     NSRect finalBounds = _finalFrame;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     finalBounds.origin = [[self window] convertScreenToBase:finalBounds.origin];
+#pragma clang diagnostic pop
     WKWindowSetClipRect([self window], finalBounds);
     
     [[self window] makeKeyAndOrderFront:self];
@@ -559,7 +562,10 @@ static NSRect windowFrameFromApparentFrames(NSRect screenFrame, NSRect initialFr
     
     // WKWindowSetClipRect takes window coordinates, so convert from screen coordinates here:
     NSRect finalBounds = _finalFrame;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     finalBounds.origin = [[self window] convertScreenToBase:finalBounds.origin];
+#pragma clang diagnostic pop
     WKWindowSetClipRect([self window], finalBounds);
     
     [[self window] setAutodisplay:YES];
index d49587a..17bde4f 100644 (file)
@@ -1148,6 +1148,8 @@ static NSURL* uniqueURLWithRelativePart(NSString *relativePart)
 + (void)_postFlagsChangedEvent:(NSEvent *)flagsChangedEvent
 {
     // This is a workaround for: <rdar://problem/2981619> NSResponder_Private should include notification for FlagsChanged
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved
         location:[[flagsChangedEvent window] convertScreenToBase:[NSEvent mouseLocation]]
         modifierFlags:[flagsChangedEvent modifierFlags]
@@ -1155,6 +1157,7 @@ static NSURL* uniqueURLWithRelativePart(NSString *relativePart)
         windowNumber:[flagsChangedEvent windowNumber]
         context:[flagsChangedEvent context]
         eventNumber:0 clickCount:0 pressure:0];
+#pragma clang diagnostic pop
 
     // Pretend it's a mouse move.
     [[NSNotificationCenter defaultCenter]
@@ -1172,6 +1175,8 @@ static NSURL* uniqueURLWithRelativePart(NSString *relativePart)
 
 - (void)_updateMouseoverWithFakeEvent
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved
         location:[[self window] convertScreenToBase:[NSEvent mouseLocation]]
         modifierFlags:[[NSApp currentEvent] modifierFlags]
@@ -1179,7 +1184,8 @@ static NSURL* uniqueURLWithRelativePart(NSString *relativePart)
         windowNumber:[[self window] windowNumber]
         context:[[NSApp currentEvent] context]
         eventNumber:0 clickCount:0 pressure:0];
-    
+#pragma clang diagnostic pop
+
     [self _updateMouseoverWithEvent:fakeEvent];
 }
 
@@ -1746,6 +1752,8 @@ static bool mouseEventIsPartOfClickOrDrag(NSEvent *event)
         return;
     }
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSLeftMouseDragged
         location:[[self window] convertScreenToBase:[NSEvent mouseLocation]]
         modifierFlags:[[NSApp currentEvent] modifierFlags]
@@ -1753,6 +1761,7 @@ static bool mouseEventIsPartOfClickOrDrag(NSEvent *event)
         windowNumber:[[self window] windowNumber]
         context:[[NSApp currentEvent] context]
         eventNumber:0 clickCount:0 pressure:0];
+#pragma clang diagnostic pop
     [self mouseDragged:fakeEvent];
 }
 
@@ -3542,6 +3551,8 @@ static void setMenuTargets(NSMenu* menu)
     // Record the mouse down position so we can determine drag hysteresis.
     [self _setMouseDownEvent:event];
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSInputManager *currentInputManager = [NSInputManager currentInputManager];
 
     if (![currentInputManager wantsToHandleMouseEvents] || ![currentInputManager handleMouseEvent:event]) {
@@ -3558,6 +3569,7 @@ static void setMenuTargets(NSMenu* menu)
                 coreframe->eventHandler().mouseDown(event);
         }
     }
+#pragma clang diagnostic pop
 
     _private->handlingMouseDownEvent = NO;
 }
@@ -3582,9 +3594,12 @@ static void setMenuTargets(NSMenu* menu)
     // the current event prevents that from causing a problem inside WebKit or AppKit code.
     [[event retain] autorelease];
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSInputManager *currentInputManager = [NSInputManager currentInputManager];
     if ([currentInputManager wantsToHandleMouseEvents] && [currentInputManager handleMouseEvent:event])
         return;
+#pragma clang diagnostic pop
 
     [self retain];
 
@@ -3708,9 +3723,12 @@ static bool matchesExtensionOrEquivalent(NSString *filename, NSString *extension
 
     [self _setMouseDownEvent:nil];
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSInputManager *currentInputManager = [NSInputManager currentInputManager];
     if ([currentInputManager wantsToHandleMouseEvents] && [currentInputManager handleMouseEvent:event])
         return;
+#pragma clang diagnostic pop
 
     [self retain];
 
@@ -4189,7 +4207,10 @@ static PassRefPtr<KeyboardEvent> currentKeyboardEvent(Frame* coreFrame)
 {
     id accTree = [[self _frame] accessibilityRoot];
     if (accTree) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         NSPoint windowCoord = [[self window] convertScreenToBase:point];
+#pragma clang diagnostic pop
         return [accTree accessibilityHitTest:[self convertPoint:windowCoord fromView:nil]];
     }
     return self;
@@ -5241,12 +5262,15 @@ static BOOL writingDirectionKeyBindingsEnabled()
     const Vector<KeypressCommand>& commands = parameters->event->keypressCommands();
 
     for (size_t i = 0; i < commands.size(); ++i) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         if (commands[i].commandName == "insertText:")
             [self insertText:commands[i].text];
         else if (commands[i].commandName == "noop:")
             ; // Do nothing. This case can be removed once <rdar://problem/9025012> is fixed.
         else
             [self doCommandBySelector:NSSelectorFromString(commands[i].commandName)];
+#pragma clang diagnostic pop
     }
     parameters->event->keypressCommands().clear();
     parameters->shouldSaveCommands = wasSavingCommands;
@@ -5386,7 +5410,10 @@ static BOOL writingDirectionKeyBindingsEnabled()
         // If we are in a layer-backed view, we need to manually initialize the geometry for our layer.
         [viewLayer setBounds:NSRectToCGRect([_private->layerHostingView bounds])];
         [viewLayer setAnchorPoint:CGPointMake(0, [self isFlipped] ? 1 : 0)];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         CGPoint layerPosition = NSPointToCGPoint([self convertPointToBase:[_private->layerHostingView frame].origin]);
+#pragma clang diagnostic pop
         [viewLayer setPosition:layerPosition];
     }
     
@@ -5475,8 +5502,11 @@ static BOOL writingDirectionKeyBindingsEnabled()
         LOG(TextInput, "textStorage -> nil");
         return nil;
     }
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSAttributedString *result = [self attributedSubstringFromRange:NSMakeRange(0, UINT_MAX)];
-    
+#pragma clang diagnostic pop
+
     LOG(TextInput, "textStorage -> \"%@\"", result ? [result string] : @"");
     
     // We have to return an empty string rather than null to prevent TSM from calling -string
@@ -5885,12 +5915,15 @@ static void extractUnderlines(NSAttributedString *string, Vector<CompositionUnde
 
     unsigned start;
     unsigned end;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     if (coreFrame->editor().getCompositionSelection(start, end))
         [[NSInputManager currentInputManager] markedTextSelectionChanged:NSMakeRange(start, end - start) client:self];
     else {
         coreFrame->editor().cancelComposition();
         [[NSInputManager currentInputManager] markedTextAbandoned:self];
     }
+#pragma clang diagnostic pop
 }
 
 @end
index 53ea018..b9ccd65 100644 (file)
@@ -84,7 +84,10 @@ using namespace WebCore;
 {
     NSRect scrollFrame = NSMakeRect(0, 0, 100, 100);
     NSRect tableFrame = NSZeroRect;    
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     tableFrame.size = [NSScrollView contentSizeForFrameSize:scrollFrame.size hasHorizontalScroller:NO hasVerticalScroller:YES borderType:NSNoBorder];
+#pragma clang diagnostic pop
     NSTableColumn *column = [[NSTableColumn alloc] init];
     [column setWidth:tableFrame.size.width];
     [column setEditable:NO];
@@ -128,7 +131,10 @@ using namespace WebCore;
 
     NSRect windowFrame;
     NSPoint wordStart = topLeft;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     windowFrame.origin = [[_view window] convertBaseToScreen:[_htmlView convertPoint:wordStart toView:nil]];
+#pragma clang diagnostic pop
     windowFrame.size.height = numberToShow * [_tableView rowHeight] + (numberToShow + 1) * [_tableView intercellSpacing].height;
     windowFrame.origin.y -= windowFrame.size.height;
     NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[NSFont systemFontOfSize:12.0f], NSFontAttributeName, nil];
@@ -144,7 +150,10 @@ using namespace WebCore;
     }
     windowFrame.size.width = 100;
     if (maxIndex >= 0) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         maxWidth = ceilf([NSScrollView frameSizeForContentSize:NSMakeSize(maxWidth, 100.0f) hasHorizontalScroller:NO hasVerticalScroller:YES borderType:NSNoBorder].width);
+#pragma clang diagnostic pop
         maxWidth = ceilf([NSWindow frameRectForContentRect:NSMakeRect(0.0f, 0.0f, maxWidth, 100.0f) styleMask:NSBorderlessWindowMask].size.width);
         maxWidth += 5.0f;
         windowFrame.size.width = std::max(maxWidth, windowFrame.size.width);
index 692028b..2bc9926 100644 (file)
@@ -1,5 +1,36 @@
 2013-10-03  Anders Carlsson  <andersca@apple.com>
 
+        Ignore deprecation warnings
+        https://bugs.webkit.org/show_bug.cgi?id=122302
+
+        Reviewed by Mark Rowe.
+
+        * Shared/mac/WebEventFactory.mm:
+        (WebKit::globalPoint):
+        * UIProcess/API/mac/FindIndicatorWindow.mm:
+        (WebKit::FindIndicatorWindow::setFindIndicator):
+        * UIProcess/API/mac/PageClientImpl.mm:
+        (WebKit::PageClientImpl::screenToWindow):
+        (WebKit::PageClientImpl::windowToScreen):
+        * UIProcess/API/mac/WKTextInputWindowController.mm:
+        (-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]):
+        (-[WKTextInputPanel _hasMarkedText]):
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView characterIndexForPoint:]):
+        (-[WKView firstRectForCharacterRange:actualRange:]):
+        (-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]):
+        (-[WKView _setDragImage:at:linkDrag:]):
+        (-[WKView performDictionaryLookupAtCurrentMouseLocation]):
+        * UIProcess/mac/WKFullScreenWindowController.mm:
+        (-[WKFullScreenWindowController _startEnterFullScreenAnimationWithDuration:]):
+        (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
+        * UIProcess/mac/WebContextMenuProxyMac.mm:
+        (WebKit::WebContextMenuProxyMac::showContextMenu):
+        * UIProcess/mac/WebPopupMenuProxyMac.mm:
+        (WebKit::WebPopupMenuProxyMac::showPopupMenu):
+
+2013-10-03  Anders Carlsson  <andersca@apple.com>
+
         Remove the last remnants of Qt from WebKit2
         https://bugs.webkit.org/show_bug.cgi?id=122290
 
index dac6f1a..e98f26f 100644 (file)
@@ -145,7 +145,10 @@ static NSPoint flipScreenPoint(const NSPoint& screenPoint, NSScreen *screen)
 
 static NSPoint globalPoint(const NSPoint& windowPoint, NSWindow *window)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     return flipScreenPoint([window convertBaseToScreen:windowPoint], screenForWindow(window));
+#pragma clang diagnostic pop
 }
 
 static NSPoint globalPointForEvent(NSEvent *event)
index 8aa94bd..939e1b0 100644 (file)
@@ -139,8 +139,10 @@ void FindIndicatorWindow::setFindIndicator(PassRefPtr<FindIndicator> findIndicat
 
     NSRect contentRect = m_findIndicator->frameRect();
     NSRect windowFrameRect = NSIntegralRect([m_wkView convertRect:contentRect toView:nil]);
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     windowFrameRect.origin = [[m_wkView window] convertBaseToScreen:windowFrameRect.origin];
-
+#pragma clang diagnostic pop
     NSRect windowContentRect = [NSWindow contentRectForFrameRect:windowFrameRect styleMask:NSBorderlessWindowMask];
     
     m_findIndicatorWindow = adoptNS([[NSWindow alloc] initWithContentRect:windowContentRect 
index b6e8f1a..45d9476 100644 (file)
@@ -352,7 +352,10 @@ FloatRect PageClientImpl::convertToUserSpace(const FloatRect& rect)
    
 IntPoint PageClientImpl::screenToWindow(const IntPoint& point)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSPoint windowCoord = [[m_wkView window] convertScreenToBase:point];
+#pragma clang diagnostic pop
     return IntPoint([m_wkView convertPoint:windowCoord fromView:nil]);
 }
     
@@ -360,7 +363,10 @@ IntRect PageClientImpl::windowToScreen(const IntRect& rect)
 {
     NSRect tempRect = rect;
     tempRect = [m_wkView convertRect:tempRect toView:nil];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     tempRect.origin = [[m_wkView window] convertBaseToScreen:tempRect.origin];
+#pragma clang diagnostic pop
     return enclosingIntRect(tempRect);
 }
 
index 8834dcd..9311214 100644 (file)
 
 - (BOOL)_interpretKeyEvent:(NSEvent *)event usingLegacyCocoaTextInput:(BOOL)usingLegacyCocoaTextInput string:(NSString **)string
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     BOOL hadMarkedText = [_inputTextView hasMarkedText];
+#pragma clang diagnostic pop
  
     *string = nil;
 
     if (![[_inputTextView inputContext] handleEvent:event])
         return NO;
     
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     if ([_inputTextView hasMarkedText]) {
+#pragma clang diagnostic pop
         // Don't show the input method window for dead keys
         if ([[event characters] length] > 0)
             [self orderFront:nil];
 
 - (BOOL)_hasMarkedText
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     return [_inputTextView hasMarkedText];
+#pragma clang diagnostic pop
 }
 
 @end
index fd90826..96292c8 100644 (file)
@@ -1698,9 +1698,12 @@ static void extractUnderlines(NSAttributedString *string, Vector<CompositionUnde
 
     NSWindow *window = [self window];
     
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     if (window)
         thePoint = [window convertScreenToBase:thePoint];
-    thePoint = [self convertPoint:thePoint fromView:nil];  // the point is relative to the main frame 
+#pragma clang diagnostic pop
+    thePoint = [self convertPoint:thePoint fromView:nil];  // the point is relative to the main frame
     
     uint64_t result = _data->_page->characterIndexForPoint(IntPoint(thePoint));
     LOG(TextInput, "characterIndexForPoint:(%f, %f) -> %u", thePoint.x, thePoint.y, result);
@@ -1721,8 +1724,11 @@ static void extractUnderlines(NSAttributedString *string, Vector<CompositionUnde
     resultRect = [self convertRect:resultRect toView:nil];
     
     NSWindow *window = [self window];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     if (window)
         resultRect.origin = [window convertBaseToScreen:resultRect.origin];
+#pragma clang diagnostic pop
 
     if (actualRange) {
         // FIXME: Update actualRange to match the range of first rect.
@@ -2250,9 +2256,12 @@ static NSString * const backingPropertyOldScaleFactorKey = @"NSBackingPropertyOl
 
 - (void)_postFakeMouseMovedEventForFlagsChangedEvent:(NSEvent *)flagsChangedEvent
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved location:[[flagsChangedEvent window] convertScreenToBase:[NSEvent mouseLocation]]
         modifierFlags:[flagsChangedEvent modifierFlags] timestamp:[flagsChangedEvent timestamp] windowNumber:[flagsChangedEvent windowNumber]
         context:[flagsChangedEvent context] eventNumber:0 clickCount:0 pressure:0];
+#pragma clang diagnostic pop
     NativeWebMouseEvent webEvent(fakeEvent, self);
     _data->_page->handleMouseEvent(webEvent);
 }
@@ -2694,6 +2703,8 @@ static NSString * const backingPropertyOldScaleFactorKey = @"NSBackingPropertyOl
     // The call below could release this WKView.
     RetainPtr<WKView> protector(self);
     
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [self dragImage:image
                  at:clientPoint
              offset:NSZeroSize
@@ -2701,6 +2712,7 @@ static NSString * const backingPropertyOldScaleFactorKey = @"NSBackingPropertyOl
          pasteboard:[NSPasteboard pasteboardWithName:NSDragPboard]
              source:self
           slideBack:YES];
+#pragma clang diagnostic pop
 }
 
 static bool matchesExtensionOrEquivalent(NSString *filename, NSString *extension)
@@ -3123,7 +3135,10 @@ static NSString *pathWithUniqueFilenameForPath(NSString *path)
 - (void)performDictionaryLookupAtCurrentMouseLocation
 {
     NSPoint thePoint = [NSEvent mouseLocation];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     thePoint = [[self window] convertScreenToBase:thePoint];
+#pragma clang diagnostic pop
     thePoint = [self convertPoint:thePoint fromView:nil];
 
     _data->_page->performDictionaryLookupAtLocation(FloatPoint(thePoint.x, thePoint.y));
index c89205f..94118d9 100644 (file)
@@ -562,7 +562,10 @@ static NSRect windowFrameFromApparentFrames(NSRect screenFrame, NSRect initialFr
 
     // WKWindowSetClipRect takes window coordinates, so convert from screen coordinates here:
     NSRect finalBounds = _finalFrame;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     finalBounds.origin = [[self window] convertScreenToBase:finalBounds.origin];
+#pragma clang diagnostic pop
     WKWindowSetClipRect([self window], finalBounds);
 
     NSWindow* window = [self window];
@@ -643,7 +646,10 @@ static NSRect windowFrameFromApparentFrames(NSRect screenFrame, NSRect initialFr
 
     // WKWindowSetClipRect takes window coordinates, so convert from screen coordinates here:
     NSRect finalBounds = _finalFrame;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     finalBounds.origin = [[self window] convertScreenToBase:finalBounds.origin];
+#pragma clang diagnostic pop
     WKWindowSetClipRect([self window], finalBounds);
 
     [_webView _setSuppressVisibilityUpdates:NO];
index a0e1c33..5201200 100644 (file)
@@ -220,8 +220,11 @@ void WebContextMenuProxyMac::showContextMenu(const IntPoint& menuLocation, const
     NSPoint location = NSMakePoint(NSMinX(menuRect), NSMaxY(menuRect) - vertOffset);
 
     location = [m_webView convertPoint:location toView:nil];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     location = [m_webView.window convertBaseToScreen:location];
+#pragma clang diagnostic pop
+
     WKPopupContextMenu(menu, location);
 
     [m_popup.get() dismissPopUp];
index f74b760..b4ed99e 100644 (file)
@@ -163,6 +163,8 @@ void WebPopupMenuProxyMac::showPopupMenu(const IntRect& rect, TextDirection text
                                             pressure:[initiatingNSEvent pressure]];
     
     [NSApp postEvent:fakeEvent atStart:YES];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved
                                    location:[[m_webView window] convertScreenToBase:[NSEvent mouseLocation]]
                               modifierFlags:[initiatingNSEvent modifierFlags]
@@ -172,6 +174,7 @@ void WebPopupMenuProxyMac::showPopupMenu(const IntRect& rect, TextDirection text
                                 eventNumber:0
                                  clickCount:0
                                    pressure:0];
+#pragma clang diagnostic pop
     [NSApp postEvent:fakeEvent atStart:YES];
 }