1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

LibWeb: Rename parse_css() -> parse_css_stylesheet()

This commit is contained in:
Sam Atkins 2022-03-29 12:42:57 +01:00 committed by Andreas Kling
parent 820a653725
commit 05bd0ca3ee
6 changed files with 7 additions and 7 deletions

View file

@ -97,7 +97,7 @@ void HTMLLinkElement::resource_did_load()
}
}
auto sheet = parse_css(CSS::ParsingContext(document(), resource()->url()), resource()->encoded_data());
auto sheet = parse_css_stylesheet(CSS::ParsingContext(document(), resource()->url()), resource()->encoded_data());
if (!sheet) {
dbgln_if(CSS_LOADER_DEBUG, "HTMLLinkElement: Failed to parse stylesheet: {}", resource()->url());
return;

View file

@ -126,7 +126,7 @@ void HTMLStyleElement::update_a_style_block()
// FIXME: This is a bit awkward, as the spec doesn't actually tell us when to parse the CSS text,
// so we just do it here and pass the parsed sheet to create_a_css_style_sheet().
auto sheet = parse_css(CSS::ParsingContext(document()), text_content());
auto sheet = parse_css_stylesheet(CSS::ParsingContext(document()), text_content());
if (!sheet)
return;