LibWeb: Make storage of CSS::CalculationNodes const-correct

Now we consistently use `RefPtr<CalculationNode const>` for all
CalculationNodes.
This commit is contained in:
Andrew Kaster 2025-04-15 15:21:37 -06:00 committed by Andrew Kaster
commit d1f6f5649e
Notes: github-actions[bot] 2025-04-16 16:44:26 +00:00
7 changed files with 278 additions and 278 deletions

View file

@ -20,7 +20,7 @@ String EdgeStyleValue::to_string(SerializationMode mode) const
// FIXME: Figure out how to get the proper calculation context here
CalculationContext context = {};
Vector<NonnullRefPtr<CalculationNode>> sum_parts;
Vector<NonnullRefPtr<CalculationNode const>> sum_parts;
sum_parts.append(NumericCalculationNode::create(Percentage(100), context));
if (offset().is_length()) {
sum_parts.append(NegateCalculationNode::create(NumericCalculationNode::create(offset().length(), context)));