mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/CSS: Avoid URL validity check parsing CSS URLs
This commit is contained in:
parent
733dfdaa05
commit
f48b760011
|
|
@ -1871,9 +1871,9 @@ bool Parser::is_parsing_svg_presentation_attribute() const
|
|||
// FIXME: URLs shouldn't be completed during parsing, but when used.
|
||||
Optional<::URL::URL> Parser::complete_url(StringView relative_url) const
|
||||
{
|
||||
if (!m_url.is_valid())
|
||||
if (!m_url.has_value())
|
||||
return ::URL::Parser::basic_parse(relative_url);
|
||||
return m_url.complete_url(relative_url);
|
||||
return m_url->complete_url(relative_url);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ private:
|
|||
|
||||
GC::Ptr<DOM::Document const> m_document;
|
||||
GC::Ptr<JS::Realm> m_realm;
|
||||
::URL::URL m_url;
|
||||
Optional<::URL::URL> m_url;
|
||||
ParsingMode m_parsing_mode { ParsingMode::Normal };
|
||||
|
||||
Vector<Token> m_tokens;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user