summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2021-04-19 02:42:38 -0300
committerGitHub <noreply@github.com>2021-04-19 07:42:38 +0200
commitf8038af5ecfa20deaa0b9b1e0d8a5f5915dd9780 (patch)
tree0a0e1ec37e81fcff800ef264f4e052bcda308efa /lib
parent172a5ab7f82df503c1123a3bfa2f702416733858 (diff)
downloadNim-f8038af5ecfa20deaa0b9b1e0d8a5f5915dd9780.tar.gz
Documentation only, dom (#17770)
* ReSync with Devel

* ReSync

* https://github.com/timotheecour/Nim/issues/674

* Update lib/js/dom.nim

Co-authored-by: flywind <xzsflywind@gmail.com>

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: flywind <xzsflywind@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/js/dom.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index a133f1f69..303cc178f 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -1496,7 +1496,9 @@ proc find*(w: Window, text: cstring, caseSensitive = false,
            backwards = false)
 proc focus*(w: Window)
 proc forward*(w: Window)
-proc getComputedStyle*(w: Window, e: Node, pe:Node = nil): Style
+proc getComputedStyle*(w: Window, e: Node, pe: Node = nil): Style
+  ## .. warning:: The returned Style may or may not be read-only at run-time in the browser. getComputedStyle is performance costly.
+
 proc handleEvent*(w: Window, e: Event)
 proc home*(w: Window)
 proc moveBy*(w: Window, x, y: int)