1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

LibWeb: Implement CalculatedStyleValue::to_string()

This commit is contained in:
Sam Atkins 2022-02-02 15:34:13 +00:00 committed by Andreas Kling
parent 714832e705
commit cbdbe0c5a2
3 changed files with 95 additions and 8 deletions

View file

@ -2124,8 +2124,7 @@ RefPtr<StyleValue> Parser::parse_calculated_value(Vector<StyleComponentValueRule
};
dbgln_if(CSS_PARSER_DEBUG, "Deduced calc() resolved type as: {}", to_string(calc_type.value()));
// FIXME: Either produce a string value of calc() here, or do so in CalculatedStyleValue::to_string().
return CalculatedStyleValue::create("(FIXME:calc to string)", calc_expression.release_nonnull(), calc_type.release_value());
return CalculatedStyleValue::create(calc_expression.release_nonnull(), calc_type.release_value());
}
RefPtr<StyleValue> Parser::parse_dynamic_value(StyleComponentValueRule const& component_value)