LibWeb/CSS: Rename Declaration.original_text -> original_value_text

Otherwise this will conflict with a different original text that I'm
about to add.
This commit is contained in:
Sam Atkins 2025-12-01 13:55:56 +00:00
parent faba11f33c
commit 8d5eac28a4
Notes: github-actions[bot] 2025-12-02 09:51:03 +00:00
3 changed files with 5 additions and 5 deletions

View file

@ -1161,7 +1161,7 @@ Optional<Declaration> Parser::consume_a_declaration(TokenStream<T>& input, Neste
for (auto const& value : declaration.value) {
original_text.append(value.original_source_text());
}
declaration.original_text = original_text.to_string_without_validation();
declaration.original_value_text = original_text.to_string_without_validation();
}
// Otherwise, if decls value contains a top-level simple block with an associated token of <{-token>,
// and also contains any other non-<whitespace-token> value, return nothing.
@ -1647,7 +1647,7 @@ Optional<StylePropertyAndName> Parser::convert_to_style_property(Declaration con
}
auto value_token_stream = TokenStream(declaration.value);
auto value = parse_css_value(property->id(), value_token_stream, declaration.original_text);
auto value = parse_css_value(property->id(), value_token_stream, declaration.original_value_text);
if (value.is_error()) {
if (value.error() == ParseError::SyntaxError) {
ErrorReporter::the().report(InvalidPropertyError {