mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibWeb: Transform translate() values to device pixels before painting
This commit is contained in:
parent
10575fea9f
commit
05b5a3bfba
1 changed files with 2 additions and 0 deletions
|
@ -372,6 +372,8 @@ void StackingContext::paint(PaintContext& context) const
|
|||
return;
|
||||
|
||||
auto affine_transform = affine_transform_matrix();
|
||||
auto translation = context.rounded_device_point(affine_transform.translation().to_type<CSSPixels>()).to_type<int>().to_type<float>();
|
||||
affine_transform.set_translation(translation);
|
||||
|
||||
if (opacity < 1.0f || !affine_transform.is_identity_or_translation()) {
|
||||
auto transform_origin = this->transform_origin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue