|
@@ -15,6 +15,7 @@
|
|
|
#include <LibWeb/DOM/ProcessingInstruction.h>
|
|
|
#include <LibWeb/DOM/Range.h>
|
|
|
#include <LibWeb/DOM/Text.h>
|
|
|
+#include <LibWeb/Geometry/DOMRect.h>
|
|
|
#include <LibWeb/HTML/Window.h>
|
|
|
|
|
|
namespace Web::DOM {
|
|
@@ -1102,4 +1103,11 @@ WebIDL::ExceptionOr<void> Range::delete_contents()
|
|
|
return {};
|
|
|
}
|
|
|
|
|
|
+// https://w3c.github.io/csswg-drafts/cssom-view/#dom-range-getboundingclientrect
|
|
|
+JS::NonnullGCPtr<Geometry::DOMRect> Range::get_bounding_client_rect() const
|
|
|
+{
|
|
|
+ dbgln("(STUBBED) Range::get_bounding_client_rect()");
|
|
|
+ return Geometry::DOMRect::construct_impl(realm(), 0, 0, 0, 0);
|
|
|
+}
|
|
|
+
|
|
|
}
|