fonts: Remove synchronous web font loading functionality (#35000)

Synchronous web font loading is not specification compliant and was
added in #8341 to work around issues that do not exist any longer. This
change removes the functionality and ensures that WPT tests are run with
the spec compliant loader.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-01-15 12:16:43 +01:00 committed by GitHub
parent 5140ce81f0
commit 28c9ceedf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 4 additions and 49 deletions

View file

@ -177,9 +177,6 @@ pub struct DebugOptions {
/// Log GC passes and their durations.
pub gc_profile: bool,
/// Load web fonts synchronously to avoid non-deterministic network-driven reflows.
pub load_webfonts_synchronously: bool,
/// Show webrender profiling stats on screen.
pub webrender_stats: bool,
@ -209,7 +206,6 @@ impl DebugOptions {
"dump-rule-tree" => self.dump_rule_tree = true,
"dump-style-tree" => self.dump_style_tree = true,
"gc-profile" => self.gc_profile = true,
"load-webfonts-synchronously" => self.load_webfonts_synchronously = true,
"precache-shaders" => self.precache_shaders = true,
"profile-script-events" => self.profile_script_events = true,
"relayout-event" => self.relayout_event = true,