فهرست منبع

LibWeb: Fix LayoutImage stupidly painting backgrounds over itself

The good boy fix here would be to implement all of the CSS paint phases
but for now, let's at least not paint a background over our image. :^)
Andreas Kling 5 سال پیش
والد
کامیت
d9ece296f0
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Libraries/LibWeb/Layout/LayoutImage.cpp

+ 2 - 0
Libraries/LibWeb/Layout/LayoutImage.cpp

@@ -71,6 +71,8 @@ void LayoutImage::render(RenderingContext& context)
     if (!context.viewport_rect().intersects(enclosing_int_rect(absolute_rect())))
         return;
 
+    LayoutReplaced::render(context);
+
     if (renders_as_alt_text()) {
         context.painter().set_font(Gfx::Font::default_font());
         Gfx::StylePainter::paint_frame(context.painter(), enclosing_int_rect(absolute_rect()), context.palette(), Gfx::FrameShape::Container, Gfx::FrameShadow::Sunken, 2);