WIP iframe handling.

This commit is contained in:
Josh Matthews 2013-07-03 18:26:08 -04:00 committed by Tim Kuehn
parent c82be59a4b
commit 1a4ea09205
4 changed files with 85 additions and 6 deletions

View file

@ -8,6 +8,7 @@ use dom::bindings::utils::DOMString;
use dom::clientrect::ClientRect;
use dom::clientrectlist::ClientRectList;
use dom::node::{ElementNodeTypeId, Node, ScriptView};
use html::hubbub_html_parser::HtmlParserResult;
use layout_interface::{ContentBoxQuery, ContentBoxResponse, ContentBoxesQuery};
use layout_interface::{ContentBoxesResponse};
@ -37,6 +38,7 @@ pub enum ElementTypeId {
HTMLHeadElementTypeId,
HTMLHeadingElementTypeId,
HTMLHtmlElementTypeId,
HTMLIframeElementTypeId,
HTMLImageElementTypeId,
HTMLInputElementTypeId,
HTMLItalicElementTypeId,
@ -107,6 +109,12 @@ pub struct HTMLHeadingElement {
level: HeadingLevel,
}
pub struct HTMLIframeElement {
parent: Element,
frame: Option<Url>,
parse_result: Option<Port<HtmlParserResult>>
}
pub struct HTMLImageElement {
parent: Element,
image: Option<Url>,