aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-10-31 15:31:15 +0100
committerMs2ger <ms2ger@gmail.com>2013-10-31 15:41:35 +0100
commita972c470a772c27d4a999aca65ad5e40d7dea035 (patch)
tree5c3cd46d7383961cfb9157f74e7c09ce4e92fe89 /src/components/script/html/hubbub_html_parser.rs
parent618447445f8af2be4a4f2aaed5e586d9c02c3137 (diff)
downloadservo-a972c470a772c27d4a999aca65ad5e40d7dea035.tar.gz
servo-a972c470a772c27d4a999aca65ad5e40d7dea035.zip
Introduce HTMLTable{Data,Header}CellElement::new.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index a8587de354e..57053657185 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -67,17 +67,6 @@ macro_rules! handle_newable_element(
}
)
)
-macro_rules! handle_htmltablecellelement(
- ($cx: expr,
- $document: expr,
- $tag: expr,
- $string: expr,
- $type_id: expr,
- $ctor: ident) => (
- handle_element_base!(htmltablecellelement, HTMLTableCellElement,
- $cx, $document, $tag, $string, $type_id, $ctor, []);
- )
-)
macro_rules! handle_element_base(
($parent: ident,
$parent_init: ident,
@@ -299,11 +288,10 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum
handle_htmlelement!(cx, document, tag, "small", HTMLElementTypeId, HTMLElement);
handle_newable_element!(document, tag, "audio", HTMLAudioElement);
+ handle_newable_element!(document, tag, "td", HTMLTableDataCellElement);
+ handle_newable_element!(document, tag, "th", HTMLTableHeaderCellElement);
handle_newable_element!(document, tag, "video", HTMLVideoElement);
- handle_htmltablecellelement!(cx, document, tag, "td", HTMLTableDataCellElementTypeId, HTMLTableDataCellElement);
- handle_htmltablecellelement!(cx, document, tag, "th", HTMLTableHeaderCellElementTypeId, HTMLTableHeaderCellElement);
-
return HTMLUnknownElement::new(tag.to_str(), document);
}