about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-17 18:38:32 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-17 18:44:44 +0100
commitef4604ba8f494a2997a744a0b04732dc686c46ea (patch)
tree77a67abb1bc31a5ad86966729ba56bb307083827 /src/layout/engine.nim
parentd430a83ab3e971b816581839fbdf860a293242e8 (diff)
downloadchawan-ef4604ba8f494a2997a744a0b04732dc686c46ea.tar.gz
More code formatting consistency
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 6568c400..1e9fc94a 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -340,7 +340,7 @@ proc applyBlockEnd(state: var LayoutState, parent, box: CSSBox) =
   else:
     parent.icontext.fromy += box.bcontext.height.get
 
-proc addBlock(state: var LayoutState, parent: CSSBox, box: CSSBox) =
+proc addBlock(state: var LayoutState, parent, box: CSSBox) =
   parent.icontext.fromx = parent.x
   if box.icontext.conty:
     box.flushConty()
@@ -348,13 +348,13 @@ proc addBlock(state: var LayoutState, parent: CSSBox, box: CSSBox) =
   state.applyBlockEnd(parent, box)
   parent.children.add(box)
 
-proc addInline(state: var LayoutState, parent: CSSBox, box: CSSBox) =
+proc addInline(state: var LayoutState, parent, box: CSSBox) =
   parent.icontext.fromx += box.cssvalues[PROPERTY_MARGIN_RIGHT].length.cells_w(state, parent.bcontext.width)
   parent.icontext.fromy = box.icontext.fromy
 
   parent.children.add(box)
 
-proc addInlineBlock(state: var LayoutState, parent: CSSBox, box: CSSBox) =
+proc addInlineBlock(state: var LayoutState, parent, box: CSSBox) =
   parent.icontext.fromx = box.icontext.fromx
   parent.icontext.fromx += box.cssvalues[PROPERTY_MARGIN_RIGHT].length.cells_w(state, parent.bcontext.width)
   parent.icontext.conty = box.icontext.conty