diff options
author | bptato <nincsnevem662@gmail.com> | 2024-11-28 17:54:47 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-11-28 17:57:28 +0100 |
commit | bbdf30b6cf83401b6a932feae44892732819e798 (patch) | |
tree | 30e2d39dc3be622a1b0998e363eed2f435bf1103 /src | |
parent | bd38cbbc7068737214129cc5365ee8d4bfecda9c (diff) | |
download | chawan-bbdf30b6cf83401b6a932feae44892732819e798.tar.gz |
layout: remove mystery startOffset adjustment
Probably a remnant from back when startOffset meant (and was used for) something different. Interestingly, there was already a test case for this, but it was also wrong.
Diffstat (limited to 'src')
-rw-r--r-- | src/css/layout.nim | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index def840c6..a937a6a2 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -1664,8 +1664,6 @@ proc layoutInline(ictx: var InlineContext; fragment: InlineFragment) = x = ictx.lbstate.widthAfterWhitespace, y = ictx.lbstate.offsety ) - if ictx.lbstate.atoms.len > 0: - fragment.state.startOffset.y += ictx.cellHeight ictx.lbstate.size.w += padding.start var state = InlineState(fragment: fragment) if stSplitStart in fragment.splitType and |