[evolution/wip/webkit2] EHTMLEditorSelection - Don't treat links as underlined
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorSelection - Don't treat links as underlined
- Date: Wed, 22 Apr 2015 12:56:50 +0000 (UTC)
commit 01702c7cb04dd4296a15495344cf16a5e7b45d4f
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 24 14:23:21 2015 +0100
EHTMLEditorSelection - Don't treat links as underlined
.../e-html-editor-selection-dom-functions.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-html-editor-selection-dom-functions.c
b/web-extensions/e-html-editor-selection-dom-functions.c
index aee2d2d..b54950e 100644
--- a/web-extensions/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/e-html-editor-selection-dom-functions.c
@@ -2844,6 +2844,9 @@ dom_selection_is_underline (WebKitDOMDocument *document,
else
element = webkit_dom_node_get_parent_element (node);
+ if (WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (element))
+ return FALSE;
+
style = webkit_dom_dom_window_get_computed_style (window, element, NULL);
value = webkit_dom_css_style_declaration_get_property_value (style, "text-decoration");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]