1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 07:17:35 +00:00

LibWeb: Plumb OOPWV focus state across the IPC boundary

This makes focus outlines show up in OOPWV at last! :^)
This commit is contained in:
Andreas Kling 2022-02-06 19:03:13 +01:00
parent a062e803c5
commit 65bd4477db
7 changed files with 28 additions and 0 deletions

View file

@ -31,6 +31,11 @@ PageHost::~PageHost()
{
}
void PageHost::set_has_focus(bool has_focus)
{
m_has_focus = has_focus;
}
void PageHost::setup_palette()
{
// FIXME: Get the proper palette from our peer somehow
@ -85,6 +90,7 @@ void PageHost::paint(const Gfx::IntRect& content_rect, Gfx::Bitmap& target)
Web::PaintContext context(painter, palette(), content_rect.top_left());
context.set_should_show_line_box_borders(m_should_show_line_box_borders);
context.set_viewport_rect(content_rect);
context.set_has_focus(m_has_focus);
layout_root->paint_all_phases(context);
}