mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Fix typo in CSS::Display::is_outside_and_inside() name
This commit is contained in:
parent
be4913c1fb
commit
de5de4d99a
Notes:
sideshowbarker
2024-07-17 11:50:23 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/de5de4d99a
3 changed files with 14 additions and 14 deletions
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue