diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-06-25 05:40:23 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-06-25 05:40:23 +1000 |
commit | 4b3962e6c7d84b3f3bfe5836f74fb15a55488f33 (patch) | |
tree | 44b2de4de6f7d6b42c03333132f1593a414e5831 /components/script/dom/document.rs | |
parent | 3e90a60170ba7f46a06ea6ad2e658dcf2b24d557 (diff) | |
download | servo-4b3962e6c7d84b3f3bfe5836f74fb15a55488f33.tar.gz servo-4b3962e6c7d84b3f3bfe5836f74fb15a55488f33.zip |
Trigger reflow after rAF callbacks.
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 { |