[GTK] Add compatibility methods for DOM bindings
authorxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 10:28:00 +0000 (10:28 +0000)
committerxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 10:28:00 +0000 (10:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68884

Reviewed by Philippe Normand.

Add compatibility methods for our DOM bindings.

* bindings/gobject/WebKitDOMCustom.cpp:
(webkit_dom_blob_slice): alias to the new method name.
(webkit_dom_html_form_element_dispatch_form_change): this was
removed from WebCore, so just print a warning about it.
(webkit_dom_html_form_element_dispatch_form_input): ditto.
* bindings/gobject/WebKitDOMCustom.h:

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

Source/WebCore/ChangeLog
Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp
Source/WebCore/bindings/gobject/WebKitDOMCustom.h

index ee59d1a..80ce808 100644 (file)
@@ -1,3 +1,19 @@
+2011-09-27  Xan Lopez  <xlopez@igalia.com>
+
+        [GTK] Add compatibility methods for DOM bindings
+        https://bugs.webkit.org/show_bug.cgi?id=68884
+
+        Reviewed by Philippe Normand.
+
+        Add compatibility methods for our DOM bindings.
+
+        * bindings/gobject/WebKitDOMCustom.cpp:
+        (webkit_dom_blob_slice): alias to the new method name.
+        (webkit_dom_html_form_element_dispatch_form_change): this was
+        removed from WebCore, so just print a warning about it.
+        (webkit_dom_html_form_element_dispatch_form_input): ditto.
+        * bindings/gobject/WebKitDOMCustom.h:
+
 2011-09-27  Ryosuke Niwa  <rniwa@webkit.org>
 
         Encapsulate m_firstNodeInserted and m_lastLeafInserted in node insertion logic
index e2bab41..abd1282 100644 (file)
@@ -19,6 +19,8 @@
 #include "config.h"
 #include "WebKitDOMCustom.h"
 
+#include "WebKitDOMBlob.h"
+#include "WebKitDOMHTMLFormElement.h"
 #include "WebKitDOMHTMLInputElement.h"
 #include "WebKitDOMHTMLInputElementPrivate.h"
 #include "WebKitDOMHTMLTextAreaElement.h"
@@ -40,3 +42,23 @@ gboolean webkit_dom_html_input_element_is_edited(WebKitDOMHTMLInputElement* inpu
     return core(input)->lastChangeWasUserEdit();
 }
 
+/* Compatibility */
+WebKitDOMBlob*
+webkit_dom_blob_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type)
+{
+    return webkit_dom_blob_webkit_slice(self, start, end, content_type);
+}
+
+void
+webkit_dom_html_form_element_dispatch_form_change(WebKitDOMHTMLFormElement* self)
+{
+    g_warning("The onformchange functionality has been removed from the DOM spec, this function does nothing.");
+}
+
+void
+webkit_dom_html_form_element_dispatch_form_input(WebKitDOMHTMLFormElement* self)
+{
+    g_warning("The onforminput functionality has been removed from the DOM spec, this function does nothing.");
+}
+
+
index 043cb1b..9cc54fb 100644 (file)
@@ -28,6 +28,11 @@ G_BEGIN_DECLS
 WEBKIT_API gboolean webkit_dom_html_text_area_element_is_edited(WebKitDOMHTMLTextAreaElement*);
 WEBKIT_API gboolean webkit_dom_html_input_element_is_edited(WebKitDOMHTMLInputElement*);
 
+/* Compatibility */
+WEBKIT_API WebKitDOMBlob* webkit_dom_blob_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type);
+WEBKIT_API void webkit_dom_html_form_element_dispatch_form_change(WebKitDOMHTMLFormElement* self);
+WEBKIT_API void webkit_dom_html_form_element_dispatch_form_input(WebKitDOMHTMLFormElement* self);
+
 G_END_DECLS
 
 #endif