mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
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:
committed by
Jelle Raaijmakers
parent
59c4076066
commit
995c19da56
Notes:
github-actions[bot]
2025-09-12 11:47:21 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/995c19da562 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6162 Reviewed-by: https://github.com/gmta ✅
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user