mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibWeb: Stop painting backgrounds for TextNodes
Doing so was causing the background to be painted twice, which looks ugly if the background is semi-transparent. The painting is a bit of a hack, as some situations apparently relied on it. This commit is ripping the band-aid off to find where those are and fix them. :^)
This commit is contained in:
parent
7ef4d75716
commit
b88641e44b
1 changed files with 0 additions and 4 deletions
|
@ -74,10 +74,6 @@ void TextNode::paint_fragment(PaintContext& context, const LineBoxFragment& frag
|
|||
{
|
||||
auto& painter = context.painter();
|
||||
|
||||
if (phase == PaintPhase::Background) {
|
||||
painter.fill_rect(enclosing_int_rect(fragment.absolute_rect()), computed_values().background_color());
|
||||
}
|
||||
|
||||
if (phase == PaintPhase::Foreground) {
|
||||
painter.set_font(font());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue