LibWeb: Remove StyleComputer::root_element_font_metrics_for_element

This method is now unused so can be removed
This commit is contained in:
Callum Law 2025-09-03 20:17:51 +12:00 committed by Sam Atkins
commit c6049e6853
Notes: github-actions[bot] 2025-09-19 09:09:02 +00:00
2 changed files with 0 additions and 9 deletions

View file

@ -3478,11 +3478,4 @@ void RuleCache::for_each_matching_rules(DOM::AbstractElement abstract_element, F
(void)callback(other_rules);
}
Length::FontMetrics const& StyleComputer::root_element_font_metrics_for_element(GC::Ptr<DOM::Element const> element) const
{
if (element && element->document().document_element() == element)
return m_default_font_metrics;
return m_root_element_font_metrics;
}
}