mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
Ladybird: Render web content in a separate process :^)
This patch brings over the WebContent process over from SerenityOS to Ladybird, along with a new WebContentView widget that renders web content in a separate process. There's a lot of jank and FIXME material here, notably I had to re-add manually pumped Core::EventLoop instances on both sides, in order to get the IPC protocol running. This introduces a lot of latency and we should work towards replacing those loops with improved abstractions. The WebContent process is built separately here (not part of Lagom) and we provide our own main.cpp for it. Like everything, this can be better architected, it's just a starting point. :^)
This commit is contained in:
parent
2451a447f5
commit
26a7ea0e0f
14 changed files with 1313 additions and 795 deletions
|
@ -10,7 +10,7 @@
|
|||
#define AK_DONT_REPLACE_STD
|
||||
|
||||
#include "History.h"
|
||||
#include "SimpleWebView.h"
|
||||
#include "WebContentView.h"
|
||||
#include <QBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
|
@ -24,7 +24,7 @@ class Tab final : public QWidget {
|
|||
public:
|
||||
explicit Tab(BrowserWindow* window);
|
||||
|
||||
SimpleWebView& view() { return *m_view; }
|
||||
WebContentView& view() { return *m_view; }
|
||||
|
||||
void navigate(QString);
|
||||
|
||||
|
@ -52,7 +52,7 @@ private:
|
|||
QBoxLayout* m_layout;
|
||||
QToolBar* m_toolbar { nullptr };
|
||||
QLineEdit* m_location_edit { nullptr };
|
||||
SimpleWebView* m_view { nullptr };
|
||||
WebContentView* m_view { nullptr };
|
||||
BrowserWindow* m_window { nullptr };
|
||||
Browser::History m_history;
|
||||
QString m_title;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue