diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-15 10:12:37 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 19:02:49 +0200 |
commit | 6b847eb93ab750b5029c54365cca64f450e9b154 (patch) | |
tree | 6eafcf31af2e3a85252f16f518fbdd0aac7ac369 /components/script_layout_interface/lib.rs | |
parent | afc7118a6706cc3af6879b7d032d5e693abd4707 (diff) | |
download | servo-6b847eb93ab750b5029c54365cca64f450e9b154.tar.gz servo-6b847eb93ab750b5029c54365cca64f450e9b154.zip |
Introduce LayoutNodeType and LayoutElementType enums.
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, +} |