LibWeb: Expose DOM::Range to JavaScript.

This commit is contained in:
asynts 2020-12-06 22:09:24 +01:00 committed by Andreas Kling
commit 1c7a834278
Notes: sideshowbarker 2024-07-19 00:56:51 +09:00
12 changed files with 448 additions and 11 deletions

View file

@ -27,13 +27,14 @@
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Node.h>
#include <LibWeb/DOM/Range.h>
#include <LibWeb/DOM/Window.h>
namespace Web::DOM {
Range::Range(Document& document)
: m_start_container(document)
Range::Range(Window& window)
: m_start_container(window.document())
, m_start_offset(0)
, m_end_container(document)
, m_end_container(window.document())
, m_end_offset(0)
{
}