[evolution/wip/webkit2] EHTMLEditorSelection - Font formats are reported wrongly if the are nested FONT elements
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorSelection - Font formats are reported wrongly if the are nested FONT elements
- Date: Wed, 2 Mar 2016 13:13:30 +0000 (UTC)
commit 38261089459ba25adf4fb3d5d4660699f04590a4
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 2 12:55:01 2016 +0100
EHTMLEditorSelection - Font formats are reported wrongly if the are nested FONT elements
.../e-html-editor-selection-dom-functions.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index d3fdfa0..3f1c061 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -4537,6 +4537,12 @@ get_font_property (WebKitDOMDocument *document,
node = webkit_dom_range_get_common_ancestor_container (range, NULL);
g_object_unref (range);
element = dom_node_find_parent_element (node, "FONT");
+ while (element && !WEBKIT_DOM_IS_HTML_BODY_ELEMENT (element) &&
+ !webkit_dom_element_has_attribute (element, font_property)) {
+ element = dom_node_find_parent_element (
+ webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)), "FONT");
+ }
+
if (!element)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]