Changeset 135882 in webkit


Ignore:
Timestamp:
Nov 27, 2012, 10:58:42 AM (13 years ago)
Author:
psolanki@apple.com
Message:

objc/objc-runtime.h does not exist on all PLATFORM(MAC)
https://bugs.webkit.org/show_bug.cgi?id=101780

Reviewed by Brent Fulgham.

Clean up header includes so we don't include objc/objc-runtime.h.

Source/WebCore:

No new tests because no functional changes.

  • bridge/objc/objc_header.h:
  • page/mac/EventHandlerMac.mm:
  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
  • platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
  • platform/graphics/ca/mac/PlatformCALayerMac.mm:
  • platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
  • platform/graphics/mac/WebLayer.mm:
  • platform/mac/WebCoreObjCExtras.mm:
  • platform/mac/WebVideoFullscreenController.mm:

Source/WebKit/mac:

  • Carbon/HIWebView.mm:

(UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.

  • Plugins/WebNetscapePluginView.mm:
  • Plugins/WebPluginContainerCheck.mm:

(-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.

  • Plugins/WebPluginController.mm:
  • WebCoreSupport/WebCachedFramePlatformData.h:
  • WebCoreSupport/WebDeviceOrientationClient.mm:
  • WebView/WebDelegateImplementationCaching.mm:
  • WebView/WebHTMLView.mm:
  • WebView/WebPDFDocumentExtras.mm:
  • WebView/WebPolicyDelegate.mm:

(-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.

  • WebView/WebView.mm:

Source/WebKit2:

  • PluginProcess/mac/PluginProcessShim.mm:
  • UIProcess/API/mac/PDFViewController.mm:

Source/WTF:

  • wtf/Functional.h:
  • wtf/ObjcRuntimeExtras.h: Include objc/message.h here so we don't rely on proper ordering

of includes in files that include this header.

Tools:

  • DumpRenderTree/mac/DumpRenderTree.mm:
  • DumpRenderTree/mac/ObjCPlugin.m:
  • TestWebKitAPI/mac/InstanceMethodSwizzler.h:
  • WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:
Location:
trunk
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r135854 r135882  
     12012-11-27  Pratik Solanki  <psolanki@apple.com>
     2
     3        objc/objc-runtime.h does not exist on all PLATFORM(MAC)
     4        https://bugs.webkit.org/show_bug.cgi?id=101780
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Clean up header includes so we don't include objc/objc-runtime.h.
     9
     10        * wtf/Functional.h:
     11        * wtf/ObjcRuntimeExtras.h: Include objc/message.h here so we don't rely on proper ordering
     12        of includes in files that include this header.
     13
    1142012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WTF/wtf/Functional.h

    r127306 r135882  
    3434#if PLATFORM(MAC) && COMPILER_SUPPORTS(BLOCKS)
    3535#include <Block.h>
    36 #include <objc/objc-runtime.h>
    3736#include <wtf/ObjcRuntimeExtras.h>
    3837#endif
  • trunk/Source/WTF/wtf/ObjcRuntimeExtras.h

    r127306 r135882  
    2525#ifndef WTF_ObjcRuntimeExtras_h
    2626#define WTF_ObjcRuntimeExtras_h
     27
     28#include <objc/message.h>
    2729
    2830template<typename RetType>
  • trunk/Source/WebCore/ChangeLog

    r135881 r135882  
     12012-11-27  Pratik Solanki  <psolanki@apple.com>
     2
     3        objc/objc-runtime.h does not exist on all PLATFORM(MAC)
     4        https://bugs.webkit.org/show_bug.cgi?id=101780
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Clean up header includes so we don't include objc/objc-runtime.h.
     9
     10        No new tests because no functional changes.
     11
     12        * bridge/objc/objc_header.h:
     13        * page/mac/EventHandlerMac.mm:
     14        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     15        * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
     16        * platform/graphics/ca/mac/PlatformCALayerMac.mm:
     17        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
     18        * platform/graphics/mac/WebLayer.mm:
     19        * platform/mac/WebCoreObjCExtras.mm:
     20        * platform/mac/WebVideoFullscreenController.mm:
     21
    1222012-11-27  Eberhard Graether  <egraether@google.com>
    223
  • trunk/Source/WebCore/bridge/objc/objc_header.h

    r15071 r135882  
    3131#include <objc/objc.h>
    3232#include <objc/objc-class.h>
    33 #include <objc/objc-runtime.h>
     33#include <objc/runtime.h>
    3434
    3535typedef Class ClassStructPtr;
  • trunk/Source/WebCore/page/mac/EventHandlerMac.mm

    r132551 r135882  
    4949#include "Settings.h"
    5050#include "WebCoreSystemInterface.h"
    51 #include <objc/objc-runtime.h>
    5251#include <wtf/MainThread.h>
    5352#include <wtf/ObjcRuntimeExtras.h>
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r134802 r135882  
    4444#import "WebCoreAVFResourceLoader.h"
    4545#import "WebCoreSystemInterface.h"
    46 #import <objc/objc-runtime.h>
     46#import <objc/runtime.h>
    4747#import <wtf/UnusedParam.h>
    4848#import <wtf/Uint8Array.h>
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm

    r134814 r135882  
    3939#import "UTIUtilities.h"
    4040#import <AVFoundation/AVAssetResourceLoader.h>
    41 #import <objc/objc-runtime.h>
     41#import <objc/runtime.h>
    4242#import <wtf/text/CString.h>
    4343
  • trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm

    r132982 r135882  
    4141#import "WebTileCacheLayer.h"
    4242#import <objc/objc-auto.h>
    43 #import <objc/objc-runtime.h>
     43#import <objc/runtime.h>
    4444#import <QuartzCore/QuartzCore.h>
    4545#import <wtf/CurrentTime.h>
  • trunk/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm

    r131502 r135882  
    4444#import "WebCoreSystemInterface.h"
    4545#import <QTKit/QTKit.h>
    46 #import <objc/objc-runtime.h>
     46#import <objc/runtime.h>
    4747#import <wtf/UnusedParam.h>
    4848
  • trunk/Source/WebCore/platform/graphics/mac/WebLayer.mm

    r134755 r135882  
    3434#import "PlatformCALayer.h"
    3535#import "ThemeMac.h"
    36 #import <objc/objc-runtime.h>
     36#import <objc/runtime.h>
    3737#import <QuartzCore/QuartzCore.h>
    3838#import <wtf/UnusedParam.h>
  • trunk/Source/WebCore/platform/mac/WebCoreObjCExtras.mm

    r127193 r135882  
    3636
    3737#include <objc/objc-auto.h>
    38 #include <objc/objc-runtime.h>
    3938#include <utility>
    4039#include <wtf/Assertions.h>
  • trunk/Source/WebCore/platform/mac/WebVideoFullscreenController.mm

    r122400 r135882  
    3737#import <WebCore/HTMLMediaElement.h>
    3838#import <WebCore/SoftLinking.h>
    39 #import <objc/objc-runtime.h>
     39#import <objc/runtime.h>
    4040#import <wtf/UnusedParam.h>
    4141
  • trunk/Source/WebKit/mac/Carbon/HIWebView.mm

    r85036 r135882  
    3737#import "WebKit.h"
    3838#import <WebKitSystemInterface.h>
    39 #import <objc/objc-runtime.h>
     39#import <wtf/ObjcRuntimeExtras.h>
    4040
    4141@interface NSWindow (AppKitSecretsHIWebViewKnows)
     
    11671167                        // Can't use -performSelector:withObject: here because the method we're calling returns BOOL, while
    11681168                        // -performSelector:withObject:'s return value is assumed to be an id.
    1169                         BOOL (*validationFunction)(id, SEL, id) = (BOOL (*)(id, SEL, id))objc_msgSend;
    1170                         if (validationFunction(resp, @selector(validateUserInterfaceItem:), proxy))
     1169                        if (wtfObjcMsgSend<BOOL>(resp, @selector(validateUserInterfaceItem:), proxy))
    11711170                                                        EnableMenuItem( inCommand->menu.menuRef, inCommand->menu.menuItemIndex );
    11721171                                                else
  • trunk/Source/WebKit/mac/ChangeLog

    r135837 r135882  
     12012-11-27  Pratik Solanki  <psolanki@apple.com>
     2
     3        objc/objc-runtime.h does not exist on all PLATFORM(MAC)
     4        https://bugs.webkit.org/show_bug.cgi?id=101780
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Clean up header includes so we don't include objc/objc-runtime.h.
     9
     10        * Carbon/HIWebView.mm:
     11        (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
     12        * Plugins/WebNetscapePluginView.mm:
     13        * Plugins/WebPluginContainerCheck.mm:
     14        (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
     15        * Plugins/WebPluginController.mm:
     16        * WebCoreSupport/WebCachedFramePlatformData.h:
     17        * WebCoreSupport/WebDeviceOrientationClient.mm:
     18        * WebView/WebDelegateImplementationCaching.mm:
     19        * WebView/WebHTMLView.mm:
     20        * WebView/WebPDFDocumentExtras.mm:
     21        * WebView/WebPolicyDelegate.mm:
     22        (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
     23        * WebView/WebView.mm:
     24
    1252012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    226
  • trunk/Source/WebKit/mac/Plugins/WebNetscapePluginView.mm

    r130612 r135882  
    7878#import <WebKit/DOMPrivate.h>
    7979#import <WebKit/WebUIDelegate.h>
    80 #import <objc/objc-runtime.h>
     80#import <objc/runtime.h>
    8181#import <runtime/InitializeThreading.h>
    8282#import <runtime/JSLock.h>
  • trunk/Source/WebKit/mac/Plugins/WebPluginContainerCheck.mm

    r67316 r135882  
    4343#import <WebCore/SecurityOrigin.h>
    4444#import <wtf/Assertions.h>
    45 #import <objc/objc-runtime.h>
     45#import <wtf/ObjcRuntimeExtras.h>
    4646
    4747using namespace WebCore;
     
    8888{
    8989    if (_contextInfo)
    90         ((void (*)(id, SEL, BOOL, id))objc_msgSend)(_resultObject, _resultSelector, (policy == PolicyUse), _contextInfo);
     90        wtfObjcMsgSend<void>(_resultObject, _resultSelector, (policy == PolicyUse), _contextInfo);
    9191    else     
    92         ((void (*)(id, SEL, BOOL))objc_msgSend)(_resultObject, _resultSelector, (policy == PolicyUse));
     92        wtfObjcMsgSend<void>(_resultObject, _resultSelector, (policy == PolicyUse));
    9393
    9494    // this will call indirectly call cancel
  • trunk/Source/WebKit/mac/Plugins/WebPluginController.mm

    r135837 r135882  
    5858#import <WebCore/ScriptController.h>
    5959#import <WebCore/WebCoreURLResponse.h>
    60 #import <objc/objc-runtime.h>
     60#import <objc/runtime.h>
    6161#import <runtime/JSLock.h>
    6262#import <wtf/text/WTFString.h>
  • trunk/Source/WebKit/mac/WebCoreSupport/WebCachedFramePlatformData.h

    r127193 r135882  
    2727 */
    2828
    29 #import <objc/objc-runtime.h>
    3029#import <WebCore/CachedFramePlatformData.h>
    3130#import <wtf/ObjcRuntimeExtras.h>
  • trunk/Source/WebKit/mac/WebCoreSupport/WebDeviceOrientationClient.mm

    r127193 r135882  
    2929#import "WebDeviceOrientationProvider.h"
    3030#import "WebViewInternal.h"
    31 #import <objc/objc-runtime.h>
    3231#import <wtf/ObjcRuntimeExtras.h>
    3332
  • trunk/Source/WebKit/mac/WebView/WebDelegateImplementationCaching.mm

    r129545 r135882  
    3333#import "WebView.h"
    3434#import "WebViewData.h"
    35 #import <objc/objc-runtime.h>
    3635#import <wtf/ObjcRuntimeExtras.h>
    3736
  • trunk/Source/WebKit/mac/WebView/WebHTMLView.mm

    r130947 r135882  
    126126#import <dlfcn.h>
    127127#import <limits>
    128 #import <objc/objc-runtime.h>
    129128#import <runtime/InitializeThreading.h>
    130129#import <wtf/MainThread.h>
  • trunk/Source/WebKit/mac/WebView/WebPDFDocumentExtras.mm

    r122400 r135882  
    3030#import <wtf/RetainPtr.h>
    3131#import <PDFKit/PDFDocument.h>
    32 #import <objc/objc-runtime.h>
    3332
    3433#if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050
  • trunk/Source/WebKit/mac/WebView/WebPolicyDelegate.mm

    r34523 r135882  
    3030
    3131#import <WebCore/FrameLoaderTypes.h>
    32 #import <objc/objc-runtime.h>
     32#import <wtf/ObjcRuntimeExtras.h>
    3333
    3434using namespace WebCore;
     
    9292{
    9393    if (_private->target)
    94         ((void (*)(id, SEL, PolicyAction))objc_msgSend)(_private->target, _private->action, policy);
     94        wtfObjcMsgSend<void>(_private->target, _private->action, policy);
    9595}
    9696
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r134960 r135882  
    182182#import <mach-o/dyld.h>
    183183#import <objc/objc-auto.h>
    184 #import <objc/objc-runtime.h>
     184#import <objc/runtime.h>
    185185#import <runtime/ArrayPrototype.h>
    186186#import <runtime/DateInstance.h>
  • trunk/Source/WebKit2/ChangeLog

    r135879 r135882  
     12012-11-27  Pratik Solanki  <psolanki@apple.com>
     2
     3        objc/objc-runtime.h does not exist on all PLATFORM(MAC)
     4        https://bugs.webkit.org/show_bug.cgi?id=101780
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Clean up header includes so we don't include objc/objc-runtime.h.
     9
     10        * PluginProcess/mac/PluginProcessShim.mm:
     11        * UIProcess/API/mac/PDFViewController.mm:
     12
    1132012-11-27  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/Source/WebKit2/PluginProcess/mac/PluginProcessShim.mm

    r128236 r135882  
    3131#import <WebKitSystemInterface.h>
    3232#import <stdio.h>
    33 #import <objc/objc-runtime.h>
     33#import <objc/message.h>
    3434
    3535#define DYLD_INTERPOSE(_replacement,_replacee) \
  • trunk/Source/WebKit2/UIProcess/API/mac/PDFViewController.mm

    r127313 r135882  
    3737#import <PDFKit/PDFKit.h>
    3838#import <WebCore/LocalizedStrings.h>
    39 #import <objc/objc-runtime.h>
    4039#import <wtf/ObjcRuntimeExtras.h>
    4140#import <wtf/text/CString.h>
  • trunk/Tools/ChangeLog

    r135872 r135882  
     12012-11-27  Pratik Solanki  <psolanki@apple.com>
     2
     3        objc/objc-runtime.h does not exist on all PLATFORM(MAC)
     4        https://bugs.webkit.org/show_bug.cgi?id=101780
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Clean up header includes so we don't include objc/objc-runtime.h.
     9
     10        * DumpRenderTree/mac/DumpRenderTree.mm:
     11        * DumpRenderTree/mac/ObjCPlugin.m:
     12        * TestWebKitAPI/mac/InstanceMethodSwizzler.h:
     13        * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:
     14
    1152012-11-27  Marja Hölttä  <marja@chromium.org>
    216
  • trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm

    r134960 r135882  
    8888#import <WebKit/WebViewPrivate.h>
    8989#import <getopt.h>
    90 #import <objc/objc-runtime.h>
    9190#import <wtf/Assertions.h>
    9291#import <wtf/FastMalloc.h>
  • trunk/Tools/DumpRenderTree/mac/ObjCPlugin.m

    r115358 r135882  
    2929
    3030#import <WebKit/WebKit.h>
    31 #import <objc/objc-runtime.h>
     31#import <objc/runtime.h>
    3232
    3333// === NSObject category to expose almost everything to JavaScript ===
  • trunk/Tools/TestWebKitAPI/mac/InstanceMethodSwizzler.h

    r93417 r135882  
    2727#define InstanceMethodSwizzler_h
    2828
    29 #include <objc/objc-runtime.h>
     29#include <objc/runtime.h>
    3030#include <wtf/Noncopyable.h>
    3131
  • trunk/Tools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm

    r132264 r135882  
    2929#import <AppKit/AppKit.h>
    3030#import <CoreFoundation/CoreFoundation.h>
    31 #import <objc/objc-runtime.h>
    3231#import <wtf/ObjcRuntimeExtras.h>
    3332#import <wtf/RetainPtr.h>
Note: See TracChangeset for help on using the changeset viewer.