1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

LibWeb+Browser: Use the new HTML parser by default

You can still run the old parser with "br -O", but the new one is good
enough to be the default parser now. We'll fix issues as we go and
eventually remove the old one completely. :^)
This commit is contained in:
Andreas Kling 2020-06-01 19:07:38 +02:00
parent 517cf65c99
commit 8766e49a7c
5 changed files with 13 additions and 14 deletions

View file

@ -59,7 +59,7 @@
namespace Browser {
extern bool g_use_new_html_parser;
extern bool g_use_old_html_parser;
extern String g_home_url;
Tab::Tab()
@ -71,7 +71,7 @@ Tab::Tab()
auto& toolbar = m_toolbar_container->add<GUI::ToolBar>();
m_page_view = widget.add<Web::PageView>();
m_page_view->set_use_new_parser(g_use_new_html_parser);
m_page_view->set_use_old_parser(g_use_old_html_parser);
m_go_back_action = GUI::CommonActions::make_go_back_action([this](auto&) {
m_history.go_back();