mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibWeb: Reformat Node/PaintableBox::has_css_transform()
Slightly more visually pleasing. No functional changes.
This commit is contained in:
parent
ade5709939
commit
1871843acb
Notes:
github-actions[bot]
2025-06-17 09:56:46 +00:00
Author: https://github.com/gmta
Commit: 1871843acb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5104
2 changed files with 10 additions and 18 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue