mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 23:53:20 +00:00
32 lines
471 B
C++
32 lines
471 B
C++
![]() |
#include <LibHTML/DOM/Document.h>
|
||
|
#include <LibHTML/Frame.h>
|
||
|
|
||
|
Frame::Frame()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Frame::~Frame()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void Frame::set_document(Document* document)
|
||
|
{
|
||
|
if (m_document == document)
|
||
|
return;
|
||
|
|
||
|
if (m_document)
|
||
|
m_document->detach_from_frame({}, *this);
|
||
|
|
||
|
m_document = document;
|
||
|
|
||
|
if (m_document)
|
||
|
m_document->attach_to_frame({}, *this);
|
||
|
}
|
||
|
|
||
|
void Frame::set_size(const Size& size)
|
||
|
{
|
||
|
if (m_size == size)
|
||
|
return;
|
||
|
m_size = size;
|
||
|
}
|