mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibWebView+Ladybird: Begin de-duplicate WebView implementations
This starts moving code equally shared between the OOPWV and Ladybird WebContentView implementations to WebView::ViewImplementation, beginning with the client state.
This commit is contained in:
parent
121181e392
commit
5411adca22
8 changed files with 50 additions and 48 deletions
|
@ -607,12 +607,6 @@ void WebContentView::hideEvent(QHideEvent* event)
|
|||
client().async_set_system_visibility_state(false);
|
||||
}
|
||||
|
||||
WebContentClient& WebContentView::client()
|
||||
{
|
||||
VERIFY(m_client_state.client);
|
||||
return *m_client_state.client;
|
||||
}
|
||||
|
||||
void WebContentView::create_client()
|
||||
{
|
||||
m_client_state = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue