mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Rename NewLayoutThreadInfo to LayoutThreadInit
Following the convention of our other init structs.
This commit is contained in:
parent
2058ac0c7f
commit
17ee21bf9d
3 changed files with 6 additions and 6 deletions
|
@ -75,7 +75,7 @@ use parking_lot::RwLock;
|
||||||
use profile_traits::mem::{self as profile_mem, Report, ReportKind, ReportsChan};
|
use profile_traits::mem::{self as profile_mem, Report, ReportKind, ReportsChan};
|
||||||
use profile_traits::time::{self as profile_time, profile, TimerMetadata};
|
use profile_traits::time::{self as profile_time, profile, TimerMetadata};
|
||||||
use profile_traits::time::{TimerMetadataFrameType, TimerMetadataReflowType};
|
use profile_traits::time::{TimerMetadataFrameType, TimerMetadataReflowType};
|
||||||
use script_layout_interface::message::{Msg, NewLayoutThreadInfo, NodesFromPointQueryType, Reflow};
|
use script_layout_interface::message::{Msg, LayoutThreadInit, NodesFromPointQueryType, Reflow};
|
||||||
use script_layout_interface::message::{QueryMsg, ReflowComplete, ReflowGoal, ScriptReflow};
|
use script_layout_interface::message::{QueryMsg, ReflowComplete, ReflowGoal, ScriptReflow};
|
||||||
use script_layout_interface::rpc::TextIndexResponse;
|
use script_layout_interface::rpc::TextIndexResponse;
|
||||||
use script_layout_interface::rpc::{LayoutRPC, OffsetParentResponse, StyleResponse};
|
use script_layout_interface::rpc::{LayoutRPC, OffsetParentResponse, StyleResponse};
|
||||||
|
@ -842,7 +842,7 @@ impl LayoutThread {
|
||||||
reports_chan.send(reports);
|
reports_chan.send(reports);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_layout_thread(&self, info: NewLayoutThreadInfo) {
|
fn create_layout_thread(&self, info: LayoutThreadInit) {
|
||||||
LayoutThread::create(
|
LayoutThread::create(
|
||||||
info.id,
|
info.id,
|
||||||
self.top_level_browsing_context_id,
|
self.top_level_browsing_context_id,
|
||||||
|
|
|
@ -118,7 +118,7 @@ use net_traits::{
|
||||||
};
|
};
|
||||||
use profile_traits::mem::{self as profile_mem, OpaqueSender, ReportsChan};
|
use profile_traits::mem::{self as profile_mem, OpaqueSender, ReportsChan};
|
||||||
use profile_traits::time::{self as profile_time, profile, ProfilerCategory};
|
use profile_traits::time::{self as profile_time, profile, ProfilerCategory};
|
||||||
use script_layout_interface::message::{self, Msg, NewLayoutThreadInfo, ReflowGoal};
|
use script_layout_interface::message::{self, Msg, LayoutThreadInit, ReflowGoal};
|
||||||
use script_traits::webdriver_msg::WebDriverScriptCommand;
|
use script_traits::webdriver_msg::WebDriverScriptCommand;
|
||||||
use script_traits::CompositorEvent::{
|
use script_traits::CompositorEvent::{
|
||||||
CompositionEvent, KeyboardEvent, MouseButtonEvent, MouseMoveEvent, ResizeEvent, TouchEvent,
|
CompositionEvent, KeyboardEvent, MouseButtonEvent, MouseMoveEvent, ResizeEvent, TouchEvent,
|
||||||
|
@ -1936,7 +1936,7 @@ impl ScriptThread {
|
||||||
let layout_pair = unbounded();
|
let layout_pair = unbounded();
|
||||||
let layout_chan = layout_pair.0.clone();
|
let layout_chan = layout_pair.0.clone();
|
||||||
|
|
||||||
let msg = message::Msg::CreateLayoutThread(NewLayoutThreadInfo {
|
let msg = message::Msg::CreateLayoutThread(LayoutThreadInit {
|
||||||
id: new_pipeline_id,
|
id: new_pipeline_id,
|
||||||
url: load_data.url.clone(),
|
url: load_data.url.clone(),
|
||||||
is_parent: false,
|
is_parent: false,
|
||||||
|
|
|
@ -82,7 +82,7 @@ pub enum Msg {
|
||||||
/// Creates a new layout thread.
|
/// Creates a new layout thread.
|
||||||
///
|
///
|
||||||
/// This basically exists to keep the script-layout dependency one-way.
|
/// This basically exists to keep the script-layout dependency one-way.
|
||||||
CreateLayoutThread(NewLayoutThreadInfo),
|
CreateLayoutThread(LayoutThreadInit),
|
||||||
|
|
||||||
/// Set the final Url.
|
/// Set the final Url.
|
||||||
SetFinalUrl(ServoUrl),
|
SetFinalUrl(ServoUrl),
|
||||||
|
@ -214,7 +214,7 @@ pub struct ScriptReflow {
|
||||||
pub dom_count: u32,
|
pub dom_count: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct NewLayoutThreadInfo {
|
pub struct LayoutThreadInit {
|
||||||
pub id: PipelineId,
|
pub id: PipelineId,
|
||||||
pub url: ServoUrl,
|
pub url: ServoUrl,
|
||||||
pub is_parent: bool,
|
pub is_parent: bool,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue