File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ GC::Ref<CSSStyleSheet> StyleSheetList::create_a_css_style_sheet(String const& cs
66
66
{
67
67
// 1. Create a new CSS style sheet object and set its properties as specified.
68
68
// AD-HOC: The spec never tells us when to parse this style sheet, but the most logical place is here.
69
- // AD-HOC: Are we supposed to use the document's URL for the stylesheet's location during parsing? Not doing it breaks things.
70
- auto location_url = location.value_or (document ().url ());
71
- auto sheet = parse_css_stylesheet (Parser::ParsingParams { document () }, css_text, location_url);
69
+ auto sheet = parse_css_stylesheet (Parser::ParsingParams { document () }, css_text, location);
72
70
73
71
sheet->set_parent_css_style_sheet (parent_style_sheet);
74
72
sheet->set_owner_css_rule (owner_rule);
You can’t perform that action at this time.
0 commit comments