mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Trigger reflow after rAF callbacks.
This commit is contained in:
parent
3e90a60170
commit
4b3962e6c7
2 changed files with 6 additions and 0 deletions
|
@ -931,6 +931,10 @@ impl<'a> DocumentHelpers<'a> for &'a Document {
|
|||
for (_, callback) in animation_frame_list {
|
||||
callback(*performance.Now());
|
||||
}
|
||||
|
||||
window.reflow(ReflowGoal::ForDisplay,
|
||||
ReflowQueryType::NoQuery,
|
||||
ReflowReason::RequestAnimationFrame);
|
||||
}
|
||||
|
||||
fn prepare_async_load(self, load: LoadType) -> PendingAsyncLoad {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue