LibWeb: Implement optional function IDL arguments

This allows us to run some more view transitions WPT tests, one of
which has been imported.
This commit is contained in:
Psychpsyo 2025-09-09 16:02:49 +02:00 committed by Tim Flynn
parent 4559d5f6f6
commit fa3c45d0b4
Notes: github-actions[bot] 2025-09-10 13:51:13 +00:00
2 changed files with 7 additions and 3 deletions

View file

@ -6679,7 +6679,6 @@ void Document::set_onvisibilitychange(WebIDL::CallbackType* value)
}
// https://drafts.csswg.org/css-view-transitions-1/#dom-document-startviewtransition
// FIXME: Calling document.startViewTransition() without arguments throws TypeError instead of calling this.
GC::Ptr<ViewTransition::ViewTransition> Document::start_view_transition(ViewTransition::ViewTransitionUpdateCallback update_callback)
{
// The method steps for startViewTransition(updateCallback) are as follows: