Skip to content

Commit 4d84080

Browse files
AtkinsSJawesomekling
authored andcommitted
LibWeb: Implement "Determine the type of a calculation" algorithm
This is sitting alongside our old implementation for the moment.
1 parent 38f954c commit 4d84080

File tree

3 files changed

+332
-0
lines changed

3 files changed

+332
-0
lines changed

Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8770,6 +8770,7 @@ class UnparsedCalculationNode final : public CalculationNode {
87708770

87718771
virtual ErrorOr<String> to_string() const override { VERIFY_NOT_REACHED(); }
87728772
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override { VERIFY_NOT_REACHED(); }
8773+
virtual Optional<CSSNumericType> determine_type(Web::CSS::PropertyID) const override { VERIFY_NOT_REACHED(); }
87738774
virtual bool contains_percentage() const override { VERIFY_NOT_REACHED(); }
87748775
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&>, CalculatedStyleValue::PercentageBasis const&) const override { VERIFY_NOT_REACHED(); }
87758776

0 commit comments

Comments
 (0)