1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

LibWeb: Abstract Range's members into AbstractRange

Range's member variables are stored in AbstractRange as per the spec,
as they are also shared with StaticRange.
This commit is contained in:
Luke Wilde 2022-01-30 23:35:51 +00:00 committed by Andreas Kling
parent ed76b4238c
commit a2acda5669
8 changed files with 86 additions and 42 deletions

View file

@ -1,18 +1,13 @@
#import <DOM/Node.idl>
#import <DOM/AbstractRange.idl>
interface Range {
[Exposed=Window]
interface Range : AbstractRange {
constructor();
readonly attribute boolean collapsed;
readonly attribute Node commonAncestorContainer;
readonly attribute Node startContainer;
readonly attribute unsigned long startOffset;
readonly attribute Node endContainer;
readonly attribute unsigned long endOffset;
undefined setStart(Node node, unsigned long offset);
undefined setEnd(Node node, unsigned long offset);