mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWeb: Fix compile error for popover element internal lambdas
These were converted to lambdas in6b921e91d4
But I mergedfcf6cc27f2
without checking that the code had responded to the change.
This commit is contained in:
parent
6dfcdaa0d2
commit
7ee3727074
Notes:
github-actions[bot]
2024-12-12 22:57:47 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/7ee3727074a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2894
1 changed files with 3 additions and 3 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue