mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement dump() for gecko nodes.
MozReview-Commit-ID: I1G65zpQoOm
This commit is contained in:
parent
291f393723
commit
b98bb241dc
1 changed files with 6 additions and 1 deletions
|
@ -126,7 +126,12 @@ impl<'ln> TNode for GeckoNode<'ln> {
|
|||
}
|
||||
|
||||
fn dump(self) {
|
||||
unimplemented!()
|
||||
if self.is_text_node() {
|
||||
println!("Text ({:?})", &self.0 as *const _);
|
||||
} else {
|
||||
let el = self.as_element().unwrap();
|
||||
println!("Element {} ({:?})", el.get_local_name(), &el.0 as *const _);
|
||||
}
|
||||
}
|
||||
|
||||
fn dump_style(self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue