mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibWeb/CSS: Stub out a function for serializing ComponentValue sequences
This is very hacky and wrong, but it means there's one place to fix, instead of one for UnresolvedStyleValue, and one for invalid MediaFeatureValues which I'm about to implement.
This commit is contained in:
parent
987d510dbb
commit
fe7bac73f0
Notes:
github-actions[bot]
2025-05-23 09:19:41 +00:00
Author: https://github.com/AtkinsSJ
Commit: fe7bac73f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4817
3 changed files with 22 additions and 4 deletions
|
@ -7,8 +7,9 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "UnresolvedStyleValue.h"
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibWeb/CSS/Serialize.h>
|
||||
#include <LibWeb/CSS/StyleValues/UnresolvedStyleValue.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -17,7 +18,7 @@ String UnresolvedStyleValue::to_string(SerializationMode) const
|
|||
if (m_original_source_text.has_value())
|
||||
return *m_original_source_text;
|
||||
|
||||
return MUST(String::join(' ', m_values));
|
||||
return serialize_a_series_of_component_values(m_values, InsertWhitespace::Yes);
|
||||
}
|
||||
|
||||
bool UnresolvedStyleValue::equals(CSSStyleValue const& other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue