mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
|
@ -63,7 +63,6 @@ GC_DEFINE_ALLOCATOR(FontFace);
|
|||
GC::Ref<FontFace> FontFace::construct_impl(JS::Realm& realm, String family, FontFaceSource source, FontFaceDescriptors const& descriptors)
|
||||
{
|
||||
auto& vm = realm.vm();
|
||||
auto base_url = HTML::relevant_settings_object(realm.global_object()).api_base_url();
|
||||
|
||||
// 1. Let font face be a fresh FontFace object. Set font face’s status attribute to "unloaded",
|
||||
// Set its internal [[FontStatusPromise]] slot to a fresh pending Promise object.
|
||||
|
@ -76,7 +75,7 @@ GC::Ref<FontFace> FontFace::construct_impl(JS::Realm& realm, String family, Font
|
|||
// set font face’s corresponding attributes to the empty string, and set font face’s status attribute to "error".
|
||||
// Otherwise, set font face’s corresponding attributes to the serialization of the parsed values.
|
||||
|
||||
Parser::ParsingParams parsing_params { realm, base_url };
|
||||
Parser::ParsingParams parsing_params { realm };
|
||||
auto try_parse_descriptor = [&parsing_params, &font_face, &realm](DescriptorID descriptor_id, String const& string) -> String {
|
||||
auto result = parse_css_descriptor(parsing_params, AtRuleID::FontFace, descriptor_id, string);
|
||||
if (!result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue