Skip to content

Commit 100f379

Browse files
Psychpsyoalimpfard
authored andcommitted
Everywhere: Clean up AD-HOC and FIXME comments without colons
1 parent edccb92 commit 100f379

27 files changed

+36
-36
lines changed

Libraries/LibCrypto/BigFraction/BigFraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Crypto {
1313

1414
class BigFraction {
15-
// FIXME Make the whole API more error-friendly. This includes:
15+
// FIXME: Make the whole API more error-friendly. This includes:
1616
// - Propagating errors from BigIntegers
1717
// - Returns errors from BigFraction(numerator, denominator);
1818
// - Duplicate fallible operators with a error-friendly version

Libraries/LibJS/Runtime/AbstractOperations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ ThrowCompletionOr<u64> get_rounding_increment_option(VM& vm, Object const& optio
19781978
return static_cast<u64>(integer_increment);
19791979
}
19801980

1981-
// AD-HOC
1981+
// AD-HOC:
19821982
// FIXME: We should add a generic floor() method to our BigInt classes. But for now, since we know we are only dividing
19831983
// by powers of 10, we can implement a very situationally specific method to compute the floor of a division.
19841984
Crypto::SignedBigInteger big_floor(Crypto::SignedBigInteger const& numerator, Crypto::UnsignedBigInteger const& denominator)

Libraries/LibJS/Runtime/ArrayBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void ArrayBuffer::set_value(size_t byte_index, Value value, [[maybe_unused]] boo
417417
AK::Array<u8, sizeof(T)> raw_bytes;
418418
numeric_to_raw_bytes<T>(vm, value, is_little_endian, raw_bytes);
419419

420-
// FIXME 8. If IsSharedArrayBuffer(arrayBuffer) is true, then
420+
// FIXME: 8. If IsSharedArrayBuffer(arrayBuffer) is true, then
421421
if (false) {
422422
// FIXME: a. Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record.
423423
// FIXME: b. Let eventsRecord be the Agent Events Record of execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier().

Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ RoundingIncrement maximum_temporal_duration_rounding_increment(Unit unit)
717717
return temporal_units[to_underlying(unit)].maximum_duration_rounding_increment;
718718
}
719719

720-
// AD-HOC
720+
// https://tc39.es/proposal-temporal/#table-temporal-units
721721
Crypto::UnsignedBigInteger const& temporal_unit_length_in_nanoseconds(Unit unit)
722722
{
723723
switch (unit) {

Libraries/LibWeb/CSS/ComputedProperties.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,14 +1654,14 @@ Gfx::ShapeFeatures ComputedProperties::font_features() const
16541654

16551655
// https://www.w3.org/TR/css-fonts-3/#feature-precedence
16561656

1657-
// FIXME 1. Font features enabled by default, including features required for a given script.
1657+
// FIXME: 1. Font features enabled by default, including features required for a given script.
16581658

1659-
// FIXME 2. If the font is defined via an @font-face rule, the font features implied by the font-feature-settings descriptor in the @font-face rule.
1659+
// FIXME: 2. If the font is defined via an @font-face rule, the font features implied by the font-feature-settings descriptor in the @font-face rule.
16601660

16611661
// 3. Font features implied by the value of the ‘font-variant’ property, the related ‘font-variant’ subproperties and any other CSS property that uses OpenType features (e.g. the ‘font-kerning’ property).
16621662
merged_features.update(font_variant_features());
16631663

1664-
// FIXME 4. Feature settings determined by properties other than ‘font-variant’ or ‘font-feature-settings’. For example, setting a non-default value for the ‘letter-spacing’ property disables common ligatures.
1664+
// FIXME: 4. Feature settings determined by properties other than ‘font-variant’ or ‘font-feature-settings’. For example, setting a non-default value for the ‘letter-spacing’ property disables common ligatures.
16651665

16661666
// 5. Font features implied by the value of ‘font-feature-settings’ property.
16671667
merged_features.update(font_feature_settings());

Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5716,7 +5716,7 @@ RefPtr<GridAutoFlowStyleValue const> Parser::parse_grid_auto_flow_value(TokenStr
57165716
// https://www.w3.org/TR/css-grid-2/#track-sizing
57175717
RefPtr<StyleValue const> Parser::parse_grid_track_size_list(TokenStream<ComponentValue>& tokens)
57185718
{
5719-
// none | <track-list> | <auto-track-list> | FIXME subgrid <line-name-list>?
5719+
// none | <track-list> | <auto-track-list> | FIXME: subgrid <line-name-list>?
57205720

57215721
// none
57225722
{

Libraries/LibWeb/DOM/Document.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ WebIDL::ExceptionOr<Document*> Document::open(Optional<String> const&, Optional<
779779

780780
// FIXME: 9. For each shadow-including inclusive descendant node of document, erase all event listeners and handlers given node.
781781

782-
// FIXME 10. If document is the associated Document of document's relevant global object, then erase all event listeners and handlers given document's relevant global object.
782+
// FIXME: 10. If document is the associated Document of document's relevant global object, then erase all event listeners and handlers given document's relevant global object.
783783

784784
// 11. Replace all with null within document, without firing any mutation events.
785785
replace_all(nullptr);
@@ -4285,7 +4285,7 @@ void Document::abort()
42854285
// https://html.spec.whatwg.org/multipage/document-lifecycle.html#abort-a-document-and-its-descendants
42864286
void Document::abort_a_document_and_its_descendants()
42874287
{
4288-
// FIXME 1. Assert: this is running as part of a task queued on document's relevant agent's event loop.
4288+
// FIXME: 1. Assert: this is running as part of a task queued on document's relevant agent's event loop.
42894289

42904290
// 2. Let descendantNavigables be document's descendant navigables.
42914291
auto descendant_navigables = this->descendant_navigables();

Libraries/LibWeb/DOM/DocumentLoading.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ GC::Ref<DOM::Document> create_document_for_inline_content(GC::Ptr<HTML::Navigabl
3636
// origin: origin
3737
// opener policy: coop
3838
HTML::OpenerPolicyEnforcementResult coop_enforcement_result {
39-
.url = URL::about_error(), // AD-HOC
39+
.url = URL::about_error(), // AD-HOC: https://github.com/whatwg/html/issues/9122
4040
.origin = origin,
4141
.opener_policy = coop
4242
};

Libraries/LibWeb/DOM/SelectionchangeEventDispatching.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void schedule_a_selectionchange_event(T& target, Document& document)
2727
if (target.has_scheduled_selectionchange_event())
2828
return;
2929

30-
// AD-HOC (https://github.com/w3c/selection-api/issues/338):
30+
// AD-HOC: See https://github.com/w3c/selection-api/issues/338
3131
// Set target's has scheduled selectionchange event to true
3232
target.set_scheduled_selectionchange_event(true);
3333

Libraries/LibWeb/Fetch/Fetching/Fetching.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ GC::Ref<PendingResponse> http_network_or_cache_fetch(JS::Realm& realm, Infrastru
18651865
// 13. Append the Fetch metadata headers for httpRequest.
18661866
append_fetch_metadata_headers_for_request(*http_request);
18671867

1868-
// 14. FIXME If httpRequest’s initiator is "prefetch", then set a structured field value
1868+
// 14. FIXME: If httpRequest’s initiator is "prefetch", then set a structured field value
18691869
// given (`Sec-Purpose`, the token prefetch) in httpRequest’s header list.
18701870

18711871
// 15. If httpRequest’s header list does not contain `User-Agent`, then user agents should append

0 commit comments

Comments
 (0)