[evolution/wip/webkit2] Fix the /list/bullet/html test
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Fix the /list/bullet/html test
- Date: Tue, 26 Jul 2016 13:01:13 +0000 (UTC)
commit a22d19095d02ba44d63e78dc4161abd8584c3edd
Author: Tomas Popela <tpopela redhat com>
Date: Tue Jul 26 14:55:17 2016 +0200
Fix the /list/bullet/html test
Correct the code that is determining whether we have a caret inside an empty
list item.
.../web-extension/e-editor-dom-functions.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index a3aed74..32a6efc 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -9735,6 +9735,9 @@ selection_is_in_empty_list_item (WebKitDOMNode *selection_start_marker)
sibling = webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (selection_start_marker));
+ if (!sibling)
+ return TRUE;
+
/* Only text node with the zero width space character is allowed. */
if (!WEBKIT_DOM_IS_TEXT (sibling))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]