mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Add mode flag to CSSStyleValue::to_string()
This will be used to differentiate between serialization for resolved style (i.e window.getComputedStyle()) and serialization for all other purposes.
This commit is contained in:
committed by
Sam Atkins
parent
c1b29e7cc4
commit
e85c3c97fb
@@ -36,7 +36,7 @@ Color CSSLCH::to_color(Optional<Layout::NodeWithStyle const&>) const
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-color-4/#serializing-lab-lch
|
||||
String CSSLCH::to_string() const
|
||||
String CSSLCH::to_string(SerializationMode) const
|
||||
{
|
||||
// FIXME: Do this properly, taking unresolved calculated values into account.
|
||||
return serialize_a_srgb_value(to_color({}));
|
||||
@@ -53,7 +53,7 @@ Color CSSOKLCH::to_color(Optional<Layout::NodeWithStyle const&>) const
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-color-4/#serializing-oklab-oklch
|
||||
String CSSOKLCH::to_string() const
|
||||
String CSSOKLCH::to_string(SerializationMode) const
|
||||
{
|
||||
// FIXME: Do this properly, taking unresolved calculated values into account.
|
||||
return serialize_a_srgb_value(to_color({}));
|
||||
|
||||
Reference in New Issue
Block a user