mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-26 06:49:12 +03:00
LibWeb: SVGElement includes GlobalEventHandlers
This fixes many tests on wpt/html/webappapis/scripting/events/event-handler-all-global-events.html
This commit is contained in:
parent
ffb3a28684
commit
59f74b909b
Notes:
sideshowbarker
2024-07-17 04:03:27 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/59f74b909b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/539
@ -11,7 +11,9 @@
|
|||||||
|
|
||||||
namespace Web::SVG {
|
namespace Web::SVG {
|
||||||
|
|
||||||
class SVGElement : public DOM::Element {
|
class SVGElement
|
||||||
|
: public DOM::Element
|
||||||
|
, public HTML::GlobalEventHandlers {
|
||||||
WEB_PLATFORM_OBJECT(SVGElement, DOM::Element);
|
WEB_PLATFORM_OBJECT(SVGElement, DOM::Element);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -42,6 +44,9 @@ protected:
|
|||||||
JS::NonnullGCPtr<SVGAnimatedLength> svg_animated_length_for_property(CSS::PropertyID) const;
|
JS::NonnullGCPtr<SVGAnimatedLength> svg_animated_length_for_property(CSS::PropertyID) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// ^HTML::GlobalEventHandlers
|
||||||
|
virtual JS::GCPtr<DOM::EventTarget> global_event_handlers_to_event_target(FlyString const&) override { return *this; }
|
||||||
|
|
||||||
virtual bool is_svg_element() const final { return true; }
|
virtual bool is_svg_element() const final { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,5 +8,6 @@
|
|||||||
interface SVGElement : Element {
|
interface SVGElement : Element {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SVGElement includes GlobalEventHandlers;
|
||||||
SVGElement includes HTMLOrSVGElement;
|
SVGElement includes HTMLOrSVGElement;
|
||||||
SVGElement includes ElementCSSInlineStyle;
|
SVGElement includes ElementCSSInlineStyle;
|
||||||
|
Loading…
Reference in New Issue
Block a user