aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-05-11 20:37:55 +0200
committerMs2ger <ms2ger@gmail.com>2014-05-11 20:37:55 +0200
commit8e9e930e3d7867b3ec62ffb347dd7fa62e677ad5 (patch)
tree3f0413c621e919eeb9f78f9048d1e49d6c64712d /src/components/script/dom/htmliframeelement.rs
parent9a71af38b98560376d3db2c210f91c1cf0770acd (diff)
downloadservo-8e9e930e3d7867b3ec62ffb347dd7fa62e677ad5.tar.gz
servo-8e9e930e3d7867b3ec62ffb347dd7fa62e677ad5.zip
Remove unused and misnamed url field on HTMLIFrameElement.
Diffstat (limited to 'src/components/script/dom/htmliframeelement.rs')
-rw-r--r--src/components/script/dom/htmliframeelement.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs
index 1c44fa33e4d..9f77cda6829 100644
--- a/src/components/script/dom/htmliframeelement.rs
+++ b/src/components/script/dom/htmliframeelement.rs
@@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLIFrameElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLIFrameElementDerived, HTMLElementCast};
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary};
-use dom::bindings::trace::Untraceable;
use dom::document::Document;
use dom::element::{HTMLIFrameElementTypeId, Element};
use dom::element::AttributeHandlers;
@@ -19,7 +18,6 @@ use servo_util::str::DOMString;
use servo_msg::constellation_msg::{PipelineId, SubpageId};
use std::ascii::StrAsciiExt;
-use url::Url;
enum SandboxAllowance {
AllowNothing = 0x00,
@@ -34,7 +32,6 @@ enum SandboxAllowance {
#[deriving(Encodable)]
pub struct HTMLIFrameElement {
pub htmlelement: HTMLElement,
- frame: Untraceable<Option<Url>>,
pub size: Option<IFrameSize>,
pub sandbox: Option<u8>
}
@@ -53,24 +50,18 @@ pub struct IFrameSize {
pub trait HTMLIFrameElementHelpers {
fn is_sandboxed(&self) -> bool;
- fn set_frame(&mut self, frame: Url);
}
impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> {
fn is_sandboxed(&self) -> bool {
self.sandbox.is_some()
}
-
- fn set_frame(&mut self, frame: Url) {
- *self.frame = Some(frame);
- }
}
impl HTMLIFrameElement {
pub fn new_inherited(localName: DOMString, document: &JSRef<Document>) -> HTMLIFrameElement {
HTMLIFrameElement {
htmlelement: HTMLElement::new_inherited(HTMLIFrameElementTypeId, localName, document),
- frame: Untraceable::new(None),
size: None,
sandbox: None,
}