diff options
author | Maciej <sppmacd@pm.me> | 2022-03-06 22:23:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-07 21:49:36 +0100 |
commit | 86c0961240ac23b8a7c42472b7c8b2ae2e5d2f69 (patch) | |
tree | b716da91143daf62bdb2d18654158c1b9f2277d3 | |
parent | baa6ff56497e583d706a2999134f6468f2f89b29 (diff) | |
download | serenity-86c0961240ac23b8a7c42472b7c8b2ae2e5d2f69.zip |
LibWeb: Make TextNode::ChunkIterator::try_commit_chunk() const
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TextNode.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TextNode.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TextNode.cpp b/Userland/Libraries/LibWeb/Layout/TextNode.cpp index 4374242f3f..a86ecf2533 100644 --- a/Userland/Libraries/LibWeb/Layout/TextNode.cpp +++ b/Userland/Libraries/LibWeb/Layout/TextNode.cpp @@ -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 {}; diff --git a/Userland/Libraries/LibWeb/Layout/TextNode.h b/Userland/Libraries/LibWeb/Layout/TextNode.h index 09a77334ad..fc1599402b 100644 --- a/Userland/Libraries/LibWeb/Layout/TextNode.h +++ b/Userland/Libraries/LibWeb/Layout/TextNode.h @@ -39,7 +39,7 @@ public: Optional<Chunk> next(); private: - Optional<Chunk> try_commit_chunk(Utf8View::Iterator const& start, Utf8View::Iterator const& end, bool has_breaking_newline, bool must_commit = false); + Optional<Chunk> try_commit_chunk(Utf8View::Iterator const& start, Utf8View::Iterator const& end, bool has_breaking_newline, bool must_commit = false) const; const LayoutMode m_layout_mode; const bool m_wrap_lines; |