Skip to content

Truly independent web browser

LibWeb: Use NB: for comments that are not spec text

Andreas Kling5e64565c27d5
diff --git a/Libraries/LibWeb/Bindings/Rust/src/css/css_font_face_rule.rs b/Libraries/LibWeb/Bindings/Rust/src/css/css_font_face_rule.rs
index 165dd1e84d0..4fef88bda62 100644
--- a/Libraries/LibWeb/Bindings/Rust/src/css/css_font_face_rule.rs
+++ b/Libraries/LibWeb/Bindings/Rust/src/css/css_font_face_rule.rs
@@ -106,7 +106,7 @@ impl CSSFontFaceRule {
// followed by the string "font-stretch:", followed by a single SPACE (U+0020),
// followed by the result of performing serialize a <'font-stretch'>,
// followed by the string ";", i.e., SEMICOLON (U+003B).
- // NOTE: font-stretch is now an alias for font-width, so we use that instead.
+ // NB: font-stretch is now an alias for font-width, so we use that instead.
self.append_descriptor(&mut text, "font-stretch", "font-width");
// 8. If rule’s associated font-weight descriptor is present, a single SPACE (U+0020),
diff --git a/Libraries/LibWeb/Bindings/Rust/src/css/css_rule.rs b/Libraries/LibWeb/Bindings/Rust/src/css/css_rule.rs
index b5314337d51..50b49e2d877 100644
--- a/Libraries/LibWeb/Bindings/Rust/src/css/css_rule.rs
+++ b/Libraries/LibWeb/Bindings/Rust/src/css/css_rule.rs
@@ -209,8 +209,8 @@ impl CSSRule {
// https://drafts.csswg.org/cssom/#dom-cssrule-type
pub(crate) fn type_for_bindings(&self, _: &mut CallContext) -> WebIdlResult<u16> {
- // NOTE: Types that aren't defined in the spec must return 0.
- // To do this, we arbitrarily make non-spec ones start at 100.
+ // NB: Types that aren't defined in the spec must return 0.
+ // To do this, we arbitrarily make non-spec ones start at 100.
let rule_type = self.native_rule.cssom_type() as u16;
Ok(if rule_type >= 100 { 0 } else { rule_type })
}
diff --git a/Libraries/LibWeb/Bindings/Rust/src/css/css_rule_list.rs b/Libraries/LibWeb/Bindings/Rust/src/css/css_rule_list.rs
index 7345c68e87a..5b626baf799 100644
--- a/Libraries/LibWeb/Bindings/Rust/src/css/css_rule_list.rs
+++ b/Libraries/LibWeb/Bindings/Rust/src/css/css_rule_list.rs
@@ -177,7 +177,7 @@ impl CSSRuleList {
self.objects.borrow_mut(vm).0.remove(&identity);
// 6. Set old rule’s parent CSS rule and parent CSS style sheet to null.
- // NOTE: We set the parent stylesheet to null within set_parent_rule.
+ // NB: We set the parent stylesheet to null within set_parent_rule.
if let Some(old_object) = old_object {
old_object.set_parent_rule(vm, None);
}
diff --git a/Libraries/LibWeb/Bindings/Rust/src/css/font_face_set.rs b/Libraries/LibWeb/Bindings/Rust/src/css/font_face_set.rs
index 75fdbacb2b5..e60344543bf 100644
--- a/Libraries/LibWeb/Bindings/Rust/src/css/font_face_set.rs
+++ b/Libraries/LibWeb/Bindings/Rust/src/css/font_face_set.rs
@@ -529,7 +529,7 @@ impl FontFaceSet {
// 1. Parse font using the CSS value syntax of the font property. If a syntax error occurs, return a syntax
// error.
// If the parsed value is a CSS-wide keyword, return a syntax error.
- // Note: This case is already caught by font_family_names().
+ // NB: This case is already caught by font_family_names().
// FIXME: Absolutize all relative lengths against the initial values of the corresponding properties. (For
// example, a relative font weight like bolder is evaluated against the initial value normal.)
diff --git a/Libraries/LibWeb/Bindings/Rust/src/css/media_query_list.rs b/Libraries/LibWeb/Bindings/Rust/src/css/media_query_list.rs
index d468aee87e7..ec37146ba7a 100644
--- a/Libraries/LibWeb/Bindings/Rust/src/css/media_query_list.rs
+++ b/Libraries/LibWeb/Bindings/Rust/src/css/media_query_list.rs
@@ -159,9 +159,9 @@ impl MediaQueryList {
pub(crate) fn remove_listener(&self, _: &mut CallContext, callback: Option<CallbackInterface>) -> WebIdlResult<()> {
// 1. Remove an event listener from the associated list of event listeners, whose type is change, callback is
// listener, and capture is false.
- // NOTE: While the spec doesn't technically use remove_event_listener and instead manipulates the list directly,
- // every major engine uses remove_event_listener. This means if an event listener removes another event
- // listener that comes after it, the removed event listener will not be invoked.
+ // NB: While the spec doesn't technically use remove_event_listener and instead manipulates the list directly,
+ // every major engine uses remove_event_listener. This means if an event listener removes another event
+ // listener that comes after it, the removed event listener will not be invoked.
if let Some(callback) = callback {
self.event_target
.remove_event_listener_without_options(CHANGE, &callback);