mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
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.
This commit is contained in:
committed by
Andreas Kling
parent
42d93005ac
commit
9f71799456
@@ -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({});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user