mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:04:57 +00:00
Ladybird: Add ability to create a tab without creating a new WebContent
This commit is contained in:
parent
506707cc2b
commit
48ce8fb4e9
11 changed files with 36 additions and 21 deletions
|
@ -53,7 +53,7 @@ static QIcon create_tvg_icon_with_theme_colors(QString name, QPalette const& pal
|
|||
return QIcon(icon_engine);
|
||||
}
|
||||
|
||||
Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, StringView webdriver_content_ipc_path)
|
||||
Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, StringView webdriver_content_ipc_path, RefPtr<WebView::WebContentClient> parent_client, size_t page_index)
|
||||
: QWidget(window)
|
||||
, m_window(window)
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
|
|||
m_layout->setSpacing(0);
|
||||
m_layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
m_view = new WebContentView(web_content_options, webdriver_content_ipc_path);
|
||||
m_view = new WebContentView(web_content_options, webdriver_content_ipc_path, parent_client, page_index);
|
||||
m_toolbar = new QToolBar(this);
|
||||
m_location_edit = new LocationEdit(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue