mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibWeb: Remove unused Layout::TextNode::ChunkIterator::m_layout_mode
This commit is contained in:
parent
42538b5375
commit
063d6cab8b
3 changed files with 4 additions and 6 deletions
|
@ -261,7 +261,7 @@ void InlineLevelIterator::enter_text_node(Layout::TextNode const& text_node)
|
||||||
.do_respect_linebreaks = do_respect_linebreaks,
|
.do_respect_linebreaks = do_respect_linebreaks,
|
||||||
.is_first_chunk = true,
|
.is_first_chunk = true,
|
||||||
.is_last_chunk = false,
|
.is_last_chunk = false,
|
||||||
.chunk_iterator = TextNode::ChunkIterator { text_node.text_for_rendering(), m_layout_mode, do_wrap_lines, do_respect_linebreaks },
|
.chunk_iterator = TextNode::ChunkIterator { text_node.text_for_rendering(), do_wrap_lines, do_respect_linebreaks },
|
||||||
};
|
};
|
||||||
m_text_node_context->next_chunk = m_text_node_context->chunk_iterator.next();
|
m_text_node_context->next_chunk = m_text_node_context->chunk_iterator.next();
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,9 +85,8 @@ void TextNode::compute_text_for_rendering(bool collapse)
|
||||||
m_text_for_rendering = builder.to_string();
|
m_text_for_rendering = builder.to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
TextNode::ChunkIterator::ChunkIterator(StringView text, LayoutMode layout_mode, bool wrap_lines, bool respect_linebreaks)
|
TextNode::ChunkIterator::ChunkIterator(StringView text, bool wrap_lines, bool respect_linebreaks)
|
||||||
: m_layout_mode(layout_mode)
|
: m_wrap_lines(wrap_lines)
|
||||||
, m_wrap_lines(wrap_lines)
|
|
||||||
, m_respect_linebreaks(respect_linebreaks)
|
, m_respect_linebreaks(respect_linebreaks)
|
||||||
, m_utf8_view(text)
|
, m_utf8_view(text)
|
||||||
, m_iterator(m_utf8_view.begin())
|
, m_iterator(m_utf8_view.begin())
|
||||||
|
|
|
@ -33,13 +33,12 @@ public:
|
||||||
|
|
||||||
class ChunkIterator {
|
class ChunkIterator {
|
||||||
public:
|
public:
|
||||||
ChunkIterator(StringView text, LayoutMode, bool wrap_lines, bool respect_linebreaks);
|
ChunkIterator(StringView text, bool wrap_lines, bool respect_linebreaks);
|
||||||
Optional<Chunk> next();
|
Optional<Chunk> next();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Optional<Chunk> try_commit_chunk(Utf8View::Iterator const& start, Utf8View::Iterator const& end, bool has_breaking_newline) const;
|
Optional<Chunk> try_commit_chunk(Utf8View::Iterator const& start, Utf8View::Iterator const& end, bool has_breaking_newline) const;
|
||||||
|
|
||||||
const LayoutMode m_layout_mode;
|
|
||||||
bool const m_wrap_lines;
|
bool const m_wrap_lines;
|
||||||
bool const m_respect_linebreaks;
|
bool const m_respect_linebreaks;
|
||||||
Utf8View m_utf8_view;
|
Utf8View m_utf8_view;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue