[GTK] Unstable headers should include webkitdomdefines-unstable.h
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jul 2014 15:24:31 +0000 (15:24 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jul 2014 15:24:31 +0000 (15:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134540

Reviewed by Martin Robinson.

Instead of the class header that can only be included from webkitdom.h.

* bindings/scripts/CodeGeneratorGObject.pm:
(WriteData):

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

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm

index 2bf0a2f..6a2cef8 100644 (file)
@@ -1,3 +1,15 @@
+2014-07-02  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [GTK] Unstable headers should include webkitdomdefines-unstable.h
+        https://bugs.webkit.org/show_bug.cgi?id=134540
+
+        Reviewed by Martin Robinson.
+
+        Instead of the class header that can only be included from webkitdom.h.
+
+        * bindings/scripts/CodeGeneratorGObject.pm:
+        (WriteData):
+
 2014-07-02  Mario Sanchez Prada  <mario.prada@samsung.com>
 
         REGRESSION(r170008): [GTK] Layout Tests fast/forms/option-constructor-selected.html and fast/forms/select-live-pseudo-selectors.html crash.
index adb6ea5..0d47b08 100644 (file)
@@ -1652,12 +1652,13 @@ EOF
 #ifndef $guard
 #define $guard
 
-#include <webkitdom/${className}.h>
+#ifdef WEBKIT_DOM_USE_UNSTABLE_API
+
+#include <webkitdom/webkitdomdefines-unstable.h>
 EOF
 
         print UNSTABLE $text;
         print UNSTABLE "\n";
-        print UNSTABLE "#ifdef WEBKIT_DOM_USE_UNSTABLE_API\n\n";
         print UNSTABLE "#if ${conditionalString}\n\n" if $conditionalString;
         print UNSTABLE "G_BEGIN_DECLS\n";
         print UNSTABLE "\n";