diff options
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r-- | components/script/devtools.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs index f0ec814cdc2..70bda654b80 100644 --- a/components/script/devtools.rs +++ b/components/script/devtools.rs @@ -91,7 +91,7 @@ fn find_node_by_unique_id(page: &Rc<Page>, pipeline: PipelineId, node_id: String let node = document.upcast::<Node>(); for candidate in node.traverse_preorder() { - if candidate.get_unique_id() == node_id { + if candidate.unique_id() == node_id { return candidate; } } @@ -167,7 +167,7 @@ pub fn handle_get_cached_messages(_pipeline_id: PipelineId, // TODO: make script error reporter pass all reported errors // to devtools and cache them for returning here. let msg = PageError { - _type: "PageError".to_owned(), + type_: "PageError".to_owned(), errorMessage: "page error test".to_owned(), sourceName: String::new(), lineText: String::new(), @@ -186,7 +186,7 @@ pub fn handle_get_cached_messages(_pipeline_id: PipelineId, if message_types.contains(CONSOLE_API) { // TODO: do for real let msg = ConsoleAPI { - _type: "ConsoleAPI".to_owned(), + type_: "ConsoleAPI".to_owned(), level: "error".to_owned(), filename: "http://localhost/~mihai/mozilla/test.html".to_owned(), lineNumber: 0, |