mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Add Element::did_remove_attribute() virtual
This allows subclasses to react to DOM attributes being removed.
This commit is contained in:
parent
e91b2c57c1
commit
bdf0254b16
2 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,8 @@ void Element::remove_attribute(const FlyString& name)
|
|||
{
|
||||
m_attributes->remove_attribute(name);
|
||||
|
||||
did_remove_attribute(name);
|
||||
|
||||
// FIXME: Invalidate less.
|
||||
document().invalidate_style();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue