LibWeb: Rename Layout::Node::style() => computed_values()

This commit is contained in:
Andreas Kling 2021-01-06 11:07:02 +01:00
parent e187a5365a
commit e5490ae1d1
Notes: sideshowbarker 2024-07-19 00:04:51 +09:00
6 changed files with 22 additions and 22 deletions

View file

@ -84,7 +84,7 @@ void TableFormattingContext::calculate_column_widths(Box& row, Vector<float>& co
{
size_t column_index = 0;
auto* table = row.first_ancestor_of_type<TableBox>();
bool use_auto_layout = !table || table->style().width().is_undefined_or_auto();
bool use_auto_layout = !table || table->computed_values().width().is_undefined_or_auto();
row.for_each_child_of_type<TableCellBox>([&](auto& cell) {
compute_width(cell);
if (use_auto_layout) {
@ -103,7 +103,7 @@ void TableFormattingContext::layout_row(Box& row, Vector<float>& column_widths)
float tallest_cell_height = 0;
float content_width = 0;
auto* table = row.first_ancestor_of_type<TableBox>();
bool use_auto_layout = !table || table->style().width().is_undefined_or_auto();
bool use_auto_layout = !table || table->computed_values().width().is_undefined_or_auto();
row.for_each_child_of_type<TableCellBox>([&](auto& cell) {
cell.set_offset(row.effective_offset().translated(content_width, 0));