mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
WIP iframe handling.
This commit is contained in:
parent
c82be59a4b
commit
1a4ea09205
4 changed files with 85 additions and 6 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue