mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
DevTools: Inspect node styles (#33025)
* feat: retrieve applied styles Signed-off-by: eri <eri@inventati.org> * feat: preliminary style showing Signed-off-by: eri <eri@inventati.org> * chore: some style tests Signed-off-by: eri <eri@inventati.org> * feat: edit style rules Signed-off-by: eri <eri@inventati.org> * feat: css database Signed-off-by: eri <eri@inventati.org> * feat: computed styles Signed-off-by: eri <eri@inventati.org> * feat: inherited styles Signed-off-by: eri <eri@inventati.org> * feat: get stylesheet styles Signed-off-by: eri <eri@inventati.org> * feat: all styles in inspector Signed-off-by: eri <eri@inventati.org> * feat: multiple stylesheets Signed-off-by: eri <eri@inventati.org> * refactor: clean up Signed-off-by: eri <eri@inventati.org> * Some minor cleanup Signed-off-by: Martin Robinson <mrobinson@igalia.com> --------- Signed-off-by: eri <eri@inventati.org> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
67e2bb0ee6
commit
6357998ede
12 changed files with 810 additions and 200 deletions
|
@ -2531,12 +2531,33 @@ impl ScriptThread {
|
|||
DevtoolScriptControlMsg::GetChildren(id, node_id, reply) => {
|
||||
devtools::handle_get_children(&documents, id, node_id, reply)
|
||||
},
|
||||
DevtoolScriptControlMsg::GetAttributeStyle(id, node_id, reply) => {
|
||||
devtools::handle_get_attribute_style(&documents, id, node_id, reply)
|
||||
},
|
||||
DevtoolScriptControlMsg::GetStylesheetStyle(
|
||||
id,
|
||||
node_id,
|
||||
selector,
|
||||
stylesheet,
|
||||
reply,
|
||||
) => devtools::handle_get_stylesheet_style(
|
||||
&documents, id, node_id, selector, stylesheet, reply,
|
||||
),
|
||||
DevtoolScriptControlMsg::GetSelectors(id, node_id, reply) => {
|
||||
devtools::handle_get_selectors(&documents, id, node_id, reply)
|
||||
},
|
||||
DevtoolScriptControlMsg::GetComputedStyle(id, node_id, reply) => {
|
||||
devtools::handle_get_computed_style(&documents, id, node_id, reply)
|
||||
},
|
||||
DevtoolScriptControlMsg::GetLayout(id, node_id, reply) => {
|
||||
devtools::handle_get_layout(&documents, id, node_id, reply)
|
||||
},
|
||||
DevtoolScriptControlMsg::ModifyAttribute(id, node_id, modifications) => {
|
||||
devtools::handle_modify_attribute(&documents, id, node_id, modifications)
|
||||
},
|
||||
DevtoolScriptControlMsg::ModifyRule(id, node_id, modifications) => {
|
||||
devtools::handle_modify_rule(&documents, id, node_id, modifications)
|
||||
},
|
||||
DevtoolScriptControlMsg::WantsLiveNotifications(id, to_send) => match documents
|
||||
.find_window(id)
|
||||
{
|
||||
|
@ -2553,6 +2574,9 @@ impl ScriptThread {
|
|||
devtools::handle_request_animation_frame(&documents, id, name)
|
||||
},
|
||||
DevtoolScriptControlMsg::Reload(id) => devtools::handle_reload(&documents, id),
|
||||
DevtoolScriptControlMsg::GetCssDatabase(reply) => {
|
||||
devtools::handle_get_css_database(reply)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue