mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibWeb/DOM: Actually stub out pointer-capture API
For real this time. This makes panning the KendoReact map widget actually work: https://www.telerik.com/kendo-react-ui/components/map
This commit is contained in:
parent
cfc1fd7305
commit
6ff2324f26
Notes:
github-actions[bot]
2025-04-14 10:56:36 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/6ff2324f26c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4347
3 changed files with 28 additions and 3 deletions
|
@ -3796,4 +3796,24 @@ Optional<String> Element::lang() const
|
|||
return {};
|
||||
return maybe_lang.release_value();
|
||||
}
|
||||
|
||||
void Element::set_pointer_capture(WebIDL::Long pointer_id)
|
||||
{
|
||||
(void)pointer_id;
|
||||
dbgln("FIXME: Implement Element::setPointerCapture()");
|
||||
}
|
||||
|
||||
void Element::release_pointer_capture(WebIDL::Long pointer_id)
|
||||
{
|
||||
(void)pointer_id;
|
||||
dbgln("FIXME: Implement Element::releasePointerCapture()");
|
||||
}
|
||||
|
||||
bool Element::has_pointer_capture(WebIDL::Long pointer_id)
|
||||
{
|
||||
(void)pointer_id;
|
||||
dbgln("FIXME: Implement Element::hasPointerCapture()");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <LibWeb/HTML/TagNames.h>
|
||||
#include <LibWeb/IntersectionObserver/IntersectionObserver.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
|
@ -466,6 +467,10 @@ public:
|
|||
Element const* list_owner() const;
|
||||
size_t ordinal_value() const;
|
||||
|
||||
void set_pointer_capture(WebIDL::Long pointer_id);
|
||||
void release_pointer_capture(WebIDL::Long pointer_id);
|
||||
bool has_pointer_capture(WebIDL::Long pointer_id);
|
||||
|
||||
protected:
|
||||
Element(Document&, DOM::QualifiedName);
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
|
|
@ -121,9 +121,9 @@ interface Element : Node {
|
|||
[CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text);
|
||||
|
||||
// https://w3c.github.io/pointerevents/#extensions-to-the-element-interface
|
||||
[FIXME] undefined setPointerCapture(long pointerId);
|
||||
[FIXME] undefined releasePointerCapture(long pointerId);
|
||||
[FIXME] boolean hasPointerCapture(long pointerId);
|
||||
undefined setPointerCapture(long pointerId);
|
||||
undefined releasePointerCapture(long pointerId);
|
||||
boolean hasPointerCapture(long pointerId);
|
||||
};
|
||||
|
||||
dictionary GetHTMLOptions {
|
||||
|
|
Loading…
Add table
Reference in a new issue