diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-13 01:03:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-13 16:40:46 +0200 |
commit | de5de4d99af85f7ce2ec37b1dcdbb6e28a5e96a6 (patch) | |
tree | ac3f4d69dca2920a8e47483be453d5fe425015fb /Userland/Libraries | |
parent | be4913c1fbea17dbdea61afd64dae5c7da7ace5c (diff) | |
download | serenity-de5de4d99af85f7ce2ec37b1dcdbb6e28a5e96a6.zip |
LibWeb: Fix typo in CSS::Display::is_outside_and_inside() name
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Display.h | 24 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Display.h b/Userland/Libraries/LibWeb/CSS/Display.h index b5c248a66a..41064f674d 100644 --- a/Userland/Libraries/LibWeb/CSS/Display.h +++ b/Userland/Libraries/LibWeb/CSS/Display.h @@ -98,30 +98,30 @@ public: Type type() const { return m_type; } - bool it_outside_and_inside() const { return m_type == Type::OutsideAndInside; } + bool is_outside_and_inside() const { return m_type == Type::OutsideAndInside; } Outside outside() const { - VERIFY(it_outside_and_inside()); + VERIFY(is_outside_and_inside()); return m_value.outside_inside.outside; } - bool is_block_outside() const { return it_outside_and_inside() && outside() == Outside::Block; } - bool is_inline_outside() const { return it_outside_and_inside() && outside() == Outside::Inline; } - bool is_list_item() const { return it_outside_and_inside() && m_value.outside_inside.list_item == ListItem::Yes; } + bool is_block_outside() const { return is_outside_and_inside() && outside() == Outside::Block; } + bool is_inline_outside() const { return is_outside_and_inside() && outside() == Outside::Inline; } + bool is_list_item() const { return is_outside_and_inside() && m_value.outside_inside.list_item == ListItem::Yes; } Inside inside() const { - VERIFY(it_outside_and_inside()); + VERIFY(is_outside_and_inside()); return m_value.outside_inside.inside; } - bool is_flow_inside() const { return it_outside_and_inside() && inside() == Inside::Flow; } - bool is_flow_root_inside() const { return it_outside_and_inside() && inside() == Inside::FlowRoot; } - bool is_table_inside() const { return it_outside_and_inside() && inside() == Inside::Table; } - bool is_flex_inside() const { return it_outside_and_inside() && inside() == Inside::Flex; } - bool is_grid_inside() const { return it_outside_and_inside() && inside() == Inside::Grid; } - bool is_ruby_inside() const { return it_outside_and_inside() && inside() == Inside::Ruby; } + bool is_flow_inside() const { return is_outside_and_inside() && inside() == Inside::Flow; } + bool is_flow_root_inside() const { return is_outside_and_inside() && inside() == Inside::FlowRoot; } + bool is_table_inside() const { return is_outside_and_inside() && inside() == Inside::Table; } + bool is_flex_inside() const { return is_outside_and_inside() && inside() == Inside::Flex; } + bool is_grid_inside() const { return is_outside_and_inside() && inside() == Inside::Grid; } + bool is_ruby_inside() const { return is_outside_and_inside() && inside() == Inside::Ruby; } enum class Short { None, diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp index 3a1b486bb4..00c2e00559 100644 --- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp @@ -46,7 +46,7 @@ static RefPtr<StyleValue> style_value_for_display(CSS::Display display) if (display.is_none()) return IdentifierStyleValue::create(CSS::ValueID::None); - if (display.it_outside_and_inside()) { + if (display.is_outside_and_inside()) { NonnullRefPtrVector<StyleValue> values; switch (display.outside()) { case CSS::Display::Outside::Inline: diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp index 6795a1e3af..4c556f6bd5 100644 --- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp +++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp @@ -283,7 +283,7 @@ void TreeBuilder::for_each_in_tree_with_inside_display(NodeWithStyle& root, Call { root.for_each_in_inclusive_subtree_of_type<Box>([&](auto& box) { auto const& display = box.computed_values().display(); - if (display.it_outside_and_inside() && display.inside() == inside) + if (display.is_outside_and_inside() && display.inside() == inside) callback(box); return IterationDecision::Continue; }); |