mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
AK+Everywhere: Replace "protocol" with "scheme" url helpers
URL had properly named replacements for protocol(), set_protocol() and create_with_file_protocol() already. This patch removes these function and updates all call sites to use the functions named according to the specification. See https://url.spec.whatwg.org/#concept-url-scheme
This commit is contained in:
parent
454bf1fde0
commit
4230dbbb21
61 changed files with 113 additions and 116 deletions
|
@ -1383,7 +1383,7 @@ void StyleComputer::load_fonts_from_sheet(CSSStyleSheet const& sheet)
|
|||
if (!source.url.is_valid())
|
||||
continue;
|
||||
|
||||
if (source.url.protocol() != "data") {
|
||||
if (source.url.scheme() != "data") {
|
||||
auto path = source.url.path();
|
||||
if (!path.ends_with(".woff"sv, AK::CaseSensitivity::CaseInsensitive)
|
||||
&& !path.ends_with(".ttf"sv, AK::CaseSensitivity::CaseInsensitive)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue