mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Migrate CSS filter application to new ApplyFilters command
This helps reuse this code in other areas, such as for filters for SVGs
This commit is contained in:
parent
628e1d9853
commit
8562b0e33b
Notes:
github-actions[bot]
2024-11-23 19:22:17 +00:00
Author: https://github.com/gotlougit
Commit: 8562b0e33b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2248
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/kalenikaliaksandr
Reviewed-by: https://github.com/konradekk
8 changed files with 53 additions and 31 deletions
|
@ -301,7 +301,6 @@ void StackingContext::paint(PaintContext& context) const
|
|||
|
||||
DisplayListRecorder::PushStackingContextParams push_stacking_context_params {
|
||||
.opacity = opacity,
|
||||
.filter = paintable_box().computed_values().filter(),
|
||||
.is_fixed_position = paintable_box().is_fixed_position(),
|
||||
.source_paintable_rect = source_paintable_rect,
|
||||
.transform = {
|
||||
|
@ -328,6 +327,7 @@ void StackingContext::paint(PaintContext& context) const
|
|||
context.display_list_recorder().push_scroll_frame_id(*paintable_box().scroll_frame_id());
|
||||
}
|
||||
context.display_list_recorder().push_stacking_context(push_stacking_context_params);
|
||||
context.display_list_recorder().apply_filters(opacity, paintable_box().computed_values().filter());
|
||||
|
||||
if (auto mask_image = computed_values.mask_image()) {
|
||||
auto mask_display_list = DisplayList::create();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue