1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

LibWeb: Fix spelling of non_anonymous_containing_block()

This commit is contained in:
Andreas Kling 2023-06-14 15:31:40 +02:00
parent 34591ff3d9
commit b6f3369b66
3 changed files with 5 additions and 5 deletions

View file

@ -260,7 +260,7 @@ CSSPixelSize FormattingContext::solve_replaced_size_constraint(CSSPixels input_w
{ {
// 10.4 Minimum and maximum widths: 'min-width' and 'max-width' // 10.4 Minimum and maximum widths: 'min-width' and 'max-width'
auto const& containing_block = *box.non_anyonymous_containing_block(); auto const& containing_block = *box.non_anonymous_containing_block();
auto const& containing_block_state = m_state.get(containing_block); auto const& containing_block_state = m_state.get(containing_block);
auto width_of_containing_block = containing_block_state.content_width(); auto width_of_containing_block = containing_block_state.content_width();
auto height_of_containing_block = containing_block_state.content_height(); auto height_of_containing_block = containing_block_state.content_height();
@ -507,7 +507,7 @@ CSSPixels FormattingContext::compute_height_for_replaced_element(Box const& box,
// 10.6.6 Floating replaced elements // 10.6.6 Floating replaced elements
// 10.6.10 'inline-block' replaced elements in normal flow // 10.6.10 'inline-block' replaced elements in normal flow
auto height_of_containing_block = m_state.get(*box.non_anyonymous_containing_block()).content_height(); auto height_of_containing_block = m_state.get(*box.non_anonymous_containing_block()).content_height();
auto computed_width = should_treat_width_as_auto(box, available_space) ? CSS::Size::make_auto() : box.computed_values().width(); auto computed_width = should_treat_width_as_auto(box, available_space) ? CSS::Size::make_auto() : box.computed_values().width();
auto computed_height = should_treat_height_as_auto(box, available_space) ? CSS::Size::make_auto() : box.computed_values().height(); auto computed_height = should_treat_height_as_auto(box, available_space) ? CSS::Size::make_auto() : box.computed_values().height();
@ -1392,7 +1392,7 @@ CSS::Length FormattingContext::calculate_inner_width(Layout::Box const& box, Ava
CSS::Length FormattingContext::calculate_inner_height(Layout::Box const& box, AvailableSize const&, CSS::Size const& height) const CSS::Length FormattingContext::calculate_inner_height(Layout::Box const& box, AvailableSize const&, CSS::Size const& height) const
{ {
auto height_of_containing_block = m_state.get(*box.non_anyonymous_containing_block()).content_height(); auto height_of_containing_block = m_state.get(*box.non_anonymous_containing_block()).content_height();
auto height_of_containing_block_as_length_for_resolve = CSS::Length::make_px(height_of_containing_block); auto height_of_containing_block_as_length_for_resolve = CSS::Length::make_px(height_of_containing_block);
if (height.is_auto()) { if (height.is_auto()) {
return height.resolved(box, height_of_containing_block_as_length_for_resolve); return height.resolved(box, height_of_containing_block_as_length_for_resolve);

View file

@ -119,7 +119,7 @@ Box const* Node::containing_block() const
return nearest_ancestor_capable_of_forming_a_containing_block(*this); return nearest_ancestor_capable_of_forming_a_containing_block(*this);
} }
Box const* Node::non_anyonymous_containing_block() const Box const* Node::non_anonymous_containing_block() const
{ {
auto nearest_ancestor_box = containing_block(); auto nearest_ancestor_box = containing_block();
VERIFY(nearest_ancestor_box); VERIFY(nearest_ancestor_box);

View file

@ -115,7 +115,7 @@ public:
// Anonymous block boxes are ignored when resolving percentage values that would refer to it: // Anonymous block boxes are ignored when resolving percentage values that would refer to it:
// the closest non-anonymous ancestor box is used instead. // the closest non-anonymous ancestor box is used instead.
// https://www.w3.org/TR/CSS22/visuren.html#anonymous-block-level // https://www.w3.org/TR/CSS22/visuren.html#anonymous-block-level
Box const* non_anyonymous_containing_block() const; Box const* non_anonymous_containing_block() const;
bool establishes_stacking_context() const; bool establishes_stacking_context() const;