about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-09 14:04:23 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-09 14:04:23 +0100
commita6dbfadab3d783ae3ca84e78f154153e8a315ce3 (patch)
tree3ac1f4074be3c63f3c317d35e5311130b1b4dec9 /src/css
parente96f6cc2d2927a95ed2c54d2a394dd4099857200 (diff)
downloadchawan-a6dbfadab3d783ae3ca84e78f154153e8a315ce3.tar.gz
cascade: simplify
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cascade.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index d40f1b0c..4f71d8c6 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -498,8 +498,7 @@ proc applyRules(document: Document, ua, user: CSSStylesheet, cachedTree: StyledN
     let styledParent = frame.styledParent
     let valid = frame.cachedChild != nil and frame.cachedChild.isValid()
     let styledChild = if valid:
-      let styledChild = frame.applyRulesFrameValid()
-      styledChild
+      frame.applyRulesFrameValid()
     else:
       # From here on, computed values of this node's children are invalid
       # because of property inheritance.