aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-06-10 15:32:30 +0200
committerGitHub <noreply@github.com>2024-06-10 13:32:30 +0000
commit35bbcc0d9519411dd1112dece8df19ddca51276c (patch)
treef16b6e6d17b39142bd1a969f1e1ae7869741b158 /components/script/dom/window.rs
parente6ea4a9c298c02138938c27851ccf9cca0523f67 (diff)
downloadservo-35bbcc0d9519411dd1112dece8df19ddca51276c.tar.gz
servo-35bbcc0d9519411dd1112dece8df19ddca51276c.zip
script: Remove explicit reflow for web font loads (#32455)
Instead of using an explicit reflow when a web font laods, queue a pending reflow. This should be able to eliminate multiple reflows some situations. A followup should ensure that only nodes that have pending fonts loading are reflows, but this change is the first step.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 5dbbc3f2377..a86dcfc4ed8 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -182,7 +182,6 @@ pub enum ReflowReason {
StylesheetLoaded,
Timer,
Viewport,
- WebFontLoaded,
WindowResize,
WorkletLoaded,
}