diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-04-20 06:34:59 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-21 07:54:36 +0200 |
commit | 9f71799456da13024dc0af5305fb8d87e0d1e19f (patch) | |
tree | eb04bb3e999a638afb6dc29e5f3e52355bc84dae /Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp | |
parent | 42d93005ac3933ed87e3d20ddce8bffb68290e27 (diff) | |
download | serenity-9f71799456da13024dc0af5305fb8d87e0d1e19f.zip |
LibWeb: Make HTMLMediaElement's attribute change handlers protected
These will be need to be overridden by HTMLVideoElement. We also need to
be sure to invoke HTMLMediaElement's base class's did_remove_attribute.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp index e8b878f4c8..73eed82b27 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp @@ -97,6 +97,8 @@ void HTMLMediaElement::parse_attribute(DeprecatedFlyString const& name, Deprecat void HTMLMediaElement::did_remove_attribute(DeprecatedFlyString const& name) { + Base::did_remove_attribute(name); + if (name == HTML::AttributeNames::crossorigin) m_crossorigin = cors_setting_attribute_from_keyword({}); } |