TextEditor: Replace InProcessWebView with OutOfProcessWebView

This commit is contained in:
Linus Groh 2020-10-08 21:12:10 +01:00 committed by Andreas Kling
parent 9f3789cdc7
commit f6af2d747e
Notes: sideshowbarker 2024-07-19 01:58:08 +09:00
4 changed files with 6 additions and 5 deletions

View file

@ -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());