Reviewed by Darin and Sam.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Mar 2008 21:53:58 +0000 (21:53 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Mar 2008 21:53:58 +0000 (21:53 +0000)
        Include fixes, in preparation of using the headers in WebCore/bridge.

        * bindings/js/kjs_binding.h:
        * bindings/js/kjs_dom.cpp:
        * bindings/objc/DOMInternal.mm:
        * bindings/objc/DOMUtility.mm:
        * bindings/objc/WebScriptObject.mm:
        * bindings/objc/WebScriptObjectPrivate.h:
        * bridge/objc/objc_class.h:
        * bridge/objc/objc_instance.h:
        * bridge/objc/objc_runtime.h:
        * bridge/objc/objc_utility.h:
        * bridge/runtime.h:
        * bridge/runtime_object.h:
        * bridge/runtime_root.h:
        * html/HTMLAppletElement.cpp:
        * html/HTMLAppletElement.h:
        * html/HTMLEmbedElement.cpp:
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        * html/HTMLPlugInElement.cpp:
        * html/HTMLPlugInElement.h:
        * page/mac/FrameMac.mm:
        * page/mac/WebCoreFrameBridge.h:
        * page/mac/WebCoreFrameBridge.mm:
        * page/mac/WebCoreScriptDebugger.mm:

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

18 files changed:
WebCore/ChangeLog
WebCore/bindings/js/kjs_binding.h
WebCore/bindings/js/kjs_dom.cpp
WebCore/bindings/objc/DOMInternal.mm
WebCore/bindings/objc/DOMUtility.mm
WebCore/bindings/objc/WebScriptObject.mm
WebCore/bindings/objc/WebScriptObjectPrivate.h
WebCore/html/HTMLAppletElement.cpp
WebCore/html/HTMLAppletElement.h
WebCore/html/HTMLEmbedElement.cpp
WebCore/html/HTMLEmbedElement.h
WebCore/html/HTMLObjectElement.cpp
WebCore/html/HTMLPlugInElement.cpp
WebCore/html/HTMLPlugInElement.h
WebCore/page/mac/FrameMac.mm
WebCore/page/mac/WebCoreFrameBridge.h
WebCore/page/mac/WebCoreFrameBridge.mm
WebCore/page/mac/WebCoreScriptDebugger.mm

index c809aac..3ca0c71 100644 (file)
@@ -1,3 +1,34 @@
+2008-03-03  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Darin and Sam.
+
+        Include fixes, in preparation of using the headers in WebCore/bridge.
+        
+        * bindings/js/kjs_binding.h:
+        * bindings/js/kjs_dom.cpp:
+        * bindings/objc/DOMInternal.mm:
+        * bindings/objc/DOMUtility.mm:
+        * bindings/objc/WebScriptObject.mm:
+        * bindings/objc/WebScriptObjectPrivate.h:
+        * bridge/objc/objc_class.h:
+        * bridge/objc/objc_instance.h:
+        * bridge/objc/objc_runtime.h:
+        * bridge/objc/objc_utility.h:
+        * bridge/runtime.h:
+        * bridge/runtime_object.h:
+        * bridge/runtime_root.h:
+        * html/HTMLAppletElement.cpp:
+        * html/HTMLAppletElement.h:
+        * html/HTMLEmbedElement.cpp:
+        * html/HTMLEmbedElement.h:
+        * html/HTMLObjectElement.cpp:
+        * html/HTMLPlugInElement.cpp:
+        * html/HTMLPlugInElement.h:
+        * page/mac/FrameMac.mm:
+        * page/mac/WebCoreFrameBridge.h:
+        * page/mac/WebCoreFrameBridge.mm:
+        * page/mac/WebCoreScriptDebugger.mm:
+
 2008-03-03  David Hyatt  <hyatt@apple.com>
 
         Full page zoom plumbing.  Add a notion of whether or not a zoom is text only or a full zoom to the
index fb95652..9cdeddd 100644 (file)
 #include <kjs/lookup.h>
 #include <wtf/Noncopyable.h>
 
-#if PLATFORM(MAC)
-#include <JavaScriptCore/runtime.h>
-#endif
-
 namespace WebCore {
 
     class AtomicString;
index e718d41..ee1d42b 100644 (file)
@@ -37,7 +37,7 @@
 #endif
 
 #if USE(JAVASCRIPTCORE_BINDINGS)
-#include <bindings/runtime_object.h>
+#include <bindings/runtime.h>
 #endif
 
 namespace WebCore {
index afef8c8..892e049 100644 (file)
@@ -38,6 +38,7 @@
 #import "WebScriptObjectPrivate.h"
 #import "XPathEvaluator.h"
 #import "kjs_proxy.h"
+#import <bindings/runtime_root.h>
 
 //------------------------------------------------------------------------------------------
 // Wrapping WebCore implementation objects
index 16204a3..37181b0 100644 (file)
@@ -55,6 +55,7 @@
 #import "kjs_html.h"
 #import "kjs_window.h"
 #import <objc/objc-runtime.h>
+#import <bindings/runtime_root.h>
 
 // This file makes use of both the ObjC DOM API and the C++ DOM API, so we need to be careful about what
 // headers are included and what namespaces we use to avoid naming conflicts.
index 7c06b76..8454f3d 100644 (file)
 #import "PlatformString.h"
 #import "WebCoreObjCExtras.h"
 #import <JavaScriptCore/ExecState.h>
-#import <JavaScriptCore/objc_instance.h>
-#import <JavaScriptCore/runtime_object.h>
 #import <JavaScriptCore/APICast.h>
 #import <JavaScriptCore/JSGlobalObject.h>
 #import <JavaScriptCore/interpreter.h>
+#import <JavaScriptCore/objc_instance.h>
+#import <bindings/runtime_root.h>
+#import <bindings/runtime.h>
+#import <bindings/runtime_object.h>
 
 using namespace KJS;
 using namespace KJS::Bindings;
index 421209d..2bcc3b8 100644 (file)
 
 #import "WebScriptObject.h"
 
-#include <JavaScriptCore/internal.h>
-#include <JavaScriptCore/object.h>
-#include <JavaScriptCore/runtime_root.h>
-#include <JavaScriptCore/APICast.h>
+#import <wtf/PassRefPtr.h>
 
+namespace KJS {
+    
+    class JSObject;
+    class JSValue;
+    
+    namespace Bindings {
+        class RootObject;
+    }
+}
 namespace WebCore {
     NSObject* getJSWrapper(KJS::JSObject*);
     void addJSWrapper(NSObject* wrapper, KJS::JSObject*);
index 4e199ad..63c59dd 100644 (file)
 #include "RenderInline.h"
 #include "Settings.h"
 
+#if USE(JAVASCRIPTCORE_BINDINGS)
+#include <bindings/runtime.h>
+#endif
+
 namespace WebCore {
 
 using namespace HTMLNames;
index 5025277..ae8f892 100644 (file)
 #include "HTMLPlugInElement.h"
 
 #if USE(JAVASCRIPTCORE_BINDINGS)
-#include <bindings/runtime.h>
-#else
-namespace KJS { namespace Bindings { class Instance; } }
+namespace KJS { 
+    namespace Bindings { 
+        class Instance;
+    } 
+}
 #endif
 
 namespace WebCore {
index ae65863..d4fba26 100644 (file)
 #include "HTMLNames.h"
 #include "RenderPartObject.h"
 
+#if USE(JAVASCRIPTCORE_BINDINGS)
+#include <bindings/runtime.h>
+#endif
+
 namespace WebCore {
 
 using namespace HTMLNames;
index 1fc0ba5..5c6ce67 100644 (file)
 #include "HTMLPlugInElement.h"
 
 #if USE(JAVASCRIPTCORE_BINDINGS)
-#include <bindings/runtime.h>
+namespace KJS {
+    namespace Bindings {
+        class Instance;
+    }
+}
 #endif
 
 namespace WebCore {
index 436b641..3fba40f 100644 (file)
 #include "RenderWidget.h"
 #include "Text.h"
 
+#if USE(JAVASCRIPTCORE_BINDINGS)
+#include <bindings/runtime.h>
+#endif
+
 namespace WebCore {
 
 using namespace EventNames;
index 93e1bf6..67d463d 100644 (file)
@@ -40,6 +40,7 @@
 #if USE(NPOBJECT)
 #include <bindings/NP_jsobject.h>
 #include <bindings/npruntime_impl.h>
+#include <bindings/runtime.h>
 #include <bindings/runtime_root.h>
 #endif
 
index 2b9ed53..c9cdfd6 100644 (file)
 #include "HTMLFrameOwnerElement.h"
 
 #if USE(JAVASCRIPTCORE_BINDINGS)
-#include <bindings/runtime.h>
+namespace KJS {
+    namespace Bindings {
+        class Instance;
+    }
+}
 #endif
 
 #if USE(NPOBJECT)
-#include <bindings/npruntime_internal.h>
+struct NPObject;
 #endif
 
 namespace WebCore {
index 6f6f096..1315f17 100644 (file)
 #import "kjs_window.h"
 #import "visible_units.h"
 #import <Carbon/Carbon.h>
-#import <JavaScriptCore/NP_jsobject.h>
-#import <JavaScriptCore/npruntime_impl.h>
+#import <JavaScriptCore/APICast.h>
+#import <bindings/NP_jsobject.h>
+#import <bindings/npruntime_impl.h>
+#import <bindings/runtime_root.h>
+#import <bindings/runtime.h>
 
 #undef _webcore_TIMING
 
index 76315f7..09ac6cd 100644 (file)
 #import <WebCore/TextAffinity.h>
 #import <WebCore/TextGranularity.h>
 
-#if USE(NPOBJECT)
-#import <JavaScriptCore/npruntime.h>
-#endif
-
 namespace WebCore {
     class Frame;
     class HTMLFrameOwnerElement;
index 5c74db7..b883a39 100644 (file)
@@ -91,7 +91,8 @@
 #import <OpenScripting/ASRegistry.h>
 #import <JavaScriptCore/array_instance.h>
 #import <JavaScriptCore/date_object.h>
-#import <JavaScriptCore/runtime_root.h>
+#import <bindings/runtime_root.h>
+#import <bindings/runtime.h>
 #import <wtf/RetainPtr.h>
 
 @class NSView;
index ae68a63..cfb3de6 100644 (file)
@@ -38,6 +38,7 @@
 #import <JavaScriptCore/debugger.h>
 #import <JavaScriptCore/function.h>
 #import <JavaScriptCore/interpreter.h>
+#import <bindings/runtime_root.h>
 
 using namespace KJS;
 using namespace WebCore;