mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:28:11 +00:00
![]() Our previous code roughly did this: 1. Generate a bitmap as large as the shadow would end up. 2. Paint a rectangle onto it. 3. Blur the whole bitmap. 4. Split it up and render each section. This patch takes advantage of the fact that (aside from corners) each horizontal or vertical strip of a box-shadow is identical to the others, to generate and blur a much smaller bitmap - only large enough for the four corners and 1px of central "side" in each direction. This greatly reduces the memory footprint, and should also speed things up, since there is much less to blur. |
||
---|---|---|
.. | ||
BackgroundPainting.cpp | ||
BackgroundPainting.h | ||
BorderPainting.cpp | ||
BorderPainting.h | ||
PaintContext.h | ||
ShadowPainting.cpp | ||
ShadowPainting.h | ||
StackingContext.cpp | ||
StackingContext.h |