mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
DevTools: Allow modification of attributes (#32888)
* feat: allow modification of attributes Signed-off-by: eri <eri@inventati.org> * fix: tidiness Signed-off-by: eri <eri@inventati.org> * feat: clean walker name generation Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: eri <eri@inventati.org> * fix: missed out parameter Signed-off-by: eri <eri@inventati.org> --------- Signed-off-by: eri <eri@inventati.org> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
4d49b04668
commit
babc844c93
5 changed files with 121 additions and 12 deletions
|
@ -235,6 +235,11 @@ pub fn handle_modify_attribute(
|
|||
node_id: String,
|
||||
modifications: Vec<Modification>,
|
||||
) {
|
||||
let Some(document) = documents.find_document(pipeline) else {
|
||||
return warn!("document for pipeline id {} is not found", &pipeline);
|
||||
};
|
||||
let _realm = enter_realm(document.window());
|
||||
|
||||
let node = match find_node_by_unique_id(documents, pipeline, &node_id) {
|
||||
None => {
|
||||
return warn!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue