1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:47:35 +00:00

LibWeb: Expose DOM::Range to JavaScript.

This commit is contained in:
asynts 2020-12-06 22:09:24 +01:00 committed by Andreas Kling
parent 10f9c85090
commit 1c7a834278
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)
{
}