Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/bf4382e3ec9af8e65e090...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/bf4382e3ec9af8e65e0903a...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/bf4382e3ec9af8e65e0903af7...
The branch, master has been updated
via bf4382e3ec9af8e65e0903af7b1f492454877558 (commit)
from 720a8fec0e2b435e09d76eabf3c40e78dba414cc (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=bf4382e3ec9af8e65e0...
commit bf4382e3ec9af8e65e0903af7b1f492454877558
Author: John-Mark Bell <jmb(a)netsurf-browser.org>
Commit: John-Mark Bell <jmb(a)netsurf-browser.org>
HTMLElement: stub .style getter. For #2413.
diff --git a/javascript/duktape/HTMLElement.bnd b/javascript/duktape/HTMLElement.bnd
index d2b913a..b3de9c8 100644
--- a/javascript/duktape/HTMLElement.bnd
+++ b/javascript/duktape/HTMLElement.bnd
@@ -151,3 +151,12 @@ getter HTMLElement::onwaiting();
setter HTMLElement::onwaiting();
getter HTMLElement::onwheel();
setter HTMLElement::onwheel();
+
+getter HTMLElement::style()
+%{
+ /* Minimal implementation to avoid infinite-loop in Modernizr (c.f. #2413) */
+ if (dukky_create_object(ctx, PROTO_NAME(CSSSTYLEDECLARATION), 0) != DUK_EXEC_SUCCESS) {
+ return 0;
+ }
+ return 1;
+%}
-----------------------------------------------------------------------
Summary of changes:
javascript/duktape/HTMLElement.bnd | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/javascript/duktape/HTMLElement.bnd b/javascript/duktape/HTMLElement.bnd
index d2b913a..b3de9c8 100644
--- a/javascript/duktape/HTMLElement.bnd
+++ b/javascript/duktape/HTMLElement.bnd
@@ -151,3 +151,12 @@ getter HTMLElement::onwaiting();
setter HTMLElement::onwaiting();
getter HTMLElement::onwheel();
setter HTMLElement::onwheel();
+
+getter HTMLElement::style()
+%{
+ /* Minimal implementation to avoid infinite-loop in Modernizr (c.f. #2413) */
+ if (dukky_create_object(ctx, PROTO_NAME(CSSSTYLEDECLARATION), 0) != DUK_EXEC_SUCCESS) {
+ return 0;
+ }
+ return 1;
+%}
--
NetSurf Browser