mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Make storage of CSS::CalculationNodes const-correct
Now we consistently use `RefPtr<CalculationNode const>` for all CalculationNodes.
This commit is contained in:
parent
6d11414957
commit
d1f6f5649e
Notes:
github-actions[bot]
2025-04-16 16:44:26 +00:00
Author: https://github.com/ADKaster
Commit: d1f6f5649e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
7 changed files with 278 additions and 278 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue