mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
AK: Use Deducing this for OptionalBase
This is taken from and akin to https://github.com/SerenityOS/serenity/pull/25894
This commit is contained in:
parent
fd4888e800
commit
bcd01da91d
Notes:
github-actions[bot]
2025-11-20 15:28:30 +00:00
Author: https://github.com/Hendiadyoin1
Commit: bcd01da91d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6782
12 changed files with 81 additions and 94 deletions
|
|
@ -861,7 +861,7 @@ CSS::RequiredInvalidationAfterStyleChange Element::recompute_inherited_style()
|
|||
|
||||
RefPtr<CSS::StyleValue const> old_animated_value = computed_properties->animated_property_values().get(property_id).value_or({});
|
||||
RefPtr<CSS::StyleValue const> new_animated_value = CSS::StyleComputer::get_animated_inherit_value(property_id, { *this })
|
||||
.map([&](auto& value) { return value.ptr(); })
|
||||
.map([](auto&& value) { return value.ptr(); })
|
||||
.value_or({});
|
||||
|
||||
invalidation |= CSS::compute_property_invalidation(property_id, old_animated_value, new_animated_value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue