mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Add a way to resolve calc() values without a layout node
Instead of a layout node, you can pass a new Length::ResolutionContext struct which contains everything needed to resolve calc() lengths.
This commit is contained in:
parent
2ade229f27
commit
df8a96ee00
Notes:
sideshowbarker
2024-07-17 05:41:34 +09:00
Author: https://github.com/awesomekling
Commit: df8a96ee00
Pull-request: https://github.com/SerenityOS/serenity/pull/19227
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 107 additions and 75 deletions
|
@ -8022,7 +8022,7 @@ public:
|
|||
virtual ErrorOr<String> to_string() const override { VERIFY_NOT_REACHED(); }
|
||||
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override { VERIFY_NOT_REACHED(); }
|
||||
virtual bool contains_percentage() const override { VERIFY_NOT_REACHED(); }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Layout::Node const*, CalculatedStyleValue::PercentageBasis const&) const override { VERIFY_NOT_REACHED(); }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&>, CalculatedStyleValue::PercentageBasis const&) const override { VERIFY_NOT_REACHED(); }
|
||||
|
||||
virtual ErrorOr<void> dump(StringBuilder& builder, int indent) const override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue