mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Rename PaintableFragment::m_start
and ::m_length
Make it extra clear that we're dealing with byte offsets here. No functional changes.
This commit is contained in:
parent
3df83dade8
commit
7beecaa43d
Notes:
github-actions[bot]
2025-06-13 13:09:41 +00:00
Author: https://github.com/gmta
Commit: 7beecaa43d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5067
Reviewed-by: https://github.com/tcl3
Reviewed-by: https://github.com/trflynn89
4 changed files with 26 additions and 26 deletions
|
@ -22,8 +22,8 @@ public:
|
|||
Layout::Node const& layout_node() const { return m_layout_node; }
|
||||
Paintable const& paintable() const { return *m_layout_node->first_paintable(); }
|
||||
|
||||
size_t start() const { return m_start; }
|
||||
size_t length() const { return m_length; }
|
||||
size_t start_byte_offset() const { return m_start_byte_offset; }
|
||||
size_t length_in_bytes() const { return m_length_in_bytes; }
|
||||
|
||||
CSSPixels baseline() const { return m_baseline; }
|
||||
CSSPixelPoint offset() const { return m_offset; }
|
||||
|
@ -58,8 +58,8 @@ private:
|
|||
CSSPixelPoint m_offset;
|
||||
CSSPixelSize m_size;
|
||||
CSSPixels m_baseline;
|
||||
size_t m_start;
|
||||
size_t m_length;
|
||||
size_t m_start_byte_offset;
|
||||
size_t m_length_in_bytes;
|
||||
RefPtr<Gfx::GlyphRun> m_glyph_run;
|
||||
CSS::WritingMode m_writing_mode;
|
||||
Vector<ShadowData> m_shadows;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue