Skip to content

Commit

Permalink
LibWeb: Fix compile error for popover element internal lambdas
Browse files Browse the repository at this point in the history
These were converted to lambdas in
6b921e9
But I merged fcf6cc2 without checking
that the code had responded to the change.
  • Loading branch information
ADKaster committed Dec 12, 2024
1 parent 6dfcdaa commit 8752fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libraries/LibWeb/HTML/HTMLElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,13 @@ WebIDL::ExceptionOr<void> HTMLElement::show_popover(ThrowExceptions throw_except
event_init.new_state = "open"_string;
event_init.cancelable = true;
if (!dispatch_event(ToggleEvent::create(realm(), HTML::EventNames::beforetoggle, move(event_init)))) {
cleanup_showing_flag->function()();
cleanup_showing_flag();
return {};
}

// 9. If the result of running check popover validity given element, false, throwExceptions, and document is false, then run cleanupShowingFlag and return.
if (!TRY(check_popover_validity(ExpectedToBeShowing::No, throw_exceptions, nullptr))) {
cleanup_showing_flag->function()();
cleanup_showing_flag();
return {};
}

Expand Down Expand Up @@ -1137,7 +1137,7 @@ WebIDL::ExceptionOr<void> HTMLElement::hide_popover(FocusPreviousElement, FireEv

// 10.3. If the result of running check popover validity given element, true, throwExceptions, and null is false, then run cleanupSteps and return.
if (!TRY(check_popover_validity(ExpectedToBeShowing::Yes, throw_exceptions, nullptr))) {
cleanup_steps->function()();
cleanup_steps();
return {};
}
// 10.4. Request an element to be removed from the top layer given element.
Expand Down

0 comments on commit 8752fd1

Please sign in to comment.