mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Add generic int_from_style_value method
Reduces duplication in line with `number_from_style_value`, `string_from_style_value` etc
This commit is contained in:
Notes:
github-actions[bot]
2026-02-23 11:24:15 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/32b9ff21dfa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8052 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -894,6 +894,7 @@ void NodeWithStyle::apply_style(CSS::ComputedProperties const& computed_style)
|
||||
|
||||
computed_values.set_text_anchor(computed_style.text_anchor());
|
||||
|
||||
// FIXME: Support calc()
|
||||
if (auto const& column_count = computed_style.property(CSS::PropertyID::ColumnCount); column_count.is_integer())
|
||||
computed_values.set_column_count(CSS::ColumnCount::make_integer(column_count.as_integer().integer()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user