mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Use device pixels for transform rect of stacking context
This commit is contained in:
parent
4f4bd3793f
commit
2649bc737f
Notes:
sideshowbarker
2024-07-17 00:33:54 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/2649bc737f Pull-request: https://github.com/SerenityOS/serenity/pull/17403
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ void StackingContext::paint(PaintContext& context) const
|
|||
|
||||
if (opacity < 1.0f || !affine_transform.is_identity_or_translation()) {
|
||||
auto transform_origin = this->transform_origin();
|
||||
auto source_rect = paintable().absolute_paint_rect().to_type<float>().translated(-transform_origin);
|
||||
auto source_rect = context.enclosing_device_rect(paintable().absolute_paint_rect()).to_type<int>().to_type<float>().translated(-transform_origin);
|
||||
auto transformed_destination_rect = affine_transform.map(source_rect).translated(transform_origin);
|
||||
auto destination_rect = transformed_destination_rect.to_rounded<int>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue