Userspace: Use Core::Object::add() when building interfaces

This commit is contained in:
Andreas Kling 2020-02-23 10:57:42 +01:00
parent 7ec758773c
commit 3d20da9ee4
Notes: sideshowbarker 2024-07-19 09:08:47 +09:00
87 changed files with 403 additions and 438 deletions

View file

@ -46,9 +46,8 @@
#include <LibHTML/ResourceLoader.h>
#include <stdio.h>
HtmlView::HtmlView(GUI::Widget* parent)
: GUI::ScrollableWidget(parent)
, m_main_frame(::Frame::create(*this))
HtmlView::HtmlView()
: m_main_frame(::Frame::create(*this))
{
main_frame().on_set_needs_display = [this](auto& content_rect) {
if (content_rect.is_empty()) {