diff options
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r-- | components/script_layout_interface/lib.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index 7c1a4e28e29..0b3e1bce3e6 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -42,3 +42,30 @@ pub struct OpaqueStyleAndLayoutData { #[allow(unsafe_code)] unsafe impl Send for OpaqueStyleAndLayoutData {} + +#[derive(Copy, Clone, PartialEq, Eq, Debug)] +pub enum LayoutNodeType { + Comment, + Document, + DocumentFragment, + DocumentType, + Element(LayoutElementType), + ProcessingInstruction, + Text, +} + +#[derive(Copy, Clone, PartialEq, Eq, Debug)] +pub enum LayoutElementType { + Element, + HTMLCanvasElement, + HTMLIFrameElement, + HTMLImageElement, + HTMLInputElement, + HTMLObjectElement, + HTMLTableCellElement, + HTMLTableColElement, + HTMLTableElement, + HTMLTableRowElement, + HTMLTableSectionElement, + HTMLTextAreaElement, +} |