mirror of
https://github.com/servo/servo.git
synced 2025-06-17 12:54:28 +00:00
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 -->
This commit is contained in:
commit
db29cb01b0
1 changed files with 0 additions and 1 deletions
|
@ -2201,7 +2201,6 @@ impl Document {
|
||||||
window,
|
window,
|
||||||
);
|
);
|
||||||
|
|
||||||
window.reflow(ReflowGoal::Full, ReflowReason::DOMContentLoaded);
|
|
||||||
update_with_current_time_ms(&self.dom_content_loaded_event_end);
|
update_with_current_time_ms(&self.dom_content_loaded_event_end);
|
||||||
|
|
||||||
// html parsing has finished - set dom content loaded
|
// html parsing has finished - set dom content loaded
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue