diff options
Diffstat (limited to 'components/script/layout_dom/node.rs')
-rw-r--r-- | components/script/layout_dom/node.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/components/script/layout_dom/node.rs b/components/script/layout_dom/node.rs index 521e20957f7..9ce25c78f84 100644 --- a/components/script/layout_dom/node.rs +++ b/components/script/layout_dom/node.rs @@ -465,7 +465,16 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ThreadSafeLayoutNode<'dom> this.iframe_pipeline_id() } - fn get_colspan(&self) -> u32 { + fn get_span(&self) -> Option<u32> { + unsafe { + self.get_jsmanaged() + .downcast::<Element>() + .unwrap() + .get_span() + } + } + + fn get_colspan(&self) -> Option<u32> { unsafe { self.get_jsmanaged() .downcast::<Element>() @@ -474,7 +483,7 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ThreadSafeLayoutNode<'dom> } } - fn get_rowspan(&self) -> u32 { + fn get_rowspan(&self) -> Option<u32> { unsafe { self.get_jsmanaged() .downcast::<Element>() |