mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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.
This commit is contained in:
parent
e6ea4a9c29
commit
35bbcc0d95
3 changed files with 8 additions and 8 deletions
|
@ -182,7 +182,6 @@ pub enum ReflowReason {
|
|||
StylesheetLoaded,
|
||||
Timer,
|
||||
Viewport,
|
||||
WebFontLoaded,
|
||||
WindowResize,
|
||||
WorkletLoaded,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue