From 038283f3fc1066c8c991640d5987358605f03730 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sun, 7 May 2023 02:59:39 +0300 Subject: [PATCH] LibWeb: Rename function to find table box width inside table wrapper compute_table_box_width_inside_table_wrapper should be a better name considering what this function does. --- Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp | 4 ++-- Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index edc9d6b37c..fa0acd72f5 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -232,7 +232,7 @@ void BlockFormattingContext::compute_width(Box const& box, AvailableSpace const& return CSS::Length::make_px(box_state.content_width()); } if (is(box)) - return CSS::Length::make_px(compute_width_for_table_wrapper(box, remaining_available_space)); + return CSS::Length::make_px(compute_table_box_width_inside_table_wrapper(box, remaining_available_space)); if (should_treat_width_as_auto(box, remaining_available_space)) return CSS::Length::make_auto(); return calculate_inner_width(box, remaining_available_space.width, computed_values.width()); @@ -350,7 +350,7 @@ void BlockFormattingContext::compute_width_for_block_level_replaced_element_in_n m_state.get_mutable(box).set_content_width(compute_width_for_replaced_element(m_state, box, available_space)); } -CSSPixels BlockFormattingContext::compute_width_for_table_wrapper(Box const& box, AvailableSpace const& available_space) +CSSPixels BlockFormattingContext::compute_table_box_width_inside_table_wrapper(Box const& box, AvailableSpace const& available_space) { // 17.5.2 // Table wrapper width should be equal to width of table box it contains diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h index 5d9d9aad6c..4b16599d76 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h @@ -58,7 +58,7 @@ private: void compute_width_for_block_level_replaced_element_in_normal_flow(ReplacedBox const&, AvailableSpace const&); - CSSPixels compute_width_for_table_wrapper(Box const&, AvailableSpace const&); + CSSPixels compute_table_box_width_inside_table_wrapper(Box const&, AvailableSpace const&); void layout_viewport(LayoutMode, AvailableSpace const&);