mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
TextEditor: Replace InProcessWebView with OutOfProcessWebView
This commit is contained in:
parent
9f3789cdc7
commit
f6af2d747e
Notes:
sideshowbarker
2024-07-19 01:58:08 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/f6af2d747e2 Pull-request: https://github.com/SerenityOS/serenity/pull/3727
4 changed files with 6 additions and 5 deletions
|
@ -25,7 +25,7 @@
|
|||
"name": "editor"
|
||||
},
|
||||
{
|
||||
"class": "Web::InProcessWebView",
|
||||
"class": "Web::OutOfProcessWebView",
|
||||
"name": "webview",
|
||||
"visible": false
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#include <LibGUI/ToolBarContainer.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibMarkdown/Document.h>
|
||||
#include <LibWeb/InProcessWebView.h>
|
||||
#include <LibWeb/OutOfProcessWebView.h>
|
||||
#include <string.h>
|
||||
|
||||
TextEditorWidget::TextEditorWidget()
|
||||
|
@ -85,7 +85,7 @@ TextEditorWidget::TextEditorWidget()
|
|||
update_title();
|
||||
};
|
||||
|
||||
m_page_view = static_cast<Web::InProcessWebView&>(*find_descendant_by_name("webview"));
|
||||
m_page_view = static_cast<Web::OutOfProcessWebView&>(*find_descendant_by_name("webview"));
|
||||
m_page_view->on_link_hover = [this](auto& url) {
|
||||
if (url.is_valid())
|
||||
m_statusbar->set_text(url.to_string());
|
||||
|
|
|
@ -106,7 +106,7 @@ private:
|
|||
RefPtr<GUI::Action> m_ini_highlight;
|
||||
RefPtr<GUI::Action> m_shell_highlight;
|
||||
|
||||
RefPtr<Web::InProcessWebView> m_page_view;
|
||||
RefPtr<Web::OutOfProcessWebView> m_page_view;
|
||||
|
||||
GUI::ActionGroup font_actions;
|
||||
|
||||
|
|
|
@ -148,6 +148,7 @@ namespace Web {
|
|||
class EventHandler;
|
||||
class Frame;
|
||||
class FrameLoader;
|
||||
class InProcessWebView;
|
||||
class LayoutBlock;
|
||||
class LayoutButton;
|
||||
class LayoutCheckBox;
|
||||
|
@ -159,9 +160,9 @@ class LineBox;
|
|||
class LineBoxFragment;
|
||||
class LoadRequest;
|
||||
class Origin;
|
||||
class OutOfProcessWebView;
|
||||
class Page;
|
||||
class PageClient;
|
||||
class InProcessWebView;
|
||||
class PaintContext;
|
||||
class Resource;
|
||||
class ResourceLoader;
|
||||
|
|
Loading…
Reference in a new issue