mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Delete unused LineBoxFragment::absolute_rect()
Some checks are pending
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
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: https://github.com/LadybirdBrowser/ladybird/commit/a7dc40eff33 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);
|
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
|
bool LineBoxFragment::is_atomic_inline() const
|
||||||
{
|
{
|
||||||
return layout_node().is_replaced_box() || (layout_node().display().is_inline_outside() && !layout_node().display().is_flow_inside());
|
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; }
|
Node const& layout_node() const { return m_layout_node; }
|
||||||
int start() const { return m_start; }
|
int start() const { return m_start; }
|
||||||
int length() const { return m_length; }
|
int length() const { return m_length; }
|
||||||
CSSPixelRect const absolute_rect() const;
|
|
||||||
|
|
||||||
CSSPixelPoint offset() const;
|
CSSPixelPoint offset() const;
|
||||||
CSSPixels inline_offset() const { return m_inline_offset; }
|
CSSPixels inline_offset() const { return m_inline_offset; }
|
||||||
|
|
Loading…
Reference in a new issue