mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
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:
parent
d2ef8b29e8
commit
f6869797a7
Notes:
sideshowbarker
2024-07-18 00:59:49 +09:00
Author: https://github.com/AtkinsSJ
Commit: f6869797a7
Pull-request: https://github.com/SerenityOS/serenity/pull/10956
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 90 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue