mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb/CSS: Introduce a base class for LCH-based color values
This will be used by both CSSLCH and CSSOKLCH.
This commit is contained in:
parent
7a94709cd2
commit
e8fc731b8c
Notes:
github-actions[bot]
2024-10-28 22:38:10 +00:00
Author: https://github.com/LucasChollet
Commit: e8fc731b8c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2013
5 changed files with 38 additions and 28 deletions
|
@ -49,8 +49,8 @@
|
|||
#include <LibWeb/CSS/StyleValues/CSSHSL.h>
|
||||
#include <LibWeb/CSS/StyleValues/CSSHWB.h>
|
||||
#include <LibWeb/CSS/StyleValues/CSSKeywordValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/CSSLCHLike.h>
|
||||
#include <LibWeb/CSS/StyleValues/CSSLabLike.h>
|
||||
#include <LibWeb/CSS/StyleValues/CSSOKLCH.h>
|
||||
#include <LibWeb/CSS/StyleValues/CSSRGB.h>
|
||||
#include <LibWeb/CSS/StyleValues/ContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/CounterDefinitionsStyleValue.h>
|
||||
|
@ -3399,7 +3399,7 @@ RefPtr<CSSStyleValue> Parser::parse_oklch_color_value(TokenStream<ComponentValue
|
|||
|
||||
auto& color_values = *maybe_color_values;
|
||||
|
||||
return CSSOKLCH::create(color_values[0].release_nonnull(),
|
||||
return CSSLCHLike::create<CSSOKLCH>(color_values[0].release_nonnull(),
|
||||
color_values[1].release_nonnull(),
|
||||
color_values[2].release_nonnull(),
|
||||
color_values[3].release_nonnull());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue