mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibWeb: Rename wrap_breaks to respect_linebreaks
This more clearly expresses the purpose of this flag. Since only CSS::WhiteSpace::Nowrap sets this value to false and it does not respect linebreaks, this made the most sense as a flag name.
This commit is contained in:
parent
0342fe4e0c
commit
27c5eb66f1
2 changed files with 15 additions and 15 deletions
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
class ChunkIterator {
|
||||
public:
|
||||
ChunkIterator(StringView const& text, LayoutMode, bool wrap_lines, bool wrap_breaks);
|
||||
ChunkIterator(StringView const& text, LayoutMode, bool wrap_lines, bool respect_linebreaks);
|
||||
Optional<Chunk> next();
|
||||
|
||||
private:
|
||||
|
@ -45,7 +45,7 @@ public:
|
|||
|
||||
const LayoutMode m_layout_mode;
|
||||
const bool m_wrap_lines;
|
||||
const bool m_wrap_breaks;
|
||||
const bool m_respect_linebreaks;
|
||||
bool m_last_was_space { false };
|
||||
bool m_last_was_newline { false };
|
||||
Utf8View m_utf8_view;
|
||||
|
@ -60,7 +60,7 @@ private:
|
|||
virtual void handle_mousedown(Badge<EventHandler>, const Gfx::IntPoint&, unsigned button, unsigned modifiers) override;
|
||||
virtual void handle_mouseup(Badge<EventHandler>, const Gfx::IntPoint&, unsigned button, unsigned modifiers) override;
|
||||
virtual void handle_mousemove(Badge<EventHandler>, const Gfx::IntPoint&, unsigned button, unsigned modifiers) override;
|
||||
void split_into_lines_by_rules(InlineFormattingContext&, LayoutMode, bool do_collapse, bool do_wrap_lines, bool do_wrap_breaks);
|
||||
void split_into_lines_by_rules(InlineFormattingContext&, LayoutMode, bool do_collapse, bool do_wrap_lines, bool do_respect_linebreaks);
|
||||
void paint_cursor_if_needed(PaintContext&, const LineBoxFragment&) const;
|
||||
void paint_text_decoration(Gfx::Painter&, LineBoxFragment const&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue