mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb/CSS: Remove URL parameter to the CSS Parser
We no longer complete any URLs during parsing.
This commit is contained in:
parent
9e2e796f2d
commit
bc1d323ba0
Notes:
github-actions[bot]
2025-05-03 11:02:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: bc1d323ba0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4536
5 changed files with 3 additions and 35 deletions
|
@ -68,7 +68,7 @@ GC::Ref<CSSStyleSheet> StyleSheetList::create_a_css_style_sheet(String const& cs
|
|||
// AD-HOC: The spec never tells us when to parse this style sheet, but the most logical place is here.
|
||||
// AD-HOC: Are we supposed to use the document's URL for the stylesheet's location during parsing? Not doing it breaks things.
|
||||
auto location_url = location.value_or(document().url());
|
||||
auto sheet = parse_css_stylesheet(Parser::ParsingParams { document(), location_url }, css_text, location_url);
|
||||
auto sheet = parse_css_stylesheet(Parser::ParsingParams { document() }, css_text, location_url);
|
||||
|
||||
sheet->set_parent_css_style_sheet(parent_style_sheet);
|
||||
sheet->set_owner_css_rule(owner_rule);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue