Move Element::get_attr to a trait defined in util::tree

… and add a get_local_name() method to that trait.
This commit is contained in:
Simon Sapin 2013-10-16 16:47:04 +01:00
parent f38b4ab9bb
commit 62f1f03c16
10 changed files with 32 additions and 13 deletions

View file

@ -24,7 +24,7 @@ use html::hubbub_html_parser::build_element_from_tag;
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSTRACE_OBJECT, JSTracer, JS_CallTracer};
use js::glue::RUST_OBJECT_TO_JSVAL;
use servo_util::tree::TreeNodeRef;
use servo_util::tree::{TreeNodeRef, ElementLike};
use std::hashmap::HashMap;