mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LibWeb: Introduce and parse CSS Ratio type
This is only used by media-queries, so for now we can skip adding/parsing a StyleValue for these.
This commit is contained in:
parent
e30bfabbca
commit
5f93f1c161
Notes:
sideshowbarker
2024-07-17 17:50:01 +09:00
Author: https://github.com/AtkinsSJ
Commit: 5f93f1c161
Pull-request: https://github.com/SerenityOS/serenity/pull/12914
5 changed files with 99 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <LibWeb/CSS/Parser/StyleFunctionRule.h>
|
||||
#include <LibWeb/CSS/Parser/StyleRule.h>
|
||||
#include <LibWeb/CSS/Parser/Tokenizer.h>
|
||||
#include <LibWeb/CSS/Ratio.h>
|
||||
#include <LibWeb/CSS/Selector.h>
|
||||
#include <LibWeb/CSS/StyleValue.h>
|
||||
#include <LibWeb/CSS/Supports.h>
|
||||
|
@ -243,6 +244,7 @@ private:
|
|||
Optional<Dimension> parse_dimension(StyleComponentValueRule const&);
|
||||
Optional<Color> parse_color(StyleComponentValueRule const&);
|
||||
Optional<Length> parse_length(StyleComponentValueRule const&);
|
||||
Optional<Ratio> parse_ratio(TokenStream<StyleComponentValueRule>&);
|
||||
|
||||
enum class AllowedDataUrlType {
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue