aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-22 15:54:38 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-22 16:12:56 +0200
commit9d739cf684f0fcc59ae1e0e91ba804481e4d7aa2 (patch)
tree4ff7f0ed57f38351da27f3e7428dc030788b86e9 /components/script/script_task.rs
parentaf448374f9a177046d3c119333f757a60f3aa502 (diff)
downloadservo-9d739cf684f0fcc59ae1e0e91ba804481e4d7aa2.tar.gz
servo-9d739cf684f0fcc59ae1e0e91ba804481e4d7aa2.zip
Remove layout_is_idle.
Code on the script thread can only observe self.layout_join_port being Some() between the time it is set in force_reflow, and the join_layout call later in that function, and no significant code is called in that code. This implies that layout_is_idle will always return true, so there is no reason for the function to exist.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index a090d1c91ef..8426363a69e 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -712,12 +712,10 @@ impl ScriptTask {
for page in page.iter() {
// Only process a resize if layout is idle.
let window = page.window();
- if window.r().layout_is_idle() {
- let resize_event = window.r().steal_resize_event();
- match resize_event {
- Some(size) => resizes.push((window.r().pipeline(), size)),
- None => ()
- }
+ let resize_event = window.r().steal_resize_event();
+ match resize_event {
+ Some(size) => resizes.push((window.r().pipeline(), size)),
+ None => ()
}
}
}