mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
LibWeb: Fix typo in StackOfOpenElements::topmost_special_node_below()
Backwards iteration works better if we actually go backwards! :^)
This commit is contained in:
parent
ca23db10ef
commit
1212485348
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ void StackOfOpenElements::pop_until_an_element_with_tag_name_has_been_popped(con
|
|||
Element* StackOfOpenElements::topmost_special_node_below(const Element& formatting_element)
|
||||
{
|
||||
Element* found_element = nullptr;
|
||||
for (ssize_t i = m_elements.size() - 1; i >= 0; ++i) {
|
||||
for (ssize_t i = m_elements.size() - 1; i >= 0; --i) {
|
||||
auto& element = m_elements[i];
|
||||
if (&element == &formatting_element)
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue