[evolution/gnome-3-18] EHTMLEditorView - Note a type of DOMRange comparison in comment



commit dae683bfdbfbf1034487dc8bd1c4fe3a690d1c35
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Dec 3 15:32:27 2015 +0100

    EHTMLEditorView - Note a type of DOMRange comparison in comment

 e-util/e-html-editor-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index fc80ab2..ce00133 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -491,7 +491,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");
@@ -4286,7 +4286,7 @@ save_history_for_delete_or_backspace (EHTMLEditorView *view,
                        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);
@@ -4396,7 +4396,7 @@ save_history_for_delete_or_backspace (EHTMLEditorView *view,
                                                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]