mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Generate bindings for HTMLHeadingElement.
This commit is contained in:
parent
e71b3e67a4
commit
39772f0bf4
8 changed files with 65 additions and 23 deletions
29
src/components/script/dom/htmlheadingelement.rs
Normal file
29
src/components/script/dom/htmlheadingelement.rs
Normal file
|
@ -0,0 +1,29 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::utils::{DOMString, null_string};
|
||||
use dom::htmlelement::HTMLElement;
|
||||
|
||||
pub enum HeadingLevel {
|
||||
Heading1,
|
||||
Heading2,
|
||||
Heading3,
|
||||
Heading4,
|
||||
Heading5,
|
||||
Heading6,
|
||||
}
|
||||
|
||||
pub struct HTMLHeadingElement {
|
||||
parent: HTMLElement,
|
||||
level: HeadingLevel,
|
||||
}
|
||||
|
||||
impl HTMLHeadingElement {
|
||||
pub fn Align(&self) -> DOMString {
|
||||
null_string
|
||||
}
|
||||
|
||||
pub fn SetAlign(&mut self, _align: &DOMString) {
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue