aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r--components/script/dom/element.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index 4aad2fe59ff..3576f20f78c 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -317,6 +317,16 @@ impl RawLayoutElementHelpers for Element {
None
}
}
+ UnsignedIntegerAttribute::CellSpacing => {
+ if self.is_htmltableelement() {
+ let this: &HTMLTableElement = mem::transmute(self);
+ this.get_cellspacing()
+ } else {
+ // Don't panic since `display` can cause this to be called on arbitrary
+ // elements.
+ None
+ }
+ }
UnsignedIntegerAttribute::ColSpan => {
if self.is_htmltablecellelement() {
let this: &HTMLTableCellElement = mem::transmute(self);