mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb: Add HTMLTableCellElement::colSpan
This commit is contained in:
committed by
Andreas Kling
parent
b92cc3670b
commit
b7b647e9cd
Notes:
sideshowbarker
2024-07-17 16:36:01 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/b7b647e9cd Pull-request: https://github.com/SerenityOS/serenity/pull/13323 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling
@@ -48,4 +48,14 @@ void HTMLTableCellElement::apply_presentational_hints(CSS::StyleProperties& styl
|
||||
});
|
||||
}
|
||||
|
||||
unsigned int HTMLTableCellElement::col_span() const
|
||||
{
|
||||
return attribute(HTML::AttributeNames::colspan).to_uint().value_or(1);
|
||||
}
|
||||
|
||||
void HTMLTableCellElement::set_col_span(unsigned int value)
|
||||
{
|
||||
set_attribute(HTML::AttributeNames::colspan, String::number(value));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user