LibWeb/CSS: Pass location to parse_a_stylesheet()

This commit is contained in:
Sam Atkins 2025-04-08 15:33:53 +01:00 committed by Tim Ledbetter
parent 7216c6b050
commit bc02e3e9a9
Notes: github-actions[bot] 2025-04-09 17:47:49 +00:00

View file

@ -122,7 +122,7 @@ Vector<Rule> Parser::parse_a_stylesheets_contents(TokenStream<T>& input)
CSSStyleSheet* Parser::parse_as_css_stylesheet(Optional<::URL::URL> location, Vector<NonnullRefPtr<MediaQuery>> media_query_list)
{
// To parse a CSS stylesheet, first parse a stylesheet.
auto const& style_sheet = parse_a_stylesheet(m_token_stream, {});
auto const& style_sheet = parse_a_stylesheet(m_token_stream, location);
// Interpret all of the resulting top-level qualified rules as style rules, defined below.
GC::RootVector<CSSRule*> rules(realm().heap());