LibWeb: Rename element_before() => element_immediately_above()

This matches the spec terminology around the "stack of open elements".
This commit is contained in:
Andreas Kling 2022-02-14 22:24:10 +01:00
commit 5cdbea4ae0
Notes: sideshowbarker 2024-07-17 18:47:32 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -123,7 +123,7 @@ StackOfOpenElements::LastElementResult StackOfOpenElements::last_element_with_ta
return { nullptr, -1 };
}
DOM::Element* StackOfOpenElements::element_before(const DOM::Element& target)
DOM::Element* StackOfOpenElements::element_immediately_above(DOM::Element const& target)
{
bool found_target = false;
for (ssize_t i = m_elements.size() - 1; i >= 0; --i) {