mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb: Rename get_inherit_value
to get_non_animated_inherit_value
This more acurately represents what it does.
This commit is contained in:
parent
3b6d17cd42
commit
b80e6a4d30
Notes:
github-actions[bot]
2025-09-19 09:09:28 +00:00
Author: https://github.com/Calme1709
Commit: b80e6a4d30
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6072
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 6 additions and 6 deletions
|
@ -1025,7 +1025,7 @@ void StyleComputer::collect_animation_into(DOM::AbstractElement abstract_element
|
|||
if (auto inherited_animated_value = get_animated_inherit_value(longhand_id, abstract_element); inherited_animated_value.has_value())
|
||||
return inherited_animated_value.value();
|
||||
|
||||
return get_inherit_value(longhand_id, abstract_element);
|
||||
return get_non_animated_inherit_value(longhand_id, abstract_element);
|
||||
}
|
||||
|
||||
if (longhand_value.is_initial() || longhand_value.is_unset())
|
||||
|
@ -1623,7 +1623,7 @@ GC::Ref<CascadedProperties> StyleComputer::compute_cascaded_values(DOM::Abstract
|
|||
return cascaded_properties;
|
||||
}
|
||||
|
||||
NonnullRefPtr<StyleValue const> StyleComputer::get_inherit_value(PropertyID property_id, DOM::AbstractElement abstract_element)
|
||||
NonnullRefPtr<StyleValue const> StyleComputer::get_non_animated_inherit_value(PropertyID property_id, DOM::AbstractElement abstract_element)
|
||||
{
|
||||
auto parent_element = abstract_element.element_to_inherit_style_from();
|
||||
|
||||
|
@ -2560,7 +2560,7 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
|
|||
|
||||
// FIXME: Logical properties should inherit from their parent's equivalent unmapped logical property.
|
||||
if (should_inherit) {
|
||||
value = get_inherit_value(property_id, abstract_element);
|
||||
value = get_non_animated_inherit_value(property_id, abstract_element);
|
||||
animated_value = get_animated_inherit_value(property_id, abstract_element);
|
||||
inherited = ComputedProperties::Inherited::Yes;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue