From 72bd672da0a97d1194a9da0077afe5f663fed1c1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Dec 2020 20:50:58 +0100 Subject: [PATCH] LibWeb: Remove use of specified_style() in Layout::ImageBox --- Libraries/LibWeb/Layout/ImageBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Layout/ImageBox.cpp b/Libraries/LibWeb/Layout/ImageBox.cpp index 541dc7672a..0f288843dd 100644 --- a/Libraries/LibWeb/Layout/ImageBox.cpp +++ b/Libraries/LibWeb/Layout/ImageBox.cpp @@ -112,7 +112,7 @@ void ImageBox::paint(PaintContext& context, PaintPhase phase) auto alt = image_element.alt(); if (alt.is_empty()) alt = image_element.src(); - context.painter().draw_text(enclosing_int_rect(absolute_rect()), alt, Gfx::TextAlignment::Center, specified_style().color_or_fallback(CSS::PropertyID::Color, document(), Color::Black), Gfx::TextElision::Right); + context.painter().draw_text(enclosing_int_rect(absolute_rect()), alt, Gfx::TextAlignment::Center, style().color(), Gfx::TextElision::Right); } else if (auto bitmap = m_image_loader.bitmap()) { context.painter().draw_scaled_bitmap(enclosing_int_rect(absolute_rect()), *bitmap, bitmap->rect()); }