mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
LibWeb: Expose DOM::Range to JavaScript.
This commit is contained in:
parent
10f9c85090
commit
1c7a834278
12 changed files with 448 additions and 11 deletions
|
@ -41,6 +41,8 @@
|
|||
#include <LibWeb/Bindings/NavigatorObject.h>
|
||||
#include <LibWeb/Bindings/NodeWrapperFactory.h>
|
||||
#include <LibWeb/Bindings/PerformanceWrapper.h>
|
||||
#include <LibWeb/Bindings/RangeConstructor.h>
|
||||
#include <LibWeb/Bindings/RangePrototype.h>
|
||||
#include <LibWeb/Bindings/WindowObject.h>
|
||||
#include <LibWeb/Bindings/XMLHttpRequestConstructor.h>
|
||||
#include <LibWeb/Bindings/XMLHttpRequestPrototype.h>
|
||||
|
@ -86,6 +88,11 @@ void WindowObject::initialize()
|
|||
|
||||
m_xhr_prototype = heap().allocate<XMLHttpRequestPrototype>(*this, *this);
|
||||
add_constructor("XMLHttpRequest", m_xhr_constructor, m_xhr_prototype);
|
||||
|
||||
m_range_prototype = heap().allocate<RangePrototype>(*this, *this);
|
||||
m_range_constructor = heap().allocate<RangeConstructor>(*this, *this);
|
||||
m_range_constructor->define_property("prototype", m_range_prototype);
|
||||
add_constructor("Range", m_range_constructor, m_range_prototype);
|
||||
}
|
||||
|
||||
WindowObject::~WindowObject()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue