webp handler: Avoid uninitialized data in animation frames


Since webp animation frames may optionally cover only parts of the
image area, ensure that the whole QImage is initialized. This was
earlier done only for image formats with transparency.

This also fixes a shortcoming where uncovered areas in opaque formats
where expected to be filled with the defined background color.

Task-number: QTBUG-148332
Pick-to: 6.12 6.11 6.8 6.5 5.15
Change-Id: Ic606468cc2d30a31b65884c39bb80181d7e3aeb3
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit7901ddb71236867bf84ee56305561d12993e28da
parent6bdb2b89c5710b9f408be0bab0612e5e6f1bcf0a
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeSat, 15 Aug 2026 07:11:15 +0000