mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Serialize StringStyleValue with quotes
In order to access the string's contents, use the new `StringStyleValue::string_value()` method. I think I found all the existing places that relied on `StringStyleValue::to_string()` returning an unquoted string, but it's hard to know for sure until things break.
This commit is contained in:
@@ -19,7 +19,8 @@ public:
|
||||
}
|
||||
virtual ~StringStyleValue() override = default;
|
||||
|
||||
String to_string() const override { return m_string; }
|
||||
String 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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user