mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb: Remove StyleComputer::root_element_font_metrics_for_element
This method is now unused so can be removed
This commit is contained in:
parent
e9faf056f1
commit
c6049e6853
Notes:
github-actions[bot]
2025-09-19 09:09:02 +00:00
Author: https://github.com/Calme1709
Commit: c6049e6853
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6072
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 0 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue