mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Remove unused image-rendering param for stacking context
Previously it was accounted for by LibGfx while applying scale transformation, but is no longer needed for Skia.
This commit is contained in:
parent
53ef0e2e88
commit
ee4dd5a17c
Notes:
github-actions[bot]
2024-08-07 16:51:37 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: ee4dd5a17c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1002
4 changed files with 0 additions and 4 deletions
|
@ -114,7 +114,6 @@ struct PushStackingContext {
|
||||||
Gfx::IntRect source_paintable_rect;
|
Gfx::IntRect source_paintable_rect;
|
||||||
// A translation to be applied after the stacking context has been transformed.
|
// A translation to be applied after the stacking context has been transformed.
|
||||||
Gfx::IntPoint post_transform_translation;
|
Gfx::IntPoint post_transform_translation;
|
||||||
CSS::ImageRendering image_rendering;
|
|
||||||
StackingContextTransform transform;
|
StackingContextTransform transform;
|
||||||
Optional<StackingContextMask> mask = {};
|
Optional<StackingContextMask> mask = {};
|
||||||
|
|
||||||
|
|
|
@ -304,7 +304,6 @@ void DisplayListRecorder::push_stacking_context(PushStackingContextParams params
|
||||||
.post_transform_translation = params.is_fixed_position
|
.post_transform_translation = params.is_fixed_position
|
||||||
? Gfx::IntPoint {}
|
? Gfx::IntPoint {}
|
||||||
: state().translation.translation().to_rounded<int>(),
|
: state().translation.translation().to_rounded<int>(),
|
||||||
.image_rendering = params.image_rendering,
|
|
||||||
.transform = {
|
.transform = {
|
||||||
.origin = params.transform.origin,
|
.origin = params.transform.origin,
|
||||||
.matrix = params.transform.matrix,
|
.matrix = params.transform.matrix,
|
||||||
|
|
|
@ -115,7 +115,6 @@ public:
|
||||||
float opacity;
|
float opacity;
|
||||||
bool is_fixed_position;
|
bool is_fixed_position;
|
||||||
Gfx::IntRect source_paintable_rect;
|
Gfx::IntRect source_paintable_rect;
|
||||||
CSS::ImageRendering image_rendering;
|
|
||||||
StackingContextTransform transform;
|
StackingContextTransform transform;
|
||||||
Optional<StackingContextMask> mask = {};
|
Optional<StackingContextMask> mask = {};
|
||||||
};
|
};
|
||||||
|
|
|
@ -293,7 +293,6 @@ void StackingContext::paint(PaintContext& context) const
|
||||||
.opacity = opacity,
|
.opacity = opacity,
|
||||||
.is_fixed_position = paintable().is_fixed_position(),
|
.is_fixed_position = paintable().is_fixed_position(),
|
||||||
.source_paintable_rect = source_paintable_rect,
|
.source_paintable_rect = source_paintable_rect,
|
||||||
.image_rendering = paintable().computed_values().image_rendering(),
|
|
||||||
.transform = {
|
.transform = {
|
||||||
.origin = transform_origin.scaled(to_device_pixels_scale),
|
.origin = transform_origin.scaled(to_device_pixels_scale),
|
||||||
.matrix = matrix_with_scaled_translation(transform_matrix, to_device_pixels_scale),
|
.matrix = matrix_with_scaled_translation(transform_matrix, to_device_pixels_scale),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue