Title: [204556] trunk/Source/WebCore
- Revision
- 204556
- Author
- [email protected]
- Date
- 2016-08-17 04:07:06 -0700 (Wed, 17 Aug 2016)
Log Message
Unreviewed. Fix GObject DOM bindings API break after r204449, r204450 and r204451.
Attributes designMode, embeds, plugins, scripts and compatMode have been moved from HTMLDocument to Document.
* bindings/gobject/WebKitDOMDeprecated.cpp:
(webkit_dom_html_document_get_design_mode):
(webkit_dom_html_document_set_design_mode):
(webkit_dom_html_document_get_compat_mode):
(webkit_dom_html_document_get_embeds):
(webkit_dom_html_document_get_plugins):
(webkit_dom_html_document_get_scripts):
* bindings/gobject/WebKitDOMDeprecated.h:
* bindings/gobject/WebKitDOMDeprecated.symbols:
* bindings/gobject/webkitdom.symbols:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (204555 => 204556)
--- trunk/Source/WebCore/ChangeLog 2016-08-17 08:50:11 UTC (rev 204555)
+++ trunk/Source/WebCore/ChangeLog 2016-08-17 11:07:06 UTC (rev 204556)
@@ -1,5 +1,22 @@
2016-08-17 Carlos Garcia Campos <[email protected]>
+ Unreviewed. Fix GObject DOM bindings API break after r204449, r204450 and r204451.
+
+ Attributes designMode, embeds, plugins, scripts and compatMode have been moved from HTMLDocument to Document.
+
+ * bindings/gobject/WebKitDOMDeprecated.cpp:
+ (webkit_dom_html_document_get_design_mode):
+ (webkit_dom_html_document_set_design_mode):
+ (webkit_dom_html_document_get_compat_mode):
+ (webkit_dom_html_document_get_embeds):
+ (webkit_dom_html_document_get_plugins):
+ (webkit_dom_html_document_get_scripts):
+ * bindings/gobject/WebKitDOMDeprecated.h:
+ * bindings/gobject/WebKitDOMDeprecated.symbols:
+ * bindings/gobject/webkitdom.symbols:
+
+2016-08-17 Carlos Garcia Campos <[email protected]>
+
Unreviewed. Fix GObject DOM bindings API break after r204312.
HTMLInputElement capture attribute now returns the actual capture value, instead of whether it's present or
Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp (204555 => 204556)
--- trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp 2016-08-17 08:50:11 UTC (rev 204555)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp 2016-08-17 11:07:06 UTC (rev 204556)
@@ -28,6 +28,7 @@
#include "HTMLCollection.h"
#include "WebKitDOMDocumentPrivate.h"
#include "WebKitDOMElementPrivate.h"
+#include "WebKitDOMHTMLDocumentPrivate.h"
#include "WebKitDOMHTMLInputElementPrivate.h"
#include "WebKitDOMHTMLTitleElement.h"
#include "WebKitDOMNodeListPrivate.h"
@@ -189,6 +190,43 @@
#endif /* ENABLE(MEDIA_CAPTURE) */
}
+gchar* webkit_dom_html_document_get_design_mode(WebKitDOMHTMLDocument* self)
+{
+ g_return_val_if_fail(WEBKIT_DOM_IS_HTML_DOCUMENT(self), nullptr);
+ return webkit_dom_document_get_design_mode(WEBKIT_DOM_DOCUMENT(self));
+}
+
+
+void webkit_dom_html_document_set_design_mode(WebKitDOMHTMLDocument* self, const gchar* value)
+{
+ g_return_if_fail(WEBKIT_DOM_IS_HTML_DOCUMENT(self));
+ webkit_dom_document_set_design_mode(WEBKIT_DOM_DOCUMENT(self), value);
+}
+
+gchar* webkit_dom_html_document_get_compat_mode(WebKitDOMHTMLDocument* self)
+{
+ g_return_val_if_fail(WEBKIT_DOM_IS_HTML_DOCUMENT(self), nullptr);
+ return webkit_dom_document_get_compat_mode(WEBKIT_DOM_DOCUMENT(self));
+}
+
+WebKitDOMHTMLCollection* webkit_dom_html_document_get_embeds(WebKitDOMHTMLDocument* self)
+{
+ g_return_val_if_fail(WEBKIT_DOM_IS_HTML_DOCUMENT(self), nullptr);
+ return webkit_dom_document_get_embeds(WEBKIT_DOM_DOCUMENT(self));
+}
+
+WebKitDOMHTMLCollection* webkit_dom_html_document_get_plugins(WebKitDOMHTMLDocument* self)
+{
+ g_return_val_if_fail(WEBKIT_DOM_IS_HTML_DOCUMENT(self), nullptr);
+ return webkit_dom_document_get_plugins(WEBKIT_DOM_DOCUMENT(self));
+}
+
+WebKitDOMHTMLCollection* webkit_dom_html_document_get_scripts(WebKitDOMHTMLDocument* self)
+{
+ g_return_val_if_fail(WEBKIT_DOM_IS_HTML_DOCUMENT(self), nullptr);
+ return webkit_dom_document_get_scripts(WEBKIT_DOM_DOCUMENT(self));
+}
+
G_DEFINE_TYPE(WebKitDOMEntityReference, webkit_dom_entity_reference, WEBKIT_DOM_TYPE_NODE)
static void webkit_dom_entity_reference_init(WebKitDOMEntityReference*)
Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h (204555 => 204556)
--- trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h 2016-08-17 08:50:11 UTC (rev 204555)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h 2016-08-17 11:07:06 UTC (rev 204556)
@@ -222,10 +222,75 @@
* Returns: A #gboolean
*
* Deprecated: 2.14: Use webkit_dom_html_input_element_get_capture_type() instead.
- **/
+ */
WEBKIT_DEPRECATED_FOR(webkit_dom_html_input_element_get_capture_type) gboolean
webkit_dom_html_input_element_get_capture(WebKitDOMHTMLInputElement* self);
+/**
+ * webkit_dom_html_document_get_design_mode:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: A #gchar
+ *
+ * Deprecated: 2.14: Use webkit_dom_document_get_design_mode() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_get_design_mode) gchar*
+webkit_dom_html_document_get_design_mode(WebKitDOMHTMLDocument* self);
+
+/**
+ * webkit_dom_html_document_set_design_mode:
+ * @self: A #WebKitDOMHTMLDocument
+ * @value: A #gchar
+ *
+ * Deprecated: 2.14: Use webkit_dom_document_set_design_mode() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_set_design_mode) void
+webkit_dom_html_document_set_design_mode(WebKitDOMHTMLDocument* self, const gchar* value);
+
+/**
+ * webkit_dom_html_document_get_compat_mode:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: A #gchar
+ *
+ * Deprecated: 2.14: Use webkit_dom_document_get_compat_mode() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_get_compat_mode) gchar*
+webkit_dom_html_document_get_compat_mode(WebKitDOMHTMLDocument* self);
+
+/**
+ * webkit_dom_html_document_get_embeds:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.14: Use webkit_dom_document_get_embeds() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_get_embeds) WebKitDOMHTMLCollection*
+webkit_dom_html_document_get_embeds(WebKitDOMHTMLDocument* self);
+
+/**
+ * webkit_dom_html_document_get_plugins:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.14: Use webkit_dom_document_get_plugins() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_get_plugins) WebKitDOMHTMLCollection*
+webkit_dom_html_document_get_plugins(WebKitDOMHTMLDocument* self);
+
+/**
+ * webkit_dom_html_document_get_scripts:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.14: Use webkit_dom_document_get_scripts() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_get_scripts) WebKitDOMHTMLCollection*
+webkit_dom_html_document_get_scripts(WebKitDOMHTMLDocument* self);
+
#define WEBKIT_DOM_TYPE_ENTITY_REFERENCE (webkit_dom_entity_reference_get_type())
#define WEBKIT_DOM_ENTITY_REFERENCE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_ENTITY_REFERENCE, WebKitDOMEntityReference))
#define WEBKIT_DOM_ENTITY_REFERENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_ENTITY_REFERENCE, WebKitDOMEntityReferenceClass)
Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols (204555 => 204556)
--- trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols 2016-08-17 08:50:11 UTC (rev 204555)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols 2016-08-17 11:07:06 UTC (rev 204556)
@@ -26,3 +26,9 @@
gchar* webkit_dom_document_get_default_charset(WebKitDOMDocument*)
WebKitDOMText* webkit_dom_text_replace_whole_text(WebKitDOMText*, const gchar*, GError**)
gboolean webkit_dom_html_input_element_get_capture(WebKitDOMHTMLInputElement*)
+void webkit_dom_html_document_set_design_mode(WebKitDOMHTMLDocument*, const gchar*)
+gchar* webkit_dom_html_document_get_design_mode(WebKitDOMHTMLDocument*)
+gchar* webkit_dom_html_document_get_compat_mode(WebKitDOMHTMLDocument*)
+WebKitDOMHTMLCollection* webkit_dom_html_document_get_scripts(WebKitDOMHTMLDocument*)
+WebKitDOMHTMLCollection* webkit_dom_html_document_get_embeds(WebKitDOMHTMLDocument*)
+WebKitDOMHTMLCollection* webkit_dom_html_document_get_plugins(WebKitDOMHTMLDocument*)
Modified: trunk/Source/WebCore/bindings/gobject/webkitdom.symbols (204555 => 204556)
--- trunk/Source/WebCore/bindings/gobject/webkitdom.symbols 2016-08-17 08:50:11 UTC (rev 204555)
+++ trunk/Source/WebCore/bindings/gobject/webkitdom.symbols 2016-08-17 11:07:06 UTC (rev 204556)
@@ -25,6 +25,12 @@
gboolean webkit_dom_dom_window_webkit_message_handlers_post_message(WebKitDOMDOMWindow*, const gchar*, const gchar*)@2.8
GType webkit_dom_document_get_type(void)
WebKitDOMDocumentType* webkit_dom_document_get_doctype(WebKitDOMDocument*)
+gchar* webkit_dom_document_get_design_mode(WebKitDOMDocument*)@2.14
+void webkit_dom_document_set_design_mode(WebKitDOMDocument*, const gchar*)@2.14
+gchar* webkit_dom_document_get_compat_mode(WebKitDOMDocument*)@2.14
+WebKitDOMHTMLCollection* webkit_dom_document_get_embeds(WebKitDOMDocument*)@2.14
+WebKitDOMHTMLCollection* webkit_dom_document_get_plugins(WebKitDOMDocument*)@2.14
+WebKitDOMHTMLCollection* webkit_dom_document_get_scripts(WebKitDOMDocument*)@2.14
WebKitDOMHTMLCollection* webkit_dom_document_get_images(WebKitDOMDocument*)
gchar* webkit_dom_document_get_title(WebKitDOMDocument*)
void webkit_dom_document_set_title(WebKitDOMDocument*, const gchar*)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes