mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Stop returning the value in HTMLMediaElement::set_current_time
This wasn't actually affecting the result in a script assigning a variable to the result of an expression assigning to currentTime.
This commit is contained in:
parent
14dba82202
commit
418f1575b0
Notes:
github-actions[bot]
2025-10-29 06:23:53 +00:00
Author: https://github.com/Zaggy1024
Commit: 418f1575b0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6626
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 2 additions and 3 deletions
|
|
@ -267,7 +267,7 @@ double HTMLMediaElement::current_time() const
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-currenttime
|
||||
double HTMLMediaElement::set_current_time(double current_time)
|
||||
void HTMLMediaElement::set_current_time(double current_time)
|
||||
{
|
||||
// On setting, if the media element's readyState is HAVE_NOTHING, then it must set the media element's default playback start
|
||||
// position to the new value; otherwise, it must set the official playback position to the new value and then seek to the new
|
||||
|
|
@ -283,7 +283,6 @@ double HTMLMediaElement::set_current_time(double current_time)
|
|||
|
||||
seek_element(current_time);
|
||||
}
|
||||
return current_time;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-fastseek
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue