mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Implement ImageStyleValue parsing
Later we will want to make a distinction between URL and Image values, but this works for now.
This commit is contained in:
parent
82f3228dd2
commit
6e08b200d4
Notes:
sideshowbarker
2024-07-18 08:31:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6e08b200d4
Pull-request: https://github.com/SerenityOS/serenity/pull/8932
3 changed files with 36 additions and 6 deletions
|
@ -76,6 +76,12 @@ public:
|
|||
return m_value.string_view();
|
||||
}
|
||||
|
||||
StringView url() const
|
||||
{
|
||||
VERIFY(m_type == Type::Url);
|
||||
return m_value.string_view();
|
||||
}
|
||||
|
||||
bool is(NumberType number_type) const { return is(Token::Type::Number) && m_number_type == number_type; }
|
||||
|
||||
int integer() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue