diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-28 18:15:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 18:15:15 +0200 |
commit | d413d0557d03c073251e2bb5ae45992567a3a0ec (patch) | |
tree | bda6180c1b6a249212a96a9318d4d8b3ee4111d5 /Userland/Libraries | |
parent | 23561133aa66172c72f955c6042e318e52a64d8d (diff) | |
download | serenity-d413d0557d03c073251e2bb5ae45992567a3a0ec.zip |
LibWeb: Remove unused CSS::Length::relative_length_to_px(Layout::Node)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Length.cpp | 7 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Length.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Length.cpp b/Userland/Libraries/LibWeb/CSS/Length.cpp index c1c1ae9624..80a8aa24d6 100644 --- a/Userland/Libraries/LibWeb/CSS/Length.cpp +++ b/Userland/Libraries/LibWeb/CSS/Length.cpp @@ -101,13 +101,6 @@ float Length::to_px(Layout::Node const& layout_node) const return to_px(viewport_rect, layout_node.font().metrics('M'), root_element->layout_node()->font().presentation_size()); } -float Length::relative_length_to_px(Layout::Node const& layout_node) const -{ - auto viewport_rect = layout_node.document().browsing_context()->viewport_rect(); - auto root_element = layout_node.document().document_element(); - return relative_length_to_px(viewport_rect, layout_node.font().metrics('M'), root_element->layout_node()->font().presentation_size()); -} - static float resolve_calc_value(CalculatedStyleValue::CalcValue const&, const Layout::Node& layout_node, float reference_for_percent); static float resolve_calc_number_value(CalculatedStyleValue::CalcNumberValue const&); static float resolve_calc_product(NonnullOwnPtr<CalculatedStyleValue::CalcProduct> const&, const Layout::Node& layout_node, float reference_for_percent); diff --git a/Userland/Libraries/LibWeb/CSS/Length.h b/Userland/Libraries/LibWeb/CSS/Length.h index 2fa50e4527..349a1a7ad3 100644 --- a/Userland/Libraries/LibWeb/CSS/Length.h +++ b/Userland/Libraries/LibWeb/CSS/Length.h @@ -137,7 +137,6 @@ public: float relative_length_to_px(Gfx::IntRect const& viewport_rect, Gfx::FontMetrics const& font_metrics, float root_font_size) const; private: - float relative_length_to_px(const Layout::Node&) const; float resolve_calculated_value(const Layout::Node& layout_node, float reference_for_percent) const; const char* unit_name() const; |