mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Introduce HTMLFrameElement::new.
This commit is contained in:
parent
d8198249ec
commit
996f2dcbb9
2 changed files with 17 additions and 1 deletions
|
@ -2,15 +2,31 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::HTMLFrameElementBinding;
|
||||
use dom::bindings::utils::{DOMString, ErrorResult};
|
||||
use dom::document::AbstractDocument;
|
||||
use dom::element::HTMLFrameElementTypeId;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{AbstractNode, Node, ScriptView};
|
||||
use dom::windowproxy::WindowProxy;
|
||||
|
||||
pub struct HTMLFrameElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
||||
impl HTMLFrameElement {
|
||||
pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLFrameElement {
|
||||
HTMLFrameElement {
|
||||
htmlelement: HTMLElement::new(HTMLFrameElementTypeId, localName, document)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
|
||||
let element = HTMLFrameElement::new_inherited(localName, document);
|
||||
Node::reflect_node(@mut element, document, HTMLFrameElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLFrameElement {
|
||||
pub fn Name(&self) -> DOMString {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue