mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb/CSS: Return StringStyleValue's FlyString by reference
Most of the time this copy is completely unnecessary, so let's avoid it!
This commit is contained in:
parent
2516297c86
commit
f7f8d2fe0d
Notes:
github-actions[bot]
2024-10-02 15:38:04 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/f7f8d2fe0d2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1599
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
}
|
||||
virtual ~StringStyleValue() override = default;
|
||||
|
||||
FlyString string_value() const { return m_string; }
|
||||
FlyString const& string_value() const { return m_string; }
|
||||
String to_string() const override { return serialize_a_string(m_string); }
|
||||
|
||||
bool properties_equal(StringStyleValue const& other) const { return m_string == other.m_string; }
|
||||
|
|
Loading…
Reference in a new issue