mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Delete unused LineBoxFragment::absolute_rect()
This commit is contained in:
parent
72320be124
commit
a7dc40eff3
Notes:
github-actions[bot]
2024-11-10 00:28:39 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: a7dc40eff3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2260
2 changed files with 0 additions and 9 deletions
|
@ -67,14 +67,6 @@ StringView LineBoxFragment::text() const
|
|||
return verify_cast<TextNode>(layout_node()).text_for_rendering().bytes_as_string_view().substring_view(m_start, m_length);
|
||||
}
|
||||
|
||||
CSSPixelRect const LineBoxFragment::absolute_rect() const
|
||||
{
|
||||
CSSPixelRect rect { {}, size() };
|
||||
rect.set_location(m_layout_node->containing_block()->paintable_box()->absolute_position());
|
||||
rect.translate_by(offset());
|
||||
return rect;
|
||||
}
|
||||
|
||||
bool LineBoxFragment::is_atomic_inline() const
|
||||
{
|
||||
return layout_node().is_replaced_box() || (layout_node().display().is_inline_outside() && !layout_node().display().is_flow_inside());
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
Node const& layout_node() const { return m_layout_node; }
|
||||
int start() const { return m_start; }
|
||||
int length() const { return m_length; }
|
||||
CSSPixelRect const absolute_rect() const;
|
||||
|
||||
CSSPixelPoint offset() const;
|
||||
CSSPixels inline_offset() const { return m_inline_offset; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue