mirror of
https://github.com/servo/servo.git
synced 2025-07-28 09:40:33 +01:00
Removed some sources of panic from script thread and devtools, using Option values instead to indicate when a pipeline context is missing where appropriate. Additionally, removed erroneous method get_browsing_context.
This commit is contained in:
parent
4b78b9adab
commit
2475dc1d21
7 changed files with 89 additions and 54 deletions
|
@ -194,13 +194,13 @@ pub enum DevtoolScriptControlMsg {
|
|||
/// Evaluate a JS snippet in the context of the global for the given pipeline.
|
||||
EvaluateJS(PipelineId, String, IpcSender<EvaluateJSReply>),
|
||||
/// Retrieve the details of the root node (ie. the document) for the given pipeline.
|
||||
GetRootNode(PipelineId, IpcSender<NodeInfo>),
|
||||
GetRootNode(PipelineId, IpcSender<Option<NodeInfo>>),
|
||||
/// Retrieve the details of the document element for the given pipeline.
|
||||
GetDocumentElement(PipelineId, IpcSender<NodeInfo>),
|
||||
GetDocumentElement(PipelineId, IpcSender<Option<NodeInfo>>),
|
||||
/// Retrieve the details of the child nodes of the given node in the given pipeline.
|
||||
GetChildren(PipelineId, String, IpcSender<Vec<NodeInfo>>),
|
||||
GetChildren(PipelineId, String, IpcSender<Option<Vec<NodeInfo>>>),
|
||||
/// Retrieve the computed layout properties of the given node in the given pipeline.
|
||||
GetLayout(PipelineId, String, IpcSender<ComputedNodeLayout>),
|
||||
GetLayout(PipelineId, String, IpcSender<Option<ComputedNodeLayout>>),
|
||||
/// Retrieve all stored console messages for the given pipeline.
|
||||
GetCachedMessages(PipelineId, CachedConsoleMessageTypes, IpcSender<Vec<CachedConsoleMessage>>),
|
||||
/// Update a given node's attributes with a list of modifications.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue