1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibWeb: Rename Web::HtmlView => Web::PageView

This widget doesn't just view HTML, it views a web page. :^)
This commit is contained in:
Andreas Kling 2020-05-28 18:21:22 +02:00
parent 5f8cbe6a1b
commit 42243d2e06
24 changed files with 133 additions and 133 deletions

View file

@ -35,7 +35,7 @@
#include <LibWeb/CSS/StyleResolver.h>
#include <LibWeb/DOM/Element.h>
#include <LibWeb/Dump.h>
#include <LibWeb/HtmlView.h>
#include <LibWeb/PageView.h>
#include <LibWeb/Layout/LayoutBlock.h>
#include <LibWeb/Layout/LayoutInline.h>
#include <LibWeb/Layout/LayoutNode.h>
@ -64,7 +64,7 @@ int main(int argc, char** argv)
auto document = Web::parse_html_document(html);
auto window = GUI::Window::construct();
auto& widget = window->set_main_widget<Web::HtmlView>();
auto& widget = window->set_main_widget<Web::PageView>();
widget.set_document(document);
if (!widget.document()->title().is_null())
window->set_title(String::format("%s - HTML", widget.document()->title().characters()));