فهرست منبع

LibWeb: Update incorrect WEB_PLATFORM_OBJECT base class for two classes

Andreas Kling 2 سال پیش
والد
کامیت
00a98c24a2
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Userland/Libraries/LibWeb/DOM/StaticRange.h
  2. 1 1
      Userland/Libraries/LibWeb/DOM/TreeWalker.h

+ 1 - 1
Userland/Libraries/LibWeb/DOM/StaticRange.h

@@ -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);

+ 1 - 1
Userland/Libraries/LibWeb/DOM/TreeWalker.h

@@ -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>);