summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/HtmlView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-25 21:19:03 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-25 21:19:21 +0100
commit8dc6f7cd4f3408a4c8551c68127d8167d87c28c2 (patch)
tree9c1cadffe7d3961f9f08b40136725bd9cdbb9066 /Libraries/LibHTML/HtmlView.cpp
parent94bc46ee70a8f0c642297828dab8ab6502d03bd9 (diff)
downloadserenity-8dc6f7cd4f3408a4c8551c68127d8167d87c28c2.zip
LibHTML: Give Frame a (weak) back-pointer to the HtmlView
This will be the official path from DOM/layout code to the HtmlView for now. Perhaps in the future we will have a fancier abstraction.
Diffstat (limited to 'Libraries/LibHTML/HtmlView.cpp')
-rw-r--r--Libraries/LibHTML/HtmlView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibHTML/HtmlView.cpp b/Libraries/LibHTML/HtmlView.cpp
index 50f5d34525..dec45d1fef 100644
--- a/Libraries/LibHTML/HtmlView.cpp
+++ b/Libraries/LibHTML/HtmlView.cpp
@@ -22,7 +22,7 @@
HtmlView::HtmlView(GWidget* parent)
: GScrollableWidget(parent)
- , m_main_frame(Frame::create())
+ , m_main_frame(Frame::create(*this))
{
main_frame().on_set_needs_display = [this](auto& content_rect) {
if (content_rect.is_empty()) {