diff options
author | bptato <nincsnevem662@gmail.com> | 2022-07-21 01:06:35 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-07-21 01:06:35 +0200 |
commit | c69a8ab7576e2053afc5dfcee5c7152a07c31230 (patch) | |
tree | 750156d832cb31a3dc08d2c33f27752403ab0728 /src/io/buffer.nim | |
parent | 062027c84176f8a6fa8870d7c527ece3aee7b519 (diff) | |
download | chawan-c69a8ab7576e2053afc5dfcee5c7152a07c31230.tar.gz |
Optimize dom
Diffstat (limited to 'src/io/buffer.nim')
-rw-r--r-- | src/io/buffer.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/io/buffer.nim b/src/io/buffer.nim index a9843eb4..e7a5d881 100644 --- a/src/io/buffer.nim +++ b/src/io/buffer.nim @@ -727,8 +727,7 @@ proc loadResources(buffer: Buffer, document: Document) = let sheet = parseStylesheet(res.s) elem.sheet = sheet - for i in countdown(elem.children.high, 0): - let child = elem.children[i] + for child in elem.children_rev: stack.add(child) proc load*(buffer: Buffer) = |