mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
Currently, the `web_font_finished_loading_callback` sends a `ScriptThreadMessage::WebFontLoaded` message regardless of whether web font loading succeeds or not, which leads to dirtying all nodes in `script_thread.rs`. This creates unnecessary reflow. This PR removes the boolean field from the `WebFontLoaded` message and only sends the message when the web font loading is successful. Testing: Existing WPT tests Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>