Title: [96094] releases/WebKitGTK/webkit-1.6/Source/WebCore

Diff

Modified: releases/WebKitGTK/webkit-1.6/Source/WebCore/ChangeLog (96093 => 96094)


--- releases/WebKitGTK/webkit-1.6/Source/WebCore/ChangeLog	2011-09-27 10:28:00 UTC (rev 96093)
+++ releases/WebKitGTK/webkit-1.6/Source/WebCore/ChangeLog	2011-09-27 10:33:43 UTC (rev 96094)
@@ -1,3 +1,19 @@
+2011-09-27  Xan Lopez  <[email protected]>
+
+        [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-26  Xan Lopez  <[email protected]>
 
         [GTK] Do not ignore 'Replaceable' attributes in the DOM bindings

Modified: releases/WebKitGTK/webkit-1.6/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp (96093 => 96094)


--- releases/WebKitGTK/webkit-1.6/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp	2011-09-27 10:28:00 UTC (rev 96093)
+++ releases/WebKitGTK/webkit-1.6/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp	2011-09-27 10:33:43 UTC (rev 96094)
@@ -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 @@
     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.");
+}
+
+

Modified: releases/WebKitGTK/webkit-1.6/Source/WebCore/bindings/gobject/WebKitDOMCustom.h (96093 => 96094)


--- releases/WebKitGTK/webkit-1.6/Source/WebCore/bindings/gobject/WebKitDOMCustom.h	2011-09-27 10:28:00 UTC (rev 96093)
+++ releases/WebKitGTK/webkit-1.6/Source/WebCore/bindings/gobject/WebKitDOMCustom.h	2011-09-27 10:33:43 UTC (rev 96094)
@@ -28,6 +28,11 @@
 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
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to