File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,4 +38,10 @@ LayoutTableCell::~LayoutTableCell()
38
38
{
39
39
}
40
40
41
+ size_t LayoutTableCell::colspan () const
42
+ {
43
+ ASSERT (node ());
44
+ return to<Element>(*node ()).attribute (HTML::AttributeNames::colspan).to_uint ().value_or (1 );
45
+ }
46
+
41
47
}
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ class LayoutTableCell final : public LayoutBlock {
38
38
LayoutTableCell* next_cell () { return next_sibling_of_type<LayoutTableCell>(); }
39
39
const LayoutTableCell* next_cell () const { return next_sibling_of_type<LayoutTableCell>(); }
40
40
41
+ size_t colspan () const ;
42
+
41
43
private:
42
44
virtual bool is_table_cell () const override { return true ; }
43
45
virtual const char * class_name () const override { return " LayoutTableCell" ; }
You can’t perform that action at this time.
0 commit comments