mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script: Tell devtools whether a node is displayed or not (#38575)
Doing so makes the devtools inspector display the nodes in gray, as it is the case in firefox. The relevant node parameter already exists but is hardcoded. Before: <img width="1108" height="408" alt="image" src="https://github.com/user-attachments/assets/4a442fc9-92db-4a97-9e70-3b02f994a9d1" /> After: <img width="1169" height="404" alt="image" src="https://github.com/user-attachments/assets/ec1674a4-c025-4ceb-93c8-0cc3f695ddc7" /> Testing: We don't have tests for the devtools inspector. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
c4044e17bb
commit
4d7a0d3863
5 changed files with 16 additions and 15 deletions
|
@ -156,7 +156,6 @@ impl Actor for WalkerActor {
|
|||
.map(|child| {
|
||||
child.encode(
|
||||
registry,
|
||||
true,
|
||||
self.script_chan.clone(),
|
||||
self.pipeline,
|
||||
self.name(),
|
||||
|
@ -182,7 +181,6 @@ impl Actor for WalkerActor {
|
|||
.ok_or(ActorError::Internal)?;
|
||||
let node = doc_elem_info.encode(
|
||||
registry,
|
||||
true,
|
||||
self.script_chan.clone(),
|
||||
self.pipeline,
|
||||
self.name(),
|
||||
|
@ -319,7 +317,7 @@ pub fn find_child(
|
|||
let children = rx.recv().unwrap().ok_or(vec![])?;
|
||||
|
||||
for child in children {
|
||||
let msg = child.encode(registry, true, script_chan.clone(), pipeline, name.into());
|
||||
let msg = child.encode(registry, script_chan.clone(), pipeline, name.into());
|
||||
if compare_fn(&msg) {
|
||||
hierarchy.push(msg);
|
||||
return Ok(hierarchy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue