mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-19 06:07:09 +00:00
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.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#include <LibHTML/DOM/Document.h>
|
||||
#include <LibHTML/Frame.h>
|
||||
#include <LibHTML/HtmlView.h>
|
||||
|
||||
Frame::Frame()
|
||||
Frame::Frame(HtmlView& html_view)
|
||||
: m_html_view(html_view.make_weak_ptr())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user