mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibWeb: Move length-unit-from-string code into Length
This means the units are defined in a single place instead of two. Also removed the verify that we didn't produce a bogus % dimension token in the Tokenizer, since this has never happened and the parser is not a tokenizer test suite. :^)
This commit is contained in:
parent
608bfac2a9
commit
f76a541819
Notes:
sideshowbarker
2024-07-17 18:19:58 +09:00
Author: https://github.com/AtkinsSJ
Commit: f76a541819
Pull-request: https://github.com/SerenityOS/serenity/pull/12727
3 changed files with 41 additions and 38 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
Vmin,
|
||||
};
|
||||
|
||||
static Optional<Type> unit_from_name(StringView);
|
||||
|
||||
// We have a RefPtr<CalculatedStyleValue> member, but can't include the header StyleValue.h as it includes
|
||||
// this file already. To break the cyclic dependency, we must move all method definitions out.
|
||||
Length(int value, Type type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue