Skip to content

Make append_atom_to_line private - #736

Merged
tomcur merged 2 commits into
linebender:mainfrom
tomcur:private-method
Aug 7, 2026
Merged

Make append_atom_to_line private#736
tomcur merged 2 commits into
linebender:mainfrom
tomcur:private-method

Conversation

@tomcur

@tomcur tomcur commented Aug 6, 2026

Copy link
Copy Markdown
Member

This can't usefully be called externally. The user has nothing they could pass to this method.

Comment thread CHANGELOG.md
Shaped clusters that cross grapheme boundaries are represented using the existing `Cluster::is_ligature_start` and `Cluster::is_ligature_continuation`; note these methods previously encoded graphemes as well.
Shaped clusters' advances are split evenly over the grapheme clusters they overlap.
`Run::cluster_range` now returns grapheme cluster indices relative to the run's shaped run.
`BreakerState::append_cluster_to_line` was replaced by `BreakerState::append_atom_to_line`.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed this part of the changelog entry from #715, as I think effectively no-one called this method before #715 either: it already was pointless and probably would just corrupt state.

@nicoburns nicoburns left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not using append_cluster_to_line, but Blitz is using BreakerState::append_inline_box_to_line. Hopefully that's still available.

@tomcur

tomcur commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

but Blitz is using BreakerState::append_inline_box_to_line. Hopefully that's still available

Yep!

@tomcur
tomcur added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 6, 2026
@tomcur
tomcur added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 6, 2026
@DJMcNab
DJMcNab added this pull request to the merge queue Aug 7, 2026
@DJMcNab
DJMcNab removed this pull request from the merge queue due to a manual request Aug 7, 2026
@DJMcNab

DJMcNab commented Aug 7, 2026

Copy link
Copy Markdown
Member

It failed due to GitHub's incident today, but I realise that you should probably merge it even still Tom - I don't have a need to get this in that couple of hours later, and I haven't actually reviewed it myself, although I'm sure it's fine.

@tomcur
tomcur added this pull request to the merge queue Aug 7, 2026
Merged via the queue into linebender:main with commit 53551bb Aug 7, 2026
24 checks passed
@tomcur
tomcur deleted the private-method branch August 7, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants