aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-03-08 13:27:10 -0500
committerGitHub <noreply@github.com>2019-03-08 13:27:10 -0500
commitdb29cb01b0450c29d0ac45c6de2819a4f87e400a (patch)
tree2b037a9d7af9e98ce4a4686ab02b4c83a897fd95 /components/script
parent34a5a824b8635d918425080dc54397671f4212a7 (diff)
parenta8683bc3d863511cc0517375e7febc8978965ece (diff)
downloadservo-db29cb01b0450c29d0ac45c6de2819a4f87e400a.tar.gz
servo-db29cb01b0450c29d0ac45c6de2819a4f87e400a.zip
Auto merge of #22995 - servo:jdm-patch-28, r=nox
Remove an unnecessary synchronous full reflow. We already reflow any nodes that are dirtied during any turn of the event loop. There is no reason to synchronously reflow the entire document, especially when we don't even modify it in this method. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22988 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22995) <!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/document.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 4a10298b7a1..110ce1b1199 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -2201,7 +2201,6 @@ impl Document {
window,
);
- window.reflow(ReflowGoal::Full, ReflowReason::DOMContentLoaded);
update_with_current_time_ms(&self.dom_content_loaded_event_end);
// html parsing has finished - set dom content loaded