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
|
[[nodiscard]] bool has_css_transform() const
|
||||||
{
|
{
|
||||||
if (!computed_values().transformations().is_empty())
|
auto const& computed_values = this->computed_values();
|
||||||
return true;
|
return !computed_values.transformations().is_empty()
|
||||||
if (computed_values().rotate().has_value())
|
|| computed_values.rotate().has_value()
|
||||||
return true;
|
|| computed_values.translate().has_value()
|
||||||
if (computed_values().translate().has_value())
|
|| computed_values.scale().has_value();
|
||||||
return true;
|
|
||||||
if (computed_values().scale().has_value())
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://drafts.csswg.org/css-ui/#propdef-user-select
|
// https://drafts.csswg.org/css-ui/#propdef-user-select
|
||||||
|
|
|
||||||
|
|
@ -115,15 +115,11 @@ public:
|
||||||
|
|
||||||
[[nodiscard]] bool has_css_transform() const
|
[[nodiscard]] bool has_css_transform() const
|
||||||
{
|
{
|
||||||
if (!computed_values().transformations().is_empty())
|
auto const& computed_values = this->computed_values();
|
||||||
return true;
|
return !computed_values.transformations().is_empty()
|
||||||
if (computed_values().rotate().has_value())
|
|| computed_values.rotate().has_value()
|
||||||
return true;
|
|| computed_values.translate().has_value()
|
||||||
if (computed_values().translate().has_value())
|
|| computed_values.scale().has_value();
|
||||||
return true;
|
|
||||||
if (computed_values().scale().has_value())
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] Optional<CSSPixelRect> scrollable_overflow_rect() const
|
[[nodiscard]] Optional<CSSPixelRect> scrollable_overflow_rect() const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user