[evolution/wip/webkit2] EHTMLEditorSelection - Selection could be saved wrong in quoted content



commit b5dec6312ad9f5ed194612add4b6729bff001a97
Author: Tomas Popela <tpopela redhat com>
Date:   Tue May 31 10:45:59 2016 +0200

    EHTMLEditorSelection - Selection could be saved wrong in quoted content

 .../e-html-editor-selection-dom-functions.c        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c 
b/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c
index 65b4949..caab306 100644
--- a/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c
+++ b/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c
@@ -2066,7 +2066,8 @@ dom_selection_save (WebKitDOMDocument *document)
                }
                if (!webkit_dom_node_get_previous_sibling (container)) {
                        split_node = parent_node;
-               } else if (!webkit_dom_node_get_next_sibling (container)) {
+               } else if (!webkit_dom_node_get_next_sibling (container) &&
+                          !WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent_node)) {
                        split_node = parent_node;
                        split_node = webkit_dom_node_get_next_sibling (split_node);
                } else


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