[evolution/wip/webkit2] Return a correct element from given position from document
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Return a correct element from given position from document
- Date: Thu, 2 Jun 2016 12:46:31 +0000 (UTC)
commit 454ab59fce3fe31e1fb8acdd07199b68d682aba9
Author: Tomas Popela <tpopela redhat com>
Date: Thu Jun 2 14:45:30 2016 +0200
Return a correct element from given position from document
web-extensions/e-dom-utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-dom-utils.c b/web-extensions/e-dom-utils.c
index 13379eb..5136f81 100644
--- a/web-extensions/e-dom-utils.c
+++ b/web-extensions/e-dom-utils.c
@@ -1152,6 +1152,8 @@ find_element_from_point (WebKitDOMDocument *document,
if (!element)
return element_on_point;
+ else if (!WEBKIT_DOM_IS_HTML_IFRAME_ELEMENT (element))
+ element_on_point = element;
if (element_on_point && webkit_dom_node_is_equal_node (
WEBKIT_DOM_NODE (element),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]