Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/3d739479ea760b948a95edf759d0dc080e26b035
...commit
http://git.netsurf-browser.org/netsurf.git/commit/3d739479ea760b948a95edf759d0dc080e26b035
...tree
http://git.netsurf-browser.org/netsurf.git/tree/3d739479ea760b948a95edf759d0dc080e26b035
The branch, master has been updated
via 3d739479ea760b948a95edf759d0dc080e26b035 (commit)
from 14fba9afdce36db0f4465159ce976f24b6d4916c (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=3d739479ea760b948a95edf759d0dc080e26b035
commit 3d739479ea760b948a95edf759d0dc080e26b035
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
(duktape): Clear some warnings by adding base data to css rule and
stylesheet
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/content/handlers/javascript/duktape/CSSRule.bnd
b/content/handlers/javascript/duktape/CSSRule.bnd
new file mode 100644
index 0000000..555023c
--- /dev/null
+++ b/content/handlers/javascript/duktape/CSSRule.bnd
@@ -0,0 +1,22 @@
+/* CSS Rule binding for NetSurf using duktape and libcss/libdom
+ *
+ * Copyright 2022 Daniel Silverstone <[email protected]>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * Released under the terms of the MIT License,
+ * http://www.opensource.org/licenses/mit-license
+ */
+
+/* Note, for now this exists purely to block warnings, eventually
+ * rules will have to come from stylesheets etc.
+ */
+
+class CSSRule {
+ private bool unused;
+};
+
+init CSSRule()
+%{
+ priv->unused = true;
+%}
diff --git a/content/handlers/javascript/duktape/CSSStyleSheet.bnd
b/content/handlers/javascript/duktape/CSSStyleSheet.bnd
new file mode 100644
index 0000000..9167b8a
--- /dev/null
+++ b/content/handlers/javascript/duktape/CSSStyleSheet.bnd
@@ -0,0 +1,22 @@
+/* CSS Stylesheet binding for NetSurf using duktape and libcss/libdom
+ *
+ * Copyright 2022 Daniel Silverstone <[email protected]>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * Released under the terms of the MIT License,
+ * http://www.opensource.org/licenses/mit-license
+ */
+
+/* Note, for now this exists purely to block warnings, eventually
+ * stylesheets will have to come from documents etc.
+ */
+
+class CSSStyleSheet {
+ private bool unused;
+};
+
+init CSSStyleSheet()
+%{
+ priv->unused = true;
+%}
diff --git a/content/handlers/javascript/duktape/netsurf.bnd
b/content/handlers/javascript/duktape/netsurf.bnd
index e47f07d..651c2fd 100644
--- a/content/handlers/javascript/duktape/netsurf.bnd
+++ b/content/handlers/javascript/duktape/netsurf.bnd
@@ -205,3 +205,7 @@ init HTMLPropertiesCollection(struct dom_html_collection
*coll);
#include "CanvasRenderingContext2D.bnd"
#include "ImageData.bnd"
+/* CSS Object model */
+
+#include "CSSRule.bnd"
+#include "CSSStyleSheet.bnd"
-----------------------------------------------------------------------
Summary of changes:
content/handlers/javascript/duktape/CSSRule.bnd | 22 ++++++++++++++++++++
.../handlers/javascript/duktape/CSSStyleSheet.bnd | 22 ++++++++++++++++++++
content/handlers/javascript/duktape/netsurf.bnd | 4 ++++
3 files changed, 48 insertions(+)
create mode 100644 content/handlers/javascript/duktape/CSSRule.bnd
create mode 100644 content/handlers/javascript/duktape/CSSStyleSheet.bnd
diff --git a/content/handlers/javascript/duktape/CSSRule.bnd
b/content/handlers/javascript/duktape/CSSRule.bnd
new file mode 100644
index 0000000..555023c
--- /dev/null
+++ b/content/handlers/javascript/duktape/CSSRule.bnd
@@ -0,0 +1,22 @@
+/* CSS Rule binding for NetSurf using duktape and libcss/libdom
+ *
+ * Copyright 2022 Daniel Silverstone <[email protected]>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * Released under the terms of the MIT License,
+ * http://www.opensource.org/licenses/mit-license
+ */
+
+/* Note, for now this exists purely to block warnings, eventually
+ * rules will have to come from stylesheets etc.
+ */
+
+class CSSRule {
+ private bool unused;
+};
+
+init CSSRule()
+%{
+ priv->unused = true;
+%}
diff --git a/content/handlers/javascript/duktape/CSSStyleSheet.bnd
b/content/handlers/javascript/duktape/CSSStyleSheet.bnd
new file mode 100644
index 0000000..9167b8a
--- /dev/null
+++ b/content/handlers/javascript/duktape/CSSStyleSheet.bnd
@@ -0,0 +1,22 @@
+/* CSS Stylesheet binding for NetSurf using duktape and libcss/libdom
+ *
+ * Copyright 2022 Daniel Silverstone <[email protected]>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * Released under the terms of the MIT License,
+ * http://www.opensource.org/licenses/mit-license
+ */
+
+/* Note, for now this exists purely to block warnings, eventually
+ * stylesheets will have to come from documents etc.
+ */
+
+class CSSStyleSheet {
+ private bool unused;
+};
+
+init CSSStyleSheet()
+%{
+ priv->unused = true;
+%}
diff --git a/content/handlers/javascript/duktape/netsurf.bnd
b/content/handlers/javascript/duktape/netsurf.bnd
index e47f07d..651c2fd 100644
--- a/content/handlers/javascript/duktape/netsurf.bnd
+++ b/content/handlers/javascript/duktape/netsurf.bnd
@@ -205,3 +205,7 @@ init HTMLPropertiesCollection(struct dom_html_collection
*coll);
#include "CanvasRenderingContext2D.bnd"
#include "ImageData.bnd"
+/* CSS Object model */
+
+#include "CSSRule.bnd"
+#include "CSSStyleSheet.bnd"
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]