mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Make TextNode::ChunkIterator::try_commit_chunk() const
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 17:49:45 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/86c0961240 Pull-request: https://github.com/SerenityOS/serenity/pull/12927
@@ -344,7 +344,7 @@ Optional<TextNode::Chunk> TextNode::ChunkIterator::next()
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<TextNode::Chunk> TextNode::ChunkIterator::try_commit_chunk(Utf8View::Iterator const& start, Utf8View::Iterator const& end, bool has_breaking_newline, bool must_commit)
|
||||
Optional<TextNode::Chunk> TextNode::ChunkIterator::try_commit_chunk(Utf8View::Iterator const& start, Utf8View::Iterator const& end, bool has_breaking_newline, bool must_commit) const
|
||||
{
|
||||
if (m_layout_mode == LayoutMode::OnlyRequiredLineBreaks && !must_commit)
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user