Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/acee5faa3f03a229a6d7d14e042441a6af048faf
...commit
http://git.netsurf-browser.org/netsurf.git/commit/acee5faa3f03a229a6d7d14e042441a6af048faf
...tree
http://git.netsurf-browser.org/netsurf.git/tree/acee5faa3f03a229a6d7d14e042441a6af048faf
The branch, master has been updated
via acee5faa3f03a229a6d7d14e042441a6af048faf (commit)
from 87177d8aa109206d131e0d80a2080ce55dab01c7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=acee5faa3f03a229a6d7d14e042441a6af048faf
commit acee5faa3f03a229a6d7d14e042441a6af048faf
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
html_interaction.c: Default node to <HTML> node
In order to cope when an entire document is `visibility: hidden`
we default to the <HTML> node when interacting with the document
to ensure we don't drop off the end of the box model without
identifying at least one node to fire events at.
This resolves #2658
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/content/handlers/html/html_interaction.c
b/content/handlers/html/html_interaction.c
index da4c67c..985b325 100644
--- a/content/handlers/html/html_interaction.c
+++ b/content/handlers/html/html_interaction.c
@@ -382,7 +382,7 @@ void html_mouse_action(struct content *c, struct
browser_window *bw,
int padding_left, padding_right, padding_top, padding_bottom;
browser_drag_type drag_type = browser_window_get_drag_type(bw);
union content_msg_data msg_data;
- struct dom_node *node = NULL;
+ struct dom_node *node = html->layout->node; /* Default to the <HTML> */
union html_drag_owner drag_owner;
union html_selection_owner sel_owner;
bool click = mouse & (BROWSER_MOUSE_PRESS_1 | BROWSER_MOUSE_PRESS_2 |
-----------------------------------------------------------------------
Summary of changes:
content/handlers/html/html_interaction.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content/handlers/html/html_interaction.c
b/content/handlers/html/html_interaction.c
index da4c67c..985b325 100644
--- a/content/handlers/html/html_interaction.c
+++ b/content/handlers/html/html_interaction.c
@@ -382,7 +382,7 @@ void html_mouse_action(struct content *c, struct
browser_window *bw,
int padding_left, padding_right, padding_top, padding_bottom;
browser_drag_type drag_type = browser_window_get_drag_type(bw);
union content_msg_data msg_data;
- struct dom_node *node = NULL;
+ struct dom_node *node = html->layout->node; /* Default to the <HTML> */
union html_drag_owner drag_owner;
union html_selection_owner sel_owner;
bool click = mouse & (BROWSER_MOUSE_PRESS_1 | BROWSER_MOUSE_PRESS_2 |
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org