mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
LibWeb: Print requested bitmap sizes in shadow painting debug logs
Also replace "box-shadow" with "text-shadow" in the text shadow painting debug logs.
This commit is contained in:
parent
41d6307c17
commit
89e308726e
1 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ void paint_box_shadow(PaintContext& context, Gfx::IntRect const& content_rect, B
|
||||||
|
|
||||||
auto shadows_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, shadow_bitmap_rect.size());
|
auto shadows_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, shadow_bitmap_rect.size());
|
||||||
if (shadows_bitmap.is_error()) {
|
if (shadows_bitmap.is_error()) {
|
||||||
dbgln("Unable to allocate temporary bitmap for box-shadow rendering: {}", shadows_bitmap.error());
|
dbgln("Unable to allocate temporary bitmap {} for box-shadow rendering: {}", shadow_bitmap_rect, shadows_bitmap.error());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto shadow_bitmap = shadows_bitmap.release_value();
|
auto shadow_bitmap = shadows_bitmap.release_value();
|
||||||
|
@ -351,7 +351,7 @@ void paint_text_shadow(PaintContext& context, Layout::LineBoxFragment const& fra
|
||||||
// FIXME: Figure out the maximum bitmap size for all shadows and then allocate it once and reuse it?
|
// FIXME: Figure out the maximum bitmap size for all shadows and then allocate it once and reuse it?
|
||||||
auto maybe_shadow_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, bounding_rect.size());
|
auto maybe_shadow_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, bounding_rect.size());
|
||||||
if (maybe_shadow_bitmap.is_error()) {
|
if (maybe_shadow_bitmap.is_error()) {
|
||||||
dbgln("Unable to allocate temporary bitmap for box-shadow rendering: {}", maybe_shadow_bitmap.error());
|
dbgln("Unable to allocate temporary bitmap {} for text-shadow rendering: {}", bounding_rect.size(), maybe_shadow_bitmap.error());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto shadow_bitmap = maybe_shadow_bitmap.release_value();
|
auto shadow_bitmap = maybe_shadow_bitmap.release_value();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue