LibWeb+LibGfx: Apply editorial punctuation/whitespace/markup fixes

Corresponds to d426109ea1
and fd08f81d06
This commit is contained in:
Sam Atkins 2025-06-24 11:18:14 +01:00 committed by Shannon Booth
parent a35d14eab3
commit 423cdd447d
Notes: github-actions[bot] 2025-06-24 15:13:34 +00:00
35 changed files with 108 additions and 103 deletions

View file

@ -322,7 +322,7 @@ static Vector<Variant<String, RequiredLineBreakCount>> rendered_text_collection_
// if the computed value of the 'display' property is not 'none':
// FIXME: - select elements have an associated non-replaced inline CSS box whose child boxes include only those of optgroup and option element child nodes;
// FIXME: - optgroup elements have an associated non-replaced block-level CSS box whose child boxes include only those of option element child nodes; and
// FIXME: - option element have an associated non-replaced block-level CSS box whose child boxes are as normal for non-replaced block-level CSS boxes.
// FIXME: - option elements have an associated non-replaced block-level CSS box whose child boxes are as normal for non-replaced block-level CSS boxes.
auto* layout_node = node.layout_node();
if (!layout_node)
return items;
@ -1268,7 +1268,7 @@ WebIDL::ExceptionOr<void> HTMLElement::show_popover(ThrowExceptions throw_except
m_popover_showing_or_hiding = false;
};
// 9. If the result of firing an event named beforetoggle, using ToggleEvent, with the cancelable attribute initialized to true, the oldState attribute initialized to "closed", the newState attribute initialized to "open" at element, and the source attribute initialized to invoker is false, then run cleanupShowingFlag and return.
// 9. If the result of firing an event named beforetoggle, using ToggleEvent, with the cancelable attribute initialized to true, the oldState attribute initialized to "closed", the newState attribute initialized to "open" at element, and the source attribute initialized to invoker at element is false, then run cleanupShowingFlag and return.
ToggleEventInit event_init {};
event_init.old_state = "closed"_string;
event_init.new_state = "open"_string;
@ -1363,7 +1363,7 @@ WebIDL::ExceptionOr<void> HTMLElement::show_popover(ThrowExceptions throw_except
// 2. If originalType is not equal to the value of element's popover attribute, then:
if (original_type != popover()) {
// 1. If throwExceptions is true, then throw a "InvalidStateError" DOMException.
// 1. If throwExceptions is true, then throw an "InvalidStateError" DOMException.
if (throw_exceptions == ThrowExceptions::Yes)
return WebIDL::InvalidStateError::create(realm(), "Element is not in a valid state to show a popover"_string);