LibWeb/CSS: Return unit names as FlyStrings

From the CSS token side, we already have these in FlyString form. From
the generated code side, we can easily return FlyStrings instead of
StringViews. So, let's do that, and save some work converting back and
forth.
This commit is contained in:
Sam Atkins
2025-09-11 11:50:59 +01:00
committed by Jelle Raaijmakers
parent 59c4076066
commit 995c19da56
Notes: github-actions[bot] 2025-09-12 11:47:21 +00:00
16 changed files with 23 additions and 23 deletions

View File

@@ -21,7 +21,7 @@ public:
Resolution const& resolution() const { return m_resolution; }
virtual double raw_value() const override { return m_resolution.raw_value(); }
virtual StringView unit_name() const LIFETIME_BOUND override { return m_resolution.unit_name(); }
virtual FlyString unit_name() const override { return m_resolution.unit_name(); }
virtual String to_string(SerializationMode serialization_mode) const override { return m_resolution.to_string(serialization_mode); }