2020-03-14 16:31:40 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-03-14 16:31:40 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-03-14 09:15:11 -03:00
|
|
|
#include <LibWeb/Bindings/Wrappable.h>
|
|
|
|
|
#include <LibWeb/Bindings/Wrapper.h>
|
|
|
|
|
|
|
|
|
|
namespace Web {
|
|
|
|
|
namespace Bindings {
|
|
|
|
|
|
|
|
|
|
Wrappable::~Wrappable()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Wrappable::set_wrapper(Wrapper& wrapper)
|
|
|
|
|
{
|
2021-02-23 16:42:32 -03:00
|
|
|
VERIFY(!m_wrapper);
|
2020-03-14 09:15:11 -03:00
|
|
|
m_wrapper = wrapper.make_weak_ptr();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|