1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

LibWeb: Move everything into the Web namespace

This commit is contained in:
Andreas Kling 2020-03-07 10:27:02 +01:00
parent 6a3b12664a
commit 7a6c4a72d5
143 changed files with 593 additions and 45 deletions

View file

@ -61,10 +61,10 @@ int main(int argc, char** argv)
}
String html = String::copy(f->read_all());
auto document = parse_html_document(html);
auto document = Web::parse_html_document(html);
auto window = GUI::Window::construct();
auto& widget = window->set_main_widget<HtmlView>();
auto& widget = window->set_main_widget<Web::HtmlView>();
widget.set_document(document);
if (!widget.document()->title().is_null())
window->set_title(String::format("%s - HTML", widget.document()->title().characters()));