mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Introduce LayoutNodeType and LayoutElementType enums.
This commit is contained in:
parent
afc7118a67
commit
6b847eb93a
4 changed files with 137 additions and 66 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue