diff options
author | bptato <nincsnevem662@gmail.com> | 2025-01-01 15:25:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-01-01 15:25:50 +0100 |
commit | d94270baf61881af500c4ebf498708aad5835040 (patch) | |
tree | 5ab6f1efce0199e6272bf1a090341121fbbb9e5a /src | |
parent | e45ceaf646fed961d58a8aef98c125ed50366155 (diff) | |
download | chawan-d94270baf61881af500c4ebf498708aad5835040.tar.gz |
layout: add missing StyledNode ref to parent inline boxes
this broke gotoAnchor in some cases
Diffstat (limited to 'src')
-rw-r--r-- | src/css/layout.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index 7d76e704..3c41bbeb 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -3265,7 +3265,8 @@ proc buildInlineBoxes(ctx: var InnerBlockContext; styledNode: StyledNode; let parent = InlineBox( t: ibtParent, computed: computed, - splitType: {stSplitStart} + splitType: {stSplitStart}, + node: styledNode ) if ctx.inlineStack.len == 0: ctx.addInlineRoot(parent) |