Title: [96093] trunk/Source/WebCore
- Revision
- 96093
- Author
- x...@webkit.org
- Date
- 2011-09-27 03:28:00 -0700 (Tue, 27 Sep 2011)
Log Message
[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:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (96092 => 96093)
--- trunk/Source/WebCore/ChangeLog 2011-09-27 10:22:19 UTC (rev 96092)
+++ trunk/Source/WebCore/ChangeLog 2011-09-27 10:28:00 UTC (rev 96093)
@@ -1,3 +1,19 @@
+2011-09-27 Xan Lopez <xlo...@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 <rn...@webkit.org>
Encapsulate m_firstNodeInserted and m_lastLeafInserted in node insertion logic
Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp (96092 => 96093)
--- trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp 2011-09-27 10:22:19 UTC (rev 96092)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp 2011-09-27 10:28:00 UTC (rev 96093)
@@ -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: trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.h (96092 => 96093)
--- trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.h 2011-09-27 10:22:19 UTC (rev 96092)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.h 2011-09-27 10:28:00 UTC (rev 96093)
@@ -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
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes