mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-18 23:12:02 +00:00
LibWeb/HTML: Replace "zero" with "0" in some places
Corresponds to 706b986010
This commit is contained in:
parent
e74afec9c5
commit
22cc36eeaa
Notes:
github-actions[bot]
2025-07-08 16:11:04 +00:00
Author: https://github.com/AtkinsSJ
Commit: 22cc36eeaa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 4 additions and 4 deletions
|
@ -743,10 +743,10 @@ WebIDL::ExceptionOr<void> FormAssociatedTextControlElement::set_selection_range(
|
|||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-range
|
||||
void FormAssociatedTextControlElement::set_the_selection_range(Optional<WebIDL::UnsignedLong> start, Optional<WebIDL::UnsignedLong> end, SelectionDirection direction, SelectionSource source)
|
||||
{
|
||||
// 1. If start is null, let start be zero.
|
||||
// 1. If start is null, let start be 0.
|
||||
start = start.value_or(0);
|
||||
|
||||
// 2. If end is null, let end be zero.
|
||||
// 2. If end is null, let end be 0.
|
||||
end = end.value_or(0);
|
||||
|
||||
// 3. Set the selection of the text control to the sequence of code units within the relevant
|
||||
|
|
|
@ -1256,7 +1256,7 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::process_media_data(Function<void(Str
|
|||
// 9. Set the media element's default playback start position to zero.
|
||||
m_default_playback_start_position = 0;
|
||||
|
||||
// FIXME: 10. Let the initial playback position be zero.
|
||||
// FIXME: 10. Let the initial playback position be 0.
|
||||
// FIXME: 11. If either the media resource or the URL of the current media resource indicate a particular start time, then set the initial playback
|
||||
// position to that time and, if jumped is still false, seek to that time.
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ i32 WindowOrWorkerGlobalScopeMixin::run_timer_initialization_steps(TimerHandler
|
|||
// 2. If previousId was given, let id be previousId; otherwise, let id be an implementation-defined integer that is greater than zero and does not already exist in global's map of setTimeout and setInterval IDs.
|
||||
auto id = previous_id.has_value() ? previous_id.value() : m_timer_id_allocator.allocate();
|
||||
|
||||
// FIXME: 3. If the surrounding agent's event loop's currently running task is a task that was created by this algorithm, then let nesting level be the task's timer nesting level. Otherwise, let nesting level be zero.
|
||||
// FIXME: 3. If the surrounding agent's event loop's currently running task is a task that was created by this algorithm, then let nesting level be the task's timer nesting level. Otherwise, let nesting level be 0.
|
||||
|
||||
// 4. If timeout is less than 0, then set timeout to 0.
|
||||
if (timeout < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue