mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Reformat Node/PaintableBox::has_css_transform()
Slightly more visually pleasing. No functional changes.
This commit is contained in:
parent
ade5709939
commit
1871843acb
|
|
@ -178,15 +178,11 @@ public:
|
|||
|
||||
[[nodiscard]] bool has_css_transform() const
|
||||
{
|
||||
if (!computed_values().transformations().is_empty())
|
||||
return true;
|
||||
if (computed_values().rotate().has_value())
|
||||
return true;
|
||||
if (computed_values().translate().has_value())
|
||||
return true;
|
||||
if (computed_values().scale().has_value())
|
||||
return true;
|
||||
return false;
|
||||
auto const& computed_values = this->computed_values();
|
||||
return !computed_values.transformations().is_empty()
|
||||
|| computed_values.rotate().has_value()
|
||||
|| computed_values.translate().has_value()
|
||||
|| computed_values.scale().has_value();
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css-ui/#propdef-user-select
|
||||
|
|
|
|||
|
|
@ -115,15 +115,11 @@ public:
|
|||
|
||||
[[nodiscard]] bool has_css_transform() const
|
||||
{
|
||||
if (!computed_values().transformations().is_empty())
|
||||
return true;
|
||||
if (computed_values().rotate().has_value())
|
||||
return true;
|
||||
if (computed_values().translate().has_value())
|
||||
return true;
|
||||
if (computed_values().scale().has_value())
|
||||
return true;
|
||||
return false;
|
||||
auto const& computed_values = this->computed_values();
|
||||
return !computed_values.transformations().is_empty()
|
||||
|| computed_values.rotate().has_value()
|
||||
|| computed_values.translate().has_value()
|
||||
|| computed_values.scale().has_value();
|
||||
}
|
||||
|
||||
[[nodiscard]] Optional<CSSPixelRect> scrollable_overflow_rect() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user