aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmldocument.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-02-22 13:49:56 +0100
committerMs2ger <ms2ger@gmail.com>2014-02-24 22:17:33 +0100
commit7190feb5e3d62b37d59229c26966d0f864ddf479 (patch)
treeb7c11f3db8ef45065418b9e9a2aee4d96066a343 /src/components/script/dom/htmldocument.rs
parent2c8107e81132f2abc0e1d097903bedfab4eb5ceb (diff)
downloadservo-7190feb5e3d62b37d59229c26966d0f864ddf479.tar.gz
servo-7190feb5e3d62b37d59229c26966d0f864ddf479.zip
Move HTMLDocument members to Document.
Diffstat (limited to 'src/components/script/dom/htmldocument.rs')
-rw-r--r--src/components/script/dom/htmldocument.rs42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/components/script/dom/htmldocument.rs b/src/components/script/dom/htmldocument.rs
index 7b967d68bea..64bed6c211c 100644
--- a/src/components/script/dom/htmldocument.rs
+++ b/src/components/script/dom/htmldocument.rs
@@ -8,10 +8,8 @@ use dom::bindings::js::JS;
use dom::bindings::utils::{Reflectable, Reflector};
use dom::document::{Document, HTML, HTMLDocumentTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
-use dom::htmlcollection::HTMLCollection;
use dom::node::DocumentNodeTypeId;
use dom::window::Window;
-use servo_util::namespace::Null;
use extra::url::Url;
@@ -42,46 +40,6 @@ impl HTMLDocument {
}
}
-impl HTMLDocument {
- pub fn Images(&self) -> JS<HTMLCollection> {
- self.parent.createHTMLCollection(|elem| "img" == elem.tag_name)
- }
-
- pub fn Embeds(&self) -> JS<HTMLCollection> {
- self.parent.createHTMLCollection(|elem| "embed" == elem.tag_name)
- }
-
- pub fn Plugins(&self) -> JS<HTMLCollection> {
- self.Embeds()
- }
-
- pub fn Links(&self) -> JS<HTMLCollection> {
- self.parent.createHTMLCollection(|elem| {
- ("a" == elem.tag_name || "area" == elem.tag_name) &&
- elem.get_attribute(Null, "href").is_some()
- })
- }
-
- pub fn Forms(&self) -> JS<HTMLCollection> {
- self.parent.createHTMLCollection(|elem| "form" == elem.tag_name)
- }
-
- pub fn Scripts(&self) -> JS<HTMLCollection> {
- self.parent.createHTMLCollection(|elem| "script" == elem.tag_name)
- }
-
- pub fn Anchors(&self) -> JS<HTMLCollection> {
- self.parent.createHTMLCollection(|elem| {
- "a" == elem.tag_name && elem.get_attribute(Null, "name").is_some()
- })
- }
-
- pub fn Applets(&self) -> JS<HTMLCollection> {
- // FIXME: This should be return OBJECT elements containing applets.
- self.parent.createHTMLCollection(|elem| "applet" == elem.tag_name)
- }
-}
-
impl Reflectable for HTMLDocument {
fn reflector<'a>(&'a self) -> &'a Reflector {
self.parent.reflector()