Reviewed by Mark Rowe.
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Dec 2007 02:00:09 +0000 (02:00 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Dec 2007 02:00:09 +0000 (02:00 +0000)
        - better build fix for the problem affecting GTK and some other platforms
          "this time for sure"

        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSEventTargetBase.cpp: Move the include of the .lut.h file here.
        * bindings/js/JSEventTargetBase.h: Instead of including the .lut.h file in the header,
        which won't work, declare the tables that are in the .lut.h file in the header.

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

WebCore/ChangeLog
WebCore/bindings/js/JSEventTargetBase.cpp
WebCore/bindings/js/JSEventTargetBase.h

index 2f376a913f6b292b9a35dd14a434aa6a7f460168..621717c8bee11188b219f3eb0cb0ae657fc1deb5 100644 (file)
@@ -1,3 +1,15 @@
+2007-12-15  Darin Adler  <darin@apple.com>
+
+        Reviewed by Mark Rowe.
+
+        - better build fix for the problem affecting GTK and some other platforms
+          "this time for sure"
+
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/JSEventTargetBase.cpp: Move the include of the .lut.h file here.
+        * bindings/js/JSEventTargetBase.h: Instead of including the .lut.h file in the header,
+        which won't work, declare the tables that are in the .lut.h file in the header.
+
 2007-12-12  Kevin Watters  <kevin@dotsyntax.com>
 
         Reviewed by Darin Adler.
index 5523bf215f500efc4ae17ea397262eb7bcfd6ffb..70add2dde54fec78bc6a73498fb6657740761e67 100644 (file)
  */
 
 #include "config.h"
+#include "JSEventTargetBase.h"
 
 #include "JSEventTargetNode.h"
 
+#include "JSEventTargetBase.lut.h"
+
 namespace WebCore {
 
 /* Source for JSEventTargetPropertiesTable
index 2c85cecc7c3ff7563a65e116b3d61fe1d9c2acbb..2e7cbed9a8a2d70a6b7332d8454112a77ce5b0b0 100644 (file)
 #include "kjs_events.h"
 #include "kjs_window.h"
 
+namespace KJS {
+
+    extern const struct HashTable JSEventTargetPropertiesTable;
+    extern const struct HashTable JSEventTargetPrototypeTable;
+
+}
+
 namespace WebCore {
 
     using namespace EventNames;
 
     class AtomicString;
+    class EventTarget;
 
     // Event target properties (shared across all JSEventTarget* classes)
     struct JSEventTargetProperties {
@@ -163,12 +171,6 @@ namespace WebCore {
     {
         return new JSEventTargetPrototypeFunction<JSEventTargetPrototypeFunctionIdentifier>(exec, len, name); 
     }
-};
-
-// Needs to be included after above declaration
-#include "JSEventTargetBase.lut.h"
-
-namespace WebCore {
 
     // Helper function for getValueProperty/putValueProperty
     AtomicString eventNameForPropertyToken(int token);
@@ -251,6 +253,6 @@ namespace WebCore {
         }
     };
 
-}; // namespace WebCore
+} // namespace WebCore
 
 #endif // JSEventTargetBase_h