mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
Libweb: Invalidate layout for the value
-attribute of li
-elements
This commit is contained in:
parent
370098514a
commit
029bcf13fd
Notes:
github-actions[bot]
2025-05-10 23:15:26 +00:00
Author: https://github.com/InvalidUsernameException
Commit: 029bcf13fd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4686
6 changed files with 38 additions and 4 deletions
|
@ -27,6 +27,17 @@ void HTMLLIElement::initialize(JS::Realm& realm)
|
|||
Base::initialize(realm);
|
||||
}
|
||||
|
||||
void HTMLLIElement::attribute_changed(FlyString const& local_name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_)
|
||||
{
|
||||
Base::attribute_changed(local_name, old_value, value, namespace_);
|
||||
|
||||
if (local_name == HTML::AttributeNames::value) {
|
||||
if (auto* owner = list_owner()) {
|
||||
owner->set_needs_layout_tree_update(true, DOM::SetNeedsLayoutTreeUpdateReason::HTMLOListElementOrdinalValues);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#dom-li-value
|
||||
WebIDL::Long HTMLLIElement::value()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue