mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
fix constellation being inundated with messages from script.
script task sent RendererReadyMsg after every reflow. now, the renderer sends RendererReady at the appropriate time, and _only_ if it doesn't have paint permission.
This commit is contained in:
parent
84d731712f
commit
5f600f0ec0
4 changed files with 21 additions and 21 deletions
|
@ -21,7 +21,7 @@ use layout_interface::{ReflowDocumentDamage, ReflowForDisplay, ReflowGoal};
|
|||
use layout_interface::ReflowMsg;
|
||||
use layout_interface;
|
||||
use servo_msg::constellation_msg::{ConstellationChan, LoadUrlMsg, NavigationDirection};
|
||||
use servo_msg::constellation_msg::{PipelineId, SubpageId, RendererReadyMsg};
|
||||
use servo_msg::constellation_msg::{PipelineId, SubpageId};
|
||||
use servo_msg::constellation_msg::{LoadIframeUrlMsg, IFrameSandboxed, IFrameUnsandboxed};
|
||||
use servo_msg::constellation_msg;
|
||||
|
||||
|
@ -582,7 +582,6 @@ impl ScriptTask {
|
|||
if page_tree.page.last_reflow_id == reflow_id {
|
||||
page_tree.page.layout_join_port = None;
|
||||
}
|
||||
self.constellation_chan.send(RendererReadyMsg(pipeline_id));
|
||||
self.compositor.set_ready_state(FinishedLoading);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue