mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
LibWeb: Add "focused frame" concept, one focused Frame per Page
Focus currently only moves when doing a mousedown in a frame.
This commit is contained in:
parent
d1d9545875
commit
6b4a7d1ee3
7 changed files with 35 additions and 0 deletions
|
@ -68,6 +68,11 @@ void Frame::setup()
|
|||
});
|
||||
}
|
||||
|
||||
bool Frame::is_focused_frame() const
|
||||
{
|
||||
return this == &page().focused_frame();
|
||||
}
|
||||
|
||||
void Frame::set_document(DOM::Document* document)
|
||||
{
|
||||
if (m_document == document)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue