diff options
| author | bptato <nincsnevem662@gmail.com> | 2022-07-17 10:47:28 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2022-07-17 11:10:28 +0200 |
| commit | 2496c52449169f0caaba086ca3098b11708e5ba2 (patch) | |
| tree | e6a5f083558f789053d2c828ff31ee713cb6326e /src/layout | |
| parent | 8cd503c88693171f9887716440cdc110fdca2bb3 (diff) | |
| download | chawan-2496c52449169f0caaba086ca3098b11708e5ba2.tar.gz | |
Fix StyledNode caching
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/engine.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index b15f27b1..1596add2 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -624,7 +624,7 @@ proc getTextBox(computed: CSSComputedValues): InlineBoxBuilder = proc getMarkerBox(computed: CSSComputedValues, listItemCounter: int): MarkerBoxBuilder = new(result) result.inlinelayout = true - result.computed = computed + result.computed = computed.copyProperties() result.computed.setDisplay(DISPLAY_INLINE) if result.computed{"display"} == DISPLAY_LIST_ITEM: |