LibWeb: Convert numeric tokens to numbers in CSS Tokenizer

The spec wants us to produce numeric values as the Tokenizer sees them,
rather than waiting until the parse stage. This is a first step towards
that.
This commit is contained in:
Sam Atkins 2021-11-17 21:01:51 +00:00 committed by Andreas Kling
commit f6869797a7
Notes: sideshowbarker 2024-07-18 00:59:49 +09:00
3 changed files with 90 additions and 5 deletions

View file

@ -152,6 +152,7 @@ private:
StringBuilder m_unit;
HashType m_hash_type { HashType::Unrestricted };
NumberType m_number_type { NumberType::Integer };
double m_number_value { 0 };
Position m_start_position;
Position m_end_position;