diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2013-09-19 18:05:48 -0400 |
---|---|---|
committer | Luis de Bethencourt <luis@debethencourt.com> | 2013-09-19 19:39:38 -0400 |
commit | 2dbd065d91b19924ada276249ae9997bf4496e31 (patch) | |
tree | 36bbf5c90b462c2dbd63419935c7df28f470df2a /src/components/script/dom/htmliframeelement.rs | |
parent | 0ca4c19b57a6c444aecb4e8fbdd42cd7ff575c1c (diff) | |
download | servo-2dbd065d91b19924ada276249ae9997bf4496e31.tar.gz servo-2dbd065d91b19924ada276249ae9997bf4496e31.zip |
Rename the element field of the DOM Node hierarchy
Renamed htmlelement, and element
Fixes #924
Diffstat (limited to 'src/components/script/dom/htmliframeelement.rs')
-rw-r--r-- | src/components/script/dom/htmliframeelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 3ddab8af1ea..61b6f7a27f6 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -28,7 +28,7 @@ enum SandboxAllowance { } pub struct HTMLIFrameElement { - parent: HTMLElement, + htmlelement: HTMLElement, frame: Option<Url>, size: Option<IFrameSize>, sandbox: Option<u8> @@ -84,11 +84,11 @@ impl HTMLIFrameElement { } pub fn Sandbox(&self, _abstract_self: AbstractNode<ScriptView>) -> DOMString { - self.parent.parent.GetAttribute(&Some(~"sandbox")) + self.htmlelement.element.GetAttribute(&Some(~"sandbox")) } pub fn SetSandbox(&mut self, abstract_self: AbstractNode<ScriptView>, sandbox: &DOMString) { - self.parent.parent.SetAttribute(abstract_self, &Some(~"sandbox"), sandbox); + self.htmlelement.element.SetAttribute(abstract_self, &Some(~"sandbox"), sandbox); } pub fn AfterSetAttr(&mut self, name: &DOMString, value: &DOMString) { |