mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
LibWeb: Fix incomplete plumbing for individual rotate
CSS property
This commit is contained in:
parent
d6f7fccf49
commit
6836d4edb1
Notes:
github-actions[bot]
2024-11-22 19:07:55 +00:00
Author: https://github.com/awesomekling
Commit: 6836d4edb1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2506
Reviewed-by: https://github.com/shannonbooth
5 changed files with 27 additions and 5 deletions
|
@ -129,7 +129,14 @@ public:
|
|||
return m_overflow_data->has_scrollable_overflow;
|
||||
}
|
||||
|
||||
bool has_css_transform() const { return computed_values().transformations().size() > 0; }
|
||||
[[nodiscard]] bool has_css_transform() const
|
||||
{
|
||||
if (!computed_values().transformations().is_empty())
|
||||
return true;
|
||||
if (computed_values().rotate().has_value())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
[[nodiscard]] Optional<CSSPixelRect> scrollable_overflow_rect() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue