LibWeb: Update incorrect WEB_PLATFORM_OBJECT base class for two classes

This commit is contained in:
Andreas Kling 2022-11-29 20:45:09 +01:00
parent b1f8c5879f
commit 00a98c24a2
Notes: sideshowbarker 2024-07-17 03:51:01 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ struct StaticRangeInit {
};
class StaticRange final : public AbstractRange {
WEB_PLATFORM_OBJECT(StaticRange, JS::Object);
WEB_PLATFORM_OBJECT(StaticRange, AbstractRange);
public:
static WebIDL::ExceptionOr<StaticRange*> construct_impl(JS::Realm&, StaticRangeInit& init);

View File

@ -12,7 +12,7 @@ namespace Web::DOM {
// https://dom.spec.whatwg.org/#treewalker
class TreeWalker final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(TreeWalker, JS::Object);
WEB_PLATFORM_OBJECT(TreeWalker, Bindings::PlatformObject);
public:
static JS::NonnullGCPtr<TreeWalker> create(Node& root, unsigned what_to_show, JS::GCPtr<NodeFilter>);