1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

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
parent 6fe333607d
commit 5cdbea4ae0
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) {