[evolution/wip/webkit2] EHTMLEditorView - Only change a smiley to plain text when the node is smiley
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Only change a smiley to plain text when the node is smiley
- Date: Thu, 3 Mar 2016 13:43:53 +0000 (UTC)
commit 93e3cb9e7a1254857ae24725a6dda0e0cf6d25bb
Author: Tomas Popela <tpopela redhat com>
Date: Thu Mar 3 14:09:27 2016 +0100
EHTMLEditorView - Only change a smiley to plain text when the node is smiley
.../composer/e-html-editor-view-dom-functions.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 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 bfc0b9b..1237b0b 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -9081,12 +9081,15 @@ change_smiley_to_plain_text (WebKitDOMDocument *document)
WEBKIT_DOM_CHARACTER_DATA (prev_sibling));
if (g_strcmp0 (text, UNICODE_ZERO_WIDTH_SPACE) == 0) {
- remove_node (prev_sibling);
- in_smiley = TRUE;
- prev_sibling = webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE
(element));
- if (WEBKIT_DOM_IS_ELEMENT (prev_sibling) &&
- element_has_class (WEBKIT_DOM_ELEMENT (prev_sibling),
"-x-evo-smiley-wrapper"))
+ WebKitDOMNode *prev_prev_sibling;
+
+ prev_prev_sibling = webkit_dom_node_get_previous_sibling
(prev_sibling);
+ if (WEBKIT_DOM_IS_ELEMENT (prev_prev_sibling) &&
+ element_has_class (WEBKIT_DOM_ELEMENT (prev_prev_sibling),
"-x-evo-smiley-wrapper")) {
+ remove_node (prev_sibling);
+ in_smiley = TRUE;
parent = webkit_dom_node_get_last_child (prev_sibling);
+ }
}
g_free (text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]