mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibWeb: Break friendship between CSS Function and Parser
Again, this means deviating from the spec by creating a complete Function in one go instead of creating it empty and then poking at its internals.
This commit is contained in:
parent
7d67e428a6
commit
d67e817d8e
4 changed files with 14 additions and 14 deletions
|
@ -622,7 +622,7 @@ bool StyleComputer::expand_unresolved_values(DOM::Element& element, StringView p
|
|||
Vector<Parser::ComponentValue> function_values;
|
||||
if (!expand_unresolved_values(element, property_name, dependencies, source_function.values(), function_values, 0))
|
||||
return false;
|
||||
NonnullRefPtr<Parser::Function> function = adopt_ref(*new Parser::Function(source_function.name(), move(function_values)));
|
||||
NonnullRefPtr<Parser::Function> function = Parser::Function::create(source_function.name(), move(function_values));
|
||||
dest.empend(function);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue