LibWeb/CSS: Improved implementation of background-blend-mode

This is a improved version of a73cd88f0c
The old commit was reverted in 552dd18696

The new version only paints an element into a new layer if background
blend modes other than normal are used. The rasterization performance
of most websites should therefore not suffer.

Co-Authored-By: Alexander Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
Glenn Skrzypczak 2025-03-29 23:44:25 +01:00 committed by Alexander Kalenik
parent 6906f1722a
commit 9973b01848
Notes: github-actions[bot] 2025-04-01 11:39:02 +00:00
16 changed files with 311 additions and 198 deletions

View file

@ -443,6 +443,7 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue>> Parser::parse_css_value(Prope
return parsed_value.release_nonnull();
return ParseError::SyntaxError;
case PropertyID::BackgroundAttachment:
case PropertyID::BackgroundBlendMode:
case PropertyID::BackgroundClip:
case PropertyID::BackgroundImage:
case PropertyID::BackgroundOrigin: