mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
Previously we were inconsistent by generating code for enum definitions but not generating code for dictionaries. With future changes to the IDL generator to expose helpers to convert to and from IDL values this produced circular depdendencies. To solve this problem, also generate the dictionary definitions in bindings headers.
28 lines
699 B
C++
28 lines
699 B
C++
/*
|
|
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/DOM/AbstractRange.h>
|
|
|
|
namespace Web::DOM {
|
|
|
|
class StaticRange final : public AbstractRange {
|
|
WEB_PLATFORM_OBJECT(StaticRange, AbstractRange);
|
|
GC_DECLARE_ALLOCATOR(StaticRange);
|
|
|
|
public:
|
|
static WebIDL::ExceptionOr<GC::Ref<StaticRange>> construct_impl(JS::Realm&, Bindings::StaticRangeInit const&);
|
|
|
|
StaticRange(Node& start_container, u32 start_offset, Node& end_container, u32 end_offset);
|
|
virtual ~StaticRange() override;
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
};
|
|
|
|
}
|