about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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.