summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutDocument.cpp')
-rw-r--r--Libraries/LibWeb/Layout/LayoutDocument.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutDocument.cpp b/Libraries/LibWeb/Layout/LayoutDocument.cpp
index 90232cb7c0..541ff7ddd7 100644
--- a/Libraries/LibWeb/Layout/LayoutDocument.cpp
+++ b/Libraries/LibWeb/Layout/LayoutDocument.cpp
@@ -105,7 +105,8 @@ void LayoutDocument::paint_all_phases(PaintContext& context)
paint(context, PaintPhase::Background);
paint(context, PaintPhase::Border);
paint(context, PaintPhase::Foreground);
- paint(context, PaintPhase::FocusOutline);
+ if (context.has_focus())
+ paint(context, PaintPhase::FocusOutline);
paint(context, PaintPhase::Overlay);
}