about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-07-17 23:04:22 +0200
committerbptato <nincsnevem662@gmail.com>2022-07-17 23:04:22 +0200
commit9cf21945449596aa7632a583bc9b2fd211d4cf5e (patch)
tree499930437e39f4f28645b5649c0f1fbd5e8f404e /src/layout/engine.nim
parent24fc8e940a935f0579cf7bc03bf01e27e5853b80 (diff)
downloadchawan-9cf21945449596aa7632a583bc9b2fd211d4cf5e.tar.gz
Fix a parser bug
Plus a few warnings.
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index a449f6a3..a21d444a 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -640,12 +640,6 @@ proc getListItemBox(computed: CSSComputedValues, listItemCounter: int): ListItem
   result.computed = computed.copyProperties()
   result.marker = getMarkerBox(computed, listItemCounter)
 
-func getInputBox(parent: BoxBuilder, input: HTMLInputElement): InlineBoxBuilder =
-  let textbox = parent.getTextBox()
-  textbox.node = input
-  textbox.text.add(input.inputString())
-  return textbox
-
 # Don't generate empty anonymous inline blocks between block boxes
 func canGenerateAnonymousInline(blockgroup: seq[BoxBuilder], computed: CSSComputedValues, str: string): bool =
   return blockgroup.len > 0 and blockgroup[^1].computed{"display"} == DISPLAY_INLINE or
@@ -717,7 +711,6 @@ proc generateInlineBoxes(box: BlockBoxBuilder, styledNode: StyledNode, blockgrou
   flush_ibox
 
 proc generateBlockBox(styledNode: StyledNode, viewport: Viewport): BlockBoxBuilder =
-  let elem = Element(styledNode.node)
   let box = getBlockBox(styledNode.computed)
   var blockgroup: seq[BoxBuilder]
   var ibox: InlineBoxBuilder = nil