Truly independent web browser
LibWeb: Share the numbers of parsed colors
Andreas Kling46379ff6767b
diff --git a/Libraries/LibWeb/Rust/src/css/parser/color_parser.rs b/Libraries/LibWeb/Rust/src/css/parser/color_parser.rsindex e9805459c73..e2e67b929a6 100644--- a/Libraries/LibWeb/Rust/src/css/parser/color_parser.rs+++ b/Libraries/LibWeb/Rust/src/css/parser/color_parser.rs@@ -48,7 +48,8 @@ fn color_base(color_type: Option<u8>, syntax: u8) -> ColorBase {}fn retained(value: StyleValueData) -> RetainedStyleValueData {- RetainedStyleValueData::from_owned(value)+ // NB: Shared, so the channels of colors written with whole numbers allocate nothing of their own.+ RetainedStyleValueData::from_arc(crate::css::style_value::shared_style_value(value))}fn retained_optional(value: Option<StyleValueData>) -> RetainedStyleValueData {