about summary refs log tree commit diff stats
path: root/src/css/cascade.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-19 14:33:23 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-19 14:33:23 +0100
commit444c70b6d6bbff83ed8fa5ec21a5ed3195ed8849 (patch)
tree5cebe631eaf5aceba09131acd66353766343a546 /src/css/cascade.nim
parentb4798a6bf5ea4916fa9ccb582f067d5dab5f2fc2 (diff)
downloadchawan-444c70b6d6bbff83ed8fa5ec21a5ed3195ed8849.tar.gz
Fix crash on reshape
Diffstat (limited to 'src/css/cascade.nim')
-rw-r--r--src/css/cascade.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index 9378ffc3..3f85bfd8 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -166,8 +166,6 @@ proc applyRules*(document: Document, ua, user: CSSStylesheet) =
 
   stack.add(document.root)
 
-  document.root.css = rootProperties()
-
   while stack.len > 0:
     let elem = stack.pop()