[evolution/wip/webkit2] Revert "Adapt the code to the latest WebKit's GObject DOM API deprecations"
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Revert "Adapt the code to the latest WebKit's GObject DOM API deprecations"
- Date: Thu, 24 Mar 2016 11:03:51 +0000 (UTC)
commit 8ebf62366b2b7cd96399e25d41aa5d62097609ca
Author: Tomas Popela <tpopela redhat com>
Date: Thu Mar 24 12:03:00 2016 +0100
Revert "Adapt the code to the latest WebKit's GObject DOM API deprecations"
Postpone changes once the WebKitGTK+ 2.13.1 is released.
This reverts commit 61991d69f8703d5f421e7c4f5130cc7938b0bea0.
.../composer/e-composer-private-dom-functions.c | 4 +-
.../composer/e-html-editor-actions-dom-functions.c | 8 +-
.../e-html-editor-cell-dialog-dom-functions.c | 8 +-
.../e-html-editor-hrule-dialog-dom-functions.c | 8 +-
.../e-html-editor-image-dialog-dom-functions.c | 6 +-
.../e-html-editor-page-dialog-dom-functions.c | 4 +-
.../e-html-editor-selection-dom-functions.c | 46 ++++++------
.../e-html-editor-table-dialog-dom-functions.c | 10 ++--
.../composer/e-html-editor-undo-redo-manager.c | 48 ++++++------
.../composer/e-html-editor-view-dom-functions.c | 76 ++++++++++----------
web-extensions/e-dom-utils.c | 4 +-
11 files changed, 111 insertions(+), 111 deletions(-)
---
diff --git a/web-extensions/composer/e-composer-private-dom-functions.c
b/web-extensions/composer/e-composer-private-dom-functions.c
index c83f7f2..7aa6f1b 100644
--- a/web-extensions/composer/e-composer-private-dom-functions.c
+++ b/web-extensions/composer/e-composer-private-dom-functions.c
@@ -500,12 +500,12 @@ dom_save_drag_and_drop_history (WebKitDOMDocument *document,
/* The removed line. */
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (actual_block, TRUE, NULL),
+ webkit_dom_node_clone_node (actual_block, TRUE),
NULL);
/* The following block, but empty. */
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (tmp_block, FALSE, NULL),
+ webkit_dom_node_clone_node (tmp_block, FALSE),
NULL);
g_object_set_data (
G_OBJECT (fragment),
diff --git a/web-extensions/composer/e-html-editor-actions-dom-functions.c
b/web-extensions/composer/e-html-editor-actions-dom-functions.c
index 624fe47..a12927e 100644
--- a/web-extensions/composer/e-html-editor-actions-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-actions-dom-functions.c
@@ -49,8 +49,8 @@ prepare_history_for_table (WebKitDOMDocument *document,
dom_selection_get_coordinates (
document, &ev->before.start.x, &ev->before.start.y, &ev->before.end.x, &ev->before.end.y);
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (table), TRUE, NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (table), TRUE);
}
@@ -63,8 +63,8 @@ save_history_for_table (WebKitDOMDocument *document,
EHTMLEditorUndoRedoManager *manager;
if (table)
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (table), TRUE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (table), TRUE);
else
ev->data.dom.to = NULL;
diff --git a/web-extensions/composer/e-html-editor-cell-dialog-dom-functions.c
b/web-extensions/composer/e-html-editor-cell-dialog-dom-functions.c
index 269eb4f..8fa7fef 100644
--- a/web-extensions/composer/e-html-editor-cell-dialog-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-cell-dialog-dom-functions.c
@@ -271,8 +271,8 @@ e_html_editor_cell_dialog_mark_current_cell_element (WebKitDOMDocument *document
table = dom_node_find_parent_element (
WEBKIT_DOM_NODE (parent), "TABLE");
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (table), TRUE, NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (table), TRUE);
e_html_editor_undo_redo_manager_insert_history_event (manager, ev);
}
@@ -298,8 +298,8 @@ e_html_editor_cell_dialog_save_history_on_exit (WebKitDOMDocument *document,
manager = e_html_editor_web_extension_get_undo_redo_manager (extension);
ev = e_html_editor_undo_redo_manager_get_current_history_event (manager);
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (table), TRUE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (table), TRUE);
if (!webkit_dom_node_is_equal_node (ev->data.dom.from, ev->data.dom.to)) {
dom_selection_get_coordinates (
diff --git a/web-extensions/composer/e-html-editor-hrule-dialog-dom-functions.c
b/web-extensions/composer/e-html-editor-hrule-dialog-dom-functions.c
index b711864..3563bd2 100644
--- a/web-extensions/composer/e-html-editor-hrule-dialog-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-hrule-dialog-dom-functions.c
@@ -86,8 +86,8 @@ e_html_editor_hrule_dialog_find_hrule (WebKitDOMDocument *document,
dom_selection_get_coordinates (
document, &ev->before.start.x, &ev->before.start.y, &ev->before.end.x,
&ev->before.end.y);
if (!created)
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (rule), FALSE, NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (rule), FALSE);
else
ev->data.dom.from = NULL;
@@ -112,8 +112,8 @@ e_html_editor_hrule_dialog_save_history_on_exit (WebKitDOMDocument *document,
manager = e_html_editor_web_extension_get_undo_redo_manager (extension);
ev = e_html_editor_undo_redo_manager_get_current_history_event (manager);
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (element), TRUE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (element), TRUE);
if (!webkit_dom_node_is_equal_node (ev->data.dom.from, ev->data.dom.to)) {
dom_selection_get_coordinates (
diff --git a/web-extensions/composer/e-html-editor-image-dialog-dom-functions.c
b/web-extensions/composer/e-html-editor-image-dialog-dom-functions.c
index f5d16b9..06d43cf 100644
--- a/web-extensions/composer/e-html-editor-image-dialog-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-image-dialog-dom-functions.c
@@ -54,7 +54,7 @@ e_html_editor_image_dialog_mark_image (WebKitDOMDocument *document,
dom_selection_get_coordinates (
document, &ev->before.start.x, &ev->before.start.y, &ev->before.end.x,
&ev->before.end.y);
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (node_under_mouse_click, FALSE,
NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (node_under_mouse_click, FALSE);
e_html_editor_undo_redo_manager_insert_history_event (manager, ev);
}
@@ -75,8 +75,8 @@ e_html_editor_image_dialog_save_history_on_exit (WebKitDOMDocument *document,
manager = e_html_editor_web_extension_get_undo_redo_manager (extension);
ev = e_html_editor_undo_redo_manager_get_current_history_event (manager);
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (element), TRUE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (element), TRUE);
dom_selection_get_coordinates (
document, &ev->after.start.x, &ev->after.start.y, &ev->after.end.x, &ev->after.end.y);
diff --git a/web-extensions/composer/e-html-editor-page-dialog-dom-functions.c
b/web-extensions/composer/e-html-editor-page-dialog-dom-functions.c
index b234743..d726880 100644
--- a/web-extensions/composer/e-html-editor-page-dialog-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-page-dialog-dom-functions.c
@@ -44,7 +44,7 @@ e_html_editor_page_dialog_save_history (WebKitDOMDocument *document,
dom_selection_get_coordinates (
document, &ev->before.start.x, &ev->before.start.y, &ev->before.end.x,
&ev->before.end.y);
body = webkit_dom_document_get_body (document);
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (body), FALSE,
NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (body), FALSE);
e_html_editor_undo_redo_manager_insert_history_event (manager, ev);
}
@@ -61,7 +61,7 @@ e_html_editor_page_dialog_save_history_on_exit (WebKitDOMDocument *document,
manager = e_html_editor_web_extension_get_undo_redo_manager (extension);
ev = e_html_editor_undo_redo_manager_get_current_history_event (manager);
body = webkit_dom_document_get_body (document);
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (body), FALSE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (body), FALSE);
if (!webkit_dom_node_is_equal_node (ev->data.dom.from, ev->data.dom.to)) {
dom_selection_get_coordinates (
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 5fd4e70..918cbfa 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -256,7 +256,7 @@ dom_insert_base64_image (WebKitDOMDocument *document,
fragment = webkit_dom_document_create_document_fragment (document);
node = webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (resizable_wrapper), TRUE,
NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (resizable_wrapper), TRUE),
NULL);
webkit_dom_html_element_insert_adjacent_html (
@@ -345,7 +345,7 @@ dom_selection_unlink (WebKitDOMDocument *document,
fragment = webkit_dom_document_create_document_fragment (document);
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (link), TRUE, NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (link), TRUE),
NULL);
ev->data.fragment = fragment;
@@ -1161,9 +1161,9 @@ unindent_list (WebKitDOMDocument *document)
WEBKIT_DOM_NODE (selection_start_marker));
source_list = webkit_dom_node_get_parent_node (item);
new_list = WEBKIT_DOM_ELEMENT (
- webkit_dom_node_clone_node_with_error (source_list, FALSE, NULL));
+ webkit_dom_node_clone_node (source_list, FALSE));
current_list = source_list;
- source_list_clone = webkit_dom_node_clone_node_with_error (source_list, FALSE, NULL);
+ source_list_clone = webkit_dom_node_clone_node (source_list, FALSE);
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (source_list),
@@ -1250,7 +1250,7 @@ unindent_block (WebKitDOMDocument *document,
while ((child = webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (element)))) {
if (webkit_dom_node_is_equal_node (child, block_to_process)) {
before_node = FALSE;
- node_clone = webkit_dom_node_clone_node_with_error (child, TRUE, NULL);
+ node_clone = webkit_dom_node_clone_node (child, TRUE);
remove_node (child);
continue;
}
@@ -2254,7 +2254,7 @@ wrap_lines (WebKitDOMDocument *document,
return WEBKIT_DOM_ELEMENT (block);
}
- block_clone = webkit_dom_node_clone_node_with_error (block, TRUE, NULL);
+ block_clone = webkit_dom_node_clone_node (block, TRUE);
/* When we wrap, we are wrapping just the text after caret, text
* before the caret is already wrapped, so unwrap the text after
@@ -3542,8 +3542,8 @@ set_font_style (WebKitDOMDocument *document,
WebKitDOMNode *clone;
WebKitDOMNode *sibling;
- clone = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (parent), FALSE, NULL);
+ clone = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (parent), FALSE);
while ((sibling = webkit_dom_node_get_next_sibling (WEBKIT_DOM_NODE (element))))
webkit_dom_node_insert_before (
@@ -3900,7 +3900,7 @@ monospace_selection (WebKitDOMDocument *document,
/* Prepare the monospaced element. */
monospace = webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (node),
- first ? monospace : webkit_dom_node_clone_node_with_error (monospace, FALSE,
NULL),
+ first ? monospace : webkit_dom_node_clone_node (monospace, FALSE),
first ? node : webkit_dom_node_get_next_sibling (node),
NULL);
} else
@@ -3938,7 +3938,7 @@ monospace_selection (WebKitDOMDocument *document,
monospace = webkit_dom_node_insert_before (
block,
- webkit_dom_node_clone_node_with_error (monospace, FALSE, NULL),
+ webkit_dom_node_clone_node (monospace, FALSE),
webkit_dom_node_get_first_child (block),
NULL);
@@ -3953,7 +3953,7 @@ monospace_selection (WebKitDOMDocument *document,
while (block && node && !webkit_dom_node_is_same_node (block, node)) {
monospace = webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (node),
- webkit_dom_node_clone_node_with_error (monospace, FALSE, NULL),
+ webkit_dom_node_clone_node (monospace, FALSE),
webkit_dom_node_get_next_sibling (node),
NULL);
@@ -4047,7 +4047,7 @@ unmonospace_selection (WebKitDOMDocument *document)
goto out;
/* Make a clone of current monospaced element. */
- clone = webkit_dom_node_clone_node_with_error (monospace, TRUE, NULL);
+ clone = webkit_dom_node_clone_node (monospace, TRUE);
/* First block */
/* Remove all the nodes that are after the selection start point as they
@@ -5451,8 +5451,8 @@ do_format_change_list_to_list (WebKitDOMElement *list_to_process,
WebKitDOMNode *clone, *child;
/* Create new list from template. */
- clone = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (new_list_template), FALSE, NULL);
+ clone = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (new_list_template), FALSE);
/* Insert it before the list that we are processing. */
webkit_dom_node_insert_before (
@@ -5496,7 +5496,7 @@ format_change_list_from_list (WebKitDOMDocument *document,
item = get_list_item_node_from_child (WEBKIT_DOM_NODE (selection_start_marker));
source_list = webkit_dom_node_get_parent_node (item);
current_list = source_list;
- source_list_clone = webkit_dom_node_clone_node_with_error (source_list, FALSE, NULL);
+ source_list_clone = webkit_dom_node_clone_node (source_list, FALSE);
new_list = create_list_element (document, extension, to, 0, html_mode);
@@ -5564,8 +5564,8 @@ format_change_list_from_list (WebKitDOMDocument *document,
if (ii == 0) {
WebKitDOMNode *clone, *child;
- clone = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (new_list), FALSE, NULL);
+ clone = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (new_list), FALSE);
webkit_dom_node_append_child (
after_selection_end ?
@@ -5595,8 +5595,8 @@ format_change_list_from_list (WebKitDOMDocument *document,
while (!done) {
WebKitDOMNode *clone, *child;
- clone = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (new_list), FALSE, NULL);
+ clone = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (new_list), FALSE);
webkit_dom_node_append_child (
tmp_parent, clone, NULL);
@@ -5625,7 +5625,7 @@ format_change_list_from_list (WebKitDOMDocument *document,
}
if (selection_end) {
- source_list_clone = webkit_dom_node_clone_node_with_error (current_list, FALSE, NULL);
+ source_list_clone = webkit_dom_node_clone_node (current_list, FALSE);
after_selection_end = TRUE;
}
@@ -5878,19 +5878,19 @@ dom_selection_set_block_format (WebKitDOMDocument *document,
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (block, TRUE, NULL),
+ webkit_dom_node_clone_node (block, TRUE),
NULL);
} else {
fragment = webkit_dom_range_clone_contents (range, NULL);
webkit_dom_node_replace_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (block, TRUE, NULL),
+ webkit_dom_node_clone_node (block, TRUE),
webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (fragment)),
NULL);
webkit_dom_node_replace_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (end_block, TRUE, NULL),
+ webkit_dom_node_clone_node (end_block, TRUE),
webkit_dom_node_get_last_child (WEBKIT_DOM_NODE (fragment)),
NULL);
}
diff --git a/web-extensions/composer/e-html-editor-table-dialog-dom-functions.c
b/web-extensions/composer/e-html-editor-table-dialog-dom-functions.c
index 4e0509f..7da84b2 100644
--- a/web-extensions/composer/e-html-editor-table-dialog-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-table-dialog-dom-functions.c
@@ -191,7 +191,7 @@ create_table (WebKitDOMDocument *document,
empty = text_content && !*text_content;
g_free (text_content);
- clone = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (element), FALSE, NULL);
+ clone = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (element), FALSE);
br = webkit_dom_document_create_element (document, "BR", NULL);
webkit_dom_node_append_child (clone, WEBKIT_DOM_NODE (br), NULL);
webkit_dom_node_insert_before (
@@ -274,8 +274,8 @@ e_html_editor_table_dialog_show (WebKitDOMDocument *document,
dom_selection_get_coordinates (
document, &ev->before.start.x, &ev->before.start.y, &ev->before.end.x,
&ev->before.end.y);
if (!created)
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (table), TRUE, NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (table), TRUE);
else
ev->data.dom.from = NULL;
@@ -302,8 +302,8 @@ e_html_editor_table_dialog_save_history_on_exit (WebKitDOMDocument *document,
manager = e_html_editor_web_extension_get_undo_redo_manager (extension);
ev = e_html_editor_undo_redo_manager_get_current_history_event (manager);
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (element), TRUE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (element), TRUE);
if (!webkit_dom_node_is_equal_node (ev->data.dom.from, ev->data.dom.to)) {
dom_selection_get_coordinates (
diff --git a/web-extensions/composer/e-html-editor-undo-redo-manager.c
b/web-extensions/composer/e-html-editor-undo-redo-manager.c
index e56301c..3b3928d 100644
--- a/web-extensions/composer/e-html-editor-undo-redo-manager.c
+++ b/web-extensions/composer/e-html-editor-undo-redo-manager.c
@@ -338,7 +338,7 @@ split_node_into_two (WebKitDOMNode *item,
WebKitDOMNode *clone, *first_child, *insert_before = NULL, *sibling;
first_child = webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (fragment));
- clone = webkit_dom_node_clone_node_with_error (parent, FALSE, NULL);
+ clone = webkit_dom_node_clone_node (parent, FALSE);
webkit_dom_node_insert_before (
WEBKIT_DOM_NODE (fragment), clone, first_child, NULL);
@@ -401,7 +401,7 @@ undo_delete (WebKitDOMDocument *document,
dom_selection = webkit_dom_dom_window_get_selection (dom_window);
g_object_unref (dom_window);
- fragment = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (event->data.fragment), TRUE, NULL);
+ fragment = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (event->data.fragment), TRUE);
first_child = webkit_dom_node_get_first_child (fragment);
content = webkit_dom_node_get_text_content (fragment);
@@ -843,8 +843,8 @@ undo_delete (WebKitDOMDocument *document,
if (prev_sibling && next_sibling) {
WebKitDOMNode *clone_prev, *clone_next;
- clone_prev = webkit_dom_node_clone_node_with_error (prev_sibling, FALSE, NULL);
- clone_next = webkit_dom_node_clone_node_with_error (next_sibling, FALSE, NULL);
+ clone_prev = webkit_dom_node_clone_node (prev_sibling, FALSE);
+ clone_next = webkit_dom_node_clone_node (next_sibling, FALSE);
if (webkit_dom_node_is_equal_node (clone_prev, clone_next)) {
WebKitDOMNode *child;
@@ -1149,8 +1149,8 @@ undo_redo_page_dialog (WebKitDOMDocument *document,
if (g_strcmp0 (name, name_history) == 0) {
WebKitDOMNode *attr_clone;
- attr_clone = webkit_dom_node_clone_node_with_error (
- undo ? attr_history : attr, TRUE, NULL);
+ attr_clone = webkit_dom_node_clone_node (
+ undo ? attr_history : attr, TRUE);
webkit_dom_element_set_attribute_node (
WEBKIT_DOM_ELEMENT (body),
WEBKIT_DOM_ATTR (attr_clone),
@@ -1188,7 +1188,7 @@ undo_redo_page_dialog (WebKitDOMDocument *document,
webkit_dom_element_set_attribute_node (
WEBKIT_DOM_ELEMENT (body),
WEBKIT_DOM_ATTR (
- webkit_dom_node_clone_node_with_error (attr, TRUE, NULL)),
+ webkit_dom_node_clone_node (attr, TRUE)),
NULL);
}
}
@@ -1233,7 +1233,7 @@ undo_redo_hrule_dialog (WebKitDOMDocument *document,
else
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (node),
- webkit_dom_node_clone_node_with_error (event->data.dom.from, TRUE,
NULL),
+ webkit_dom_node_clone_node (event->data.dom.from, TRUE),
node,
NULL);
}
@@ -1249,7 +1249,7 @@ undo_redo_hrule_dialog (WebKitDOMDocument *document,
if (node && WEBKIT_DOM_IS_HTML_HR_ELEMENT (node))
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (node),
- webkit_dom_node_clone_node_with_error (event->data.dom.to, TRUE,
NULL),
+ webkit_dom_node_clone_node (event->data.dom.to, TRUE),
node,
NULL);
} else {
@@ -1306,7 +1306,7 @@ undo_redo_image_dialog (WebKitDOMDocument *document,
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (image),
- webkit_dom_node_clone_node_with_error (undo ? event->data.dom.from : event->data.dom.to,
TRUE, NULL),
+ webkit_dom_node_clone_node (undo ? event->data.dom.from : event->data.dom.to, TRUE),
image,
NULL);
@@ -1343,7 +1343,7 @@ undo_redo_link_dialog (WebKitDOMDocument *document,
else
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (anchor)),
- webkit_dom_node_clone_node_with_error (event->data.dom.from, TRUE,
NULL),
+ webkit_dom_node_clone_node (event->data.dom.from, TRUE),
WEBKIT_DOM_NODE (anchor),
NULL);
}
@@ -1355,13 +1355,13 @@ undo_redo_link_dialog (WebKitDOMDocument *document,
if (WEBKIT_DOM_IS_ELEMENT (event->data.dom.from) && anchor) {
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (anchor)),
- webkit_dom_node_clone_node_with_error (event->data.dom.to, TRUE,
NULL),
+ webkit_dom_node_clone_node (event->data.dom.to, TRUE),
WEBKIT_DOM_NODE (anchor),
NULL);
} else {
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)),
- webkit_dom_node_clone_node_with_error (event->data.dom.to, TRUE,
NULL),
+ webkit_dom_node_clone_node (event->data.dom.to, TRUE),
WEBKIT_DOM_NODE (element),
NULL);
@@ -1403,7 +1403,7 @@ undo_redo_table_dialog (WebKitDOMDocument *document,
parent = get_parent_block_element (WEBKIT_DOM_NODE (element));
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (parent)),
- webkit_dom_node_clone_node_with_error (undo ? event->data.dom.from :
event->data.dom.to, TRUE, NULL),
+ webkit_dom_node_clone_node (undo ? event->data.dom.from : event->data.dom.to,
TRUE),
WEBKIT_DOM_NODE (parent),
NULL);
restore_selection_to_history_event_state (document, event->before);
@@ -1418,7 +1418,7 @@ undo_redo_table_dialog (WebKitDOMDocument *document,
else
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (table)),
- webkit_dom_node_clone_node_with_error (event->data.dom.from, TRUE, NULL),
+ webkit_dom_node_clone_node (event->data.dom.from, TRUE),
WEBKIT_DOM_NODE (table),
NULL);
} else {
@@ -1427,7 +1427,7 @@ undo_redo_table_dialog (WebKitDOMDocument *document,
else
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (table)),
- webkit_dom_node_clone_node_with_error (event->data.dom.to, TRUE, NULL),
+ webkit_dom_node_clone_node (event->data.dom.to, TRUE),
WEBKIT_DOM_NODE (table),
NULL);
}
@@ -1479,7 +1479,7 @@ undo_redo_table_input (WebKitDOMDocument *document,
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)),
- webkit_dom_node_clone_node_with_error (undo ? event->data.dom.from : event->data.dom.to,
TRUE, NULL),
+ webkit_dom_node_clone_node (undo ? event->data.dom.from : event->data.dom.to, TRUE),
WEBKIT_DOM_NODE (element),
NULL);
@@ -1631,7 +1631,7 @@ undo_redo_image (WebKitDOMDocument *document,
/* Insert the deleted content back to the body. */
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (event->data.fragment), TRUE,
NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (event->data.fragment), TRUE),
WEBKIT_DOM_NODE (element),
NULL);
@@ -1783,7 +1783,7 @@ undo_redo_remove_link (WebKitDOMDocument *document,
g_object_unref (range);
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (event->data.fragment), TRUE,
NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (event->data.fragment), TRUE),
WEBKIT_DOM_NODE (element),
NULL);
remove_node (WEBKIT_DOM_NODE (element));
@@ -1815,7 +1815,7 @@ undo_return_in_empty_list_item (WebKitDOMDocument *document,
dom_remove_selection_markers (document);
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (parent),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (event->data.fragment), TRUE,
NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (event->data.fragment), TRUE),
webkit_dom_node_get_next_sibling (parent),
NULL);
@@ -1955,8 +1955,8 @@ undo_redo_citation_split (WebKitDOMDocument *document,
if (in_situ && event->data.fragment) {
webkit_dom_node_append_child (
webkit_dom_node_get_parent_node (last_child),
- webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (event->data.fragment), TRUE, NULL),
+ webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (event->data.fragment), TRUE),
NULL);
} else {
dom_remove_quoting_from_element (WEBKIT_DOM_ELEMENT (child));
@@ -2084,7 +2084,7 @@ undo_redo_unquote (WebKitDOMDocument *document,
if (prev_sibling && dom_node_is_citation_node (prev_sibling)) {
webkit_dom_node_append_child (
prev_sibling,
- webkit_dom_node_clone_node_with_error (event->data.dom.from, TRUE, NULL),
+ webkit_dom_node_clone_node (event->data.dom.from, TRUE),
NULL);
if (next_sibling && dom_node_is_citation_node (next_sibling)) {
@@ -2099,7 +2099,7 @@ undo_redo_unquote (WebKitDOMDocument *document,
} else if (next_sibling && dom_node_is_citation_node (next_sibling)) {
webkit_dom_node_insert_before (
next_sibling,
- webkit_dom_node_clone_node_with_error (event->data.dom.from, TRUE, NULL),
+ webkit_dom_node_clone_node (event->data.dom.from, TRUE),
webkit_dom_node_get_first_child (next_sibling),
NULL);
}
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index afcfad6..66a6361 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -512,7 +512,7 @@ dom_quote_plain_text_element_after_wrapping (WebKitDOMDocument *document,
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (br),
- webkit_dom_node_clone_node_with_error (quoted_node, TRUE, NULL),
+ webkit_dom_node_clone_node (quoted_node, TRUE),
webkit_dom_node_get_next_sibling (br),
NULL);
g_object_unref (br);
@@ -647,7 +647,7 @@ dom_insert_new_line_into_citation (WebKitDOMDocument *document,
current_block = get_parent_block_node_from_child (
WEBKIT_DOM_NODE (selection_start_marker));
- block_clone = webkit_dom_node_clone_node_with_error (current_block, TRUE, NULL);
+ block_clone = webkit_dom_node_clone_node (current_block, TRUE);
/* Find selection start marker and restore it after the new line
* is inserted */
selection_start_marker = webkit_dom_element_query_selector (
@@ -661,7 +661,7 @@ dom_insert_new_line_into_citation (WebKitDOMDocument *document,
WebKitDOMNode *node;
parent_block = parent;
- node = webkit_dom_node_clone_node_with_error (parent_block, FALSE, NULL);
+ node = webkit_dom_node_clone_node (parent_block, FALSE);
webkit_dom_node_append_child (node, block_clone, NULL);
block_clone = node;
parent = webkit_dom_node_get_parent_node (parent_block);
@@ -1557,7 +1557,7 @@ emoticon_insert_span (EEmoticon *emoticon,
fragment = webkit_dom_document_create_document_fragment (document);
node = webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (inserted_node), TRUE, NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (inserted_node), TRUE),
NULL);
if (e_html_editor_web_extension_get_unicode_smileys_enabled (extension)) {
webkit_dom_node_append_child (
@@ -2151,7 +2151,7 @@ save_history_before_event_in_table (WebKitDOMDocument *document,
if (block) {
dom_selection_save (document);
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (block),
TRUE, NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (block), TRUE);
dom_selection_restore (document);
} else
ev->data.dom.from = NULL;
@@ -2417,7 +2417,7 @@ save_history_after_event_in_table (WebKitDOMDocument *document,
&ev->after.end.x,
&ev->after.end.y);
- ev->data.dom.to = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (element), TRUE, NULL);
+ ev->data.dom.to = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (element), TRUE);
dom_selection_restore (document);
@@ -2498,7 +2498,7 @@ save_history_for_input (WebKitDOMDocument *document,
while (parent_start && parent_end && !webkit_dom_node_is_same_node (parent_start,
parent_end)) {
webkit_dom_node_insert_before (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (parent_start, FALSE, NULL),
+ webkit_dom_node_clone_node (parent_start, FALSE),
webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (fragment)),
NULL);
parent_start = webkit_dom_node_get_parent_node (parent_start);
@@ -3112,8 +3112,8 @@ dom_merge_siblings_if_necessary (WebKitDOMDocument *document,
goto signature;
equal_nodes = webkit_dom_node_is_equal_node (
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (element), FALSE, NULL),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (prev_element), FALSE, NULL));
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (element), FALSE),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (prev_element), FALSE));
if (equal_nodes) {
if (webkit_dom_element_get_child_element_count (element) >
@@ -3165,7 +3165,7 @@ dom_merge_siblings_if_necessary (WebKitDOMDocument *document,
remove_node (webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (element)));
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (right_signature), TRUE, NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (right_signature), TRUE),
WEBKIT_DOM_NODE (element),
NULL);
}
@@ -3552,7 +3552,7 @@ dom_change_quoted_block_to_normal (WebKitDOMDocument *document,
ev->type = HISTORY_UNQUOTE;
dom_selection_get_coordinates (document, &ev->before.start.x, &ev->before.start.y,
&ev->before.end.x, &ev->before.end.y);
- ev->data.dom.from = webkit_dom_node_clone_node_with_error (block, TRUE, NULL);
+ ev->data.dom.from = webkit_dom_node_clone_node (block, TRUE);
}
if (citation_level == 1) {
@@ -3642,7 +3642,7 @@ dom_change_quoted_block_to_normal (WebKitDOMDocument *document,
* the citation that is one level lower */
WebKitDOMNode *clone, *child;
- clone = webkit_dom_node_clone_node_with_error (parent, FALSE, NULL);
+ clone = webkit_dom_node_clone_node (parent, FALSE);
/* Move nodes that are after the currect block into the
* new blockquote */
@@ -3818,7 +3818,7 @@ quote_node (WebKitDOMDocument *document,
wrapper = webkit_dom_document_create_element (document, "SPAN", NULL);
webkit_dom_element_set_class_name (wrapper, "-x-evo-temp-text-wrapper");
- node_clone = webkit_dom_node_clone_node_with_error (node, TRUE, NULL);
+ node_clone = webkit_dom_node_clone_node (node, TRUE);
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (wrapper),
@@ -4182,7 +4182,7 @@ dom_quote_plain_text_element (WebKitDOMDocument *document,
WebKitDOMNodeList *list;
gint ii, length, level;
- element_clone = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (element), TRUE, NULL);
+ element_clone = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (element), TRUE);
level = get_citation_level (WEBKIT_DOM_NODE (element), TRUE);
/* Remove old quote characters if the exists */
@@ -4243,7 +4243,7 @@ dom_quote_plain_text (WebKitDOMDocument *document)
return NULL;
body = webkit_dom_document_get_body (document);
- body_clone = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (body), TRUE, NULL);
+ body_clone = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (body), TRUE);
/* Clean unwanted spaces before and after blockquotes */
list = webkit_dom_element_query_selector_all (
@@ -4472,8 +4472,8 @@ create_and_append_new_block (WebKitDOMDocument *document,
if (WEBKIT_DOM_IS_HTML_DIV_ELEMENT (block_template))
block = dom_get_paragraph_element (document, extension, -1, 0);
else
- block = WEBKIT_DOM_ELEMENT (webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (block_template), FALSE, NULL));
+ block = WEBKIT_DOM_ELEMENT (webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (block_template), FALSE));
webkit_dom_element_set_inner_html (block, content, NULL);
@@ -4772,7 +4772,7 @@ parse_html_into_blocks (WebKitDOMDocument *document,
if (WEBKIT_DOM_IS_HTML_DIV_ELEMENT (block_template))
block = dom_get_paragraph_element (document, extension, -1, 0);
else
- block = WEBKIT_DOM_ELEMENT
(webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (block_template), FALSE, NULL));
+ block = WEBKIT_DOM_ELEMENT (webkit_dom_node_clone_node
(WEBKIT_DOM_NODE (block_template), FALSE));
}
html = webkit_dom_element_get_inner_html (block);
@@ -5506,7 +5506,7 @@ dom_convert_content (WebKitDOMDocument *document,
inner_html = webkit_dom_element_get_inner_html (content_wrapper);
/* Replace the old body with the new one. */
- node = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (body), FALSE, NULL);
+ node = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (body), FALSE);
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (body)),
node,
@@ -6029,8 +6029,8 @@ dom_convert_and_insert_html_into_selection (WebKitDOMDocument *document,
webkit_dom_element_remove_attribute (WEBKIT_DOM_ELEMENT (parent), "id");
/* Check if WebKit created wrong structure */
- clone1 = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (block), FALSE, NULL);
- clone2 = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (parent), FALSE, NULL);
+ clone1 = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (block), FALSE);
+ clone2 = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (parent), FALSE);
if (webkit_dom_node_is_equal_node (clone1, clone2) ||
(WEBKIT_DOM_IS_HTML_DIV_ELEMENT (clone1) && WEBKIT_DOM_IS_HTML_DIV_ELEMENT (clone2))) {
fix_structure_after_pasting_multiline_content (block);
@@ -6544,7 +6544,7 @@ convert_element_from_html_to_plain_text (WebKitDOMDocument *document,
if (signature) {
WebKitDOMNode *parent = webkit_dom_node_get_parent_node (
WEBKIT_DOM_NODE (signature));
- signature_clone = webkit_dom_node_clone_node_with_error (parent, TRUE, NULL);
+ signature_clone = webkit_dom_node_clone_node (parent, TRUE);
remove_node (parent);
}
from = WEBKIT_DOM_NODE (element);
@@ -7292,8 +7292,8 @@ dom_process_content_for_draft (WebKitDOMDocument *document,
document_element = webkit_dom_document_get_document_element (document);
- document_element_clone = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (document_element), TRUE, NULL);
+ document_element_clone = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (document_element), TRUE);
list = webkit_dom_element_query_selector_all (
WEBKIT_DOM_ELEMENT (document_element_clone), "a.-x-evo-visited-link", NULL);
@@ -7375,7 +7375,7 @@ dom_process_content_for_plain_text (WebKitDOMDocument *document,
WEBKIT_DOM_ELEMENT (body), "data-converted");
is_from_new_message = webkit_dom_element_has_attribute (
WEBKIT_DOM_ELEMENT (body), "data-new-message");
- source = webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (body), TRUE, NULL);
+ source = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (body), TRUE);
dom_selection_save (document);
@@ -7563,8 +7563,8 @@ dom_process_content_for_html (WebKitDOMDocument *document,
if (from_domain != NULL)
inline_images_to_restore = dom_get_inline_images_data (document, extension, from_domain);
- document_clone = webkit_dom_node_clone_node_with_error (
- WEBKIT_DOM_NODE (webkit_dom_document_get_document_element (document)), TRUE, NULL);
+ document_clone = webkit_dom_node_clone_node (
+ WEBKIT_DOM_NODE (webkit_dom_document_get_document_element (document)), TRUE);
element = webkit_dom_element_query_selector (
WEBKIT_DOM_ELEMENT (document_clone), "style#-x-evo-quote-style", NULL);
if (element)
@@ -8336,22 +8336,22 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
if (delete_key) {
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error
(actual_block, TRUE, NULL),
+ webkit_dom_node_clone_node
(actual_block, TRUE),
NULL);
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error
(tmp_block, TRUE, NULL),
+ webkit_dom_node_clone_node
(tmp_block, TRUE),
NULL);
if (delete_key)
next_block = tmp_block;
} else {
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error
(tmp_block, TRUE, NULL),
+ webkit_dom_node_clone_node
(tmp_block, TRUE),
NULL);
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error
(actual_block, TRUE, NULL),
+ webkit_dom_node_clone_node
(actual_block, TRUE),
NULL);
}
g_object_set_data (
@@ -8562,7 +8562,7 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
!element_has_class (WEBKIT_DOM_ELEMENT (child), "-x-evo-quoted")))) {
webkit_dom_node_insert_before (
webkit_dom_node_get_parent_node (child),
- webkit_dom_node_clone_node_with_error (sibling, TRUE, NULL),
+ webkit_dom_node_clone_node (sibling, TRUE),
child,
NULL);
}
@@ -8599,7 +8599,7 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
WebKitDOMNode *clone;
tmp_fragment = webkit_dom_document_create_document_fragment
(document);
- clone = webkit_dom_node_clone_node_with_error (node, FALSE, NULL);
+ clone = webkit_dom_node_clone_node (node, FALSE);
clone = webkit_dom_node_append_child (
WEBKIT_DOM_NODE (tmp_fragment), clone, NULL);
webkit_dom_node_append_child (clone, WEBKIT_DOM_NODE (fragment),
NULL);
@@ -8620,7 +8620,7 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
if (signature) {
webkit_dom_node_replace_child (
webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (tmp_element)),
- webkit_dom_node_clone_node_with_error (WEBKIT_DOM_NODE (signature),
TRUE, NULL),
+ webkit_dom_node_clone_node (WEBKIT_DOM_NODE (signature), TRUE),
WEBKIT_DOM_NODE (tmp_element),
NULL);
}
@@ -9161,7 +9161,7 @@ return_pressed_in_image_wrapper (WebKitDOMDocument *document,
block = get_parent_block_node_from_child (
WEBKIT_DOM_NODE (selection_start_marker));
- clone = webkit_dom_node_clone_node_with_error (block, FALSE, NULL);
+ clone = webkit_dom_node_clone_node (block, FALSE);
webkit_dom_node_append_child (
clone, WEBKIT_DOM_NODE (webkit_dom_document_create_element (document, "br", NULL)), NULL);
@@ -9174,7 +9174,7 @@ return_pressed_in_image_wrapper (WebKitDOMDocument *document,
if (ev) {
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (clone, TRUE, NULL),
+ webkit_dom_node_clone_node (clone, TRUE),
NULL);
dom_selection_get_coordinates (
@@ -9375,7 +9375,7 @@ key_press_event_process_return_key (WebKitDOMDocument *document,
node = webkit_dom_node_get_previous_sibling (table);
if (!node) {
node = webkit_dom_node_get_next_sibling (table);
- node = webkit_dom_node_clone_node_with_error (node, FALSE, NULL);
+ node = webkit_dom_node_clone_node (node, FALSE);
webkit_dom_node_append_child (
node,
WEBKIT_DOM_NODE (webkit_dom_document_create_element (
@@ -9469,7 +9469,7 @@ remove_empty_bulleted_list_item (WebKitDOMDocument *document,
if (prev_item)
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (fragment),
- webkit_dom_node_clone_node_with_error (prev_item, TRUE, NULL),
+ webkit_dom_node_clone_node (prev_item, TRUE),
NULL);
webkit_dom_node_append_child (
diff --git a/web-extensions/e-dom-utils.c b/web-extensions/e-dom-utils.c
index 8a873fd..951d83d 100644
--- a/web-extensions/e-dom-utils.c
+++ b/web-extensions/e-dom-utils.c
@@ -1639,7 +1639,7 @@ split_list_into_two (WebKitDOMNode *item,
WebKitDOMNode *clone, *first_child, *insert_before = NULL, *sibling;
first_child = webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (fragment));
- clone = webkit_dom_node_clone_node_with_error (parent, FALSE, NULL);
+ clone = webkit_dom_node_clone_node (parent, FALSE);
webkit_dom_node_insert_before (
WEBKIT_DOM_NODE (fragment), clone, first_child, NULL);
@@ -1917,7 +1917,7 @@ dom_get_node_inner_html (WebKitDOMNode *node)
div = webkit_dom_document_create_element (document, "div", NULL);
webkit_dom_node_append_child (
WEBKIT_DOM_NODE (div),
- webkit_dom_node_clone_node_with_error (node, TRUE, NULL),
+ webkit_dom_node_clone_node (node, TRUE),
NULL);
inner_html = webkit_dom_element_get_inner_html (div);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]