aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-01-25 15:01:53 -0500
committerJosh Matthews <josh@joshmatthews.net>2016-01-26 16:37:23 -0500
commit7eca462c5a5fa613e54a09df6c5c5215b4b9762e (patch)
tree28a83ecd977dfd5ff9e94d8af52a0234d9ea7ee5 /components/script/script_thread.rs
parente5a1af5b7ae276a3a47c4b6c5a85b210ab7753a1 (diff)
downloadservo-7eca462c5a5fa613e54a09df6c5c5215b4b9762e.tar.gz
servo-7eca462c5a5fa613e54a09df6c5c5215b4b9762e.zip
Make iframe's load event trigger a reflow of the enclosing window. Add a catch-all reflow for all same-origin pages sharing an event loop.a
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index ef55e608be8..4cae85da9ba 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1028,6 +1028,14 @@ impl ScriptThread {
window.reflow(ReflowGoal::ForDisplay,
ReflowQueryType::NoQuery,
ReflowReason::ImageLoaded);
+ } else {
+ // Reflow currently happens when explicitly invoked by code that
+ // knows the document could have been modified. This should really
+ // be driven by the compositor on an as-needed basis instead, to
+ // minimize unnecessary work.
+ window.reflow(ReflowGoal::ForDisplay,
+ ReflowQueryType::NoQuery,
+ ReflowReason::MissingExplicitReflow);
}
}
}