diff options
-rw-r--r-- | src/layout/box.nim | 1 | ||||
-rw-r--r-- | src/layout/engine.nim | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/layout/box.nim b/src/layout/box.nim index 2d82537e..2bd83185 100644 --- a/src/layout/box.nim +++ b/src/layout/box.nim @@ -43,7 +43,6 @@ type content*: BlockBoxBuilder # iblock.bctx is equivalent to box.bctx MarkerBoxBuilder* = ref object of InlineBoxBuilder - ordinalvalue*: int ListItemBoxBuilder* = ref object of BoxBuilder marker*: MarkerBoxBuilder diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 259ca962..89f321b4 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -671,9 +671,7 @@ proc getMarkerBox(computed: CSSComputedValues, listItemCounter: int): MarkerBoxB result.inlinelayout = true result.computed = computed.copyProperties() result.computed.setDisplay(DISPLAY_INLINE) - - result.ordinalvalue = listItemCounter - result.text.add(computed{"list-style-type"}.listMarker(result.ordinalvalue)) + result.text.add(computed{"list-style-type"}.listMarker(listItemCounter)) proc getListItemBox(computed: CSSComputedValues, listItemCounter: int): ListItemBoxBuilder = new(result) |