[evolution/wip/webkit2] EHTMLEditorView - When merging siblings repeat until none is left



commit a8ac71ef162a6ec1710e6a0c916a705ddf42009a
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 1 15:48:48 2016 +0100

    EHTMLEditorView - When merging siblings repeat until none is left

 .../composer/e-html-editor-view-dom-functions.c    |    6 +++++-
 1 files changed, 5 insertions(+), 1 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 d5a818d..345e954 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -2670,7 +2670,7 @@ dom_merge_siblings_if_necessarry (WebKitDOMDocument *document,
        element = webkit_dom_document_query_selector (document, "blockquote + blockquote", NULL);
        if (!element)
                goto signature;
-
+ repeat:
        prev_element = WEBKIT_DOM_ELEMENT (webkit_dom_node_get_previous_sibling (
                WEBKIT_DOM_NODE (element)));
        equal_nodes = webkit_dom_node_is_equal_node (
@@ -2696,6 +2696,10 @@ dom_merge_siblings_if_necessarry (WebKitDOMDocument *document,
                }
        }
 
+       element = webkit_dom_document_query_selector (document, "blockquote + blockquote", NULL);
+       if (element)
+               goto repeat;
+
  signature:
        if (!deleted_content)
                return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]