[evolution/wip/webkit2] EHTMLEditorView - Note a type of DOMRange comparison in comment
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Note a type of DOMRange comparison in comment
- Date: Thu, 3 Mar 2016 11:59:51 +0000 (UTC)
commit f8134536470b6b6efb571b27e8ad9d5e14af52d6
Author: Tomas Popela <tpopela redhat com>
Date: Thu Mar 3 12:25:15 2016 +0100
EHTMLEditorView - Note a type of DOMRange comparison in comment
.../composer/e-html-editor-view-dom-functions.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
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 b774887..fc0e7fa 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -139,7 +139,7 @@ perform_spell_check (WebKitDOMDOMSelection *dom_selection,
/* Go through all words to spellcheck them. To avoid this we have to wait for
* http://www.w3.org/html/wg/drafts/html/master/editing.html#dom-forcespellcheck */
/* We are moving forward word by word until we hit the text on the end. */
- while (actual && webkit_dom_range_compare_boundary_points (end_range, 2, actual, NULL) != 0) {
+ while (actual && webkit_dom_range_compare_boundary_points (end_range, 2 /* END_TO_END */, actual,
NULL) != 0) {
g_object_unref (actual);
webkit_dom_dom_selection_modify (
dom_selection, "move", "forward", "word");
@@ -7780,7 +7780,7 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
dom_selection, "move", delete_key ? "right" : "left", "character");
tmp_range = webkit_dom_dom_selection_get_range_at (dom_selection, 0, NULL);
- if (webkit_dom_range_compare_boundary_points (tmp_range, 2, range, NULL) == 0) {
+ if (webkit_dom_range_compare_boundary_points (tmp_range, 2 /* END_TO_END */, range, NULL) ==
0) {
g_object_unref (dom_selection);
g_object_unref (range);
g_object_unref (tmp_range);
@@ -7888,7 +7888,7 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
dom_selection, "move", delete_key ? "right" : "left",
"character");
tmp_range = webkit_dom_dom_selection_get_range_at (dom_selection, 0,
NULL);
- if (webkit_dom_range_compare_boundary_points (tmp_range, 2,
actual_range, NULL) != 0) {
+ if (webkit_dom_range_compare_boundary_points (tmp_range, 2 /*
END_TO_END */, actual_range, NULL) != 0) {
WebKitDOMNode *actual_block;
WebKitDOMNode *tmp_block;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]