diff options
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 18426b42ab1..eaf68a380de 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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 { |