mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 12:41:59 +03:00
Everywhere: Fix a few typos
Some even user-visible!
This commit is contained in:
parent
3d10132021
commit
f56b897622
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/f56b897622 Pull-request: https://github.com/SerenityOS/serenity/pull/18333 Reviewed-by: https://github.com/linusg ✅
@ -293,7 +293,7 @@ private:
|
||||
// the caller is perhaps appending very little data in many calls.
|
||||
// To avoid copying the entire ByteBuffer every single time,
|
||||
// we raise the capacity exponentially, by a factor of roughly 1.5.
|
||||
// This is most noticable in Lagom, where kmalloc_good_size is just a no-op.
|
||||
// This is most noticeable in Lagom, where kmalloc_good_size is just a no-op.
|
||||
new_capacity = max(new_capacity, (capacity() * 3) / 2);
|
||||
new_capacity = kmalloc_good_size(new_capacity);
|
||||
auto* new_buffer = static_cast<u8*>(kmalloc(new_capacity));
|
||||
|
@ -335,7 +335,7 @@ public:
|
||||
bool operator<(This const& other) const { return raw() < other.raw(); }
|
||||
bool operator<=(This const& other) const { return raw() <= other.raw(); }
|
||||
|
||||
// FIXE: There are probably better ways to do these
|
||||
// FIXME: There are probably better ways to do these
|
||||
template<Integral I>
|
||||
bool operator==(I other) const
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ This is a roughly categorized list of pages relating to SerenityOS and its subpr
|
||||
|
||||
- [GitHub Organization](https://github.com/SerenityOS) and [GitHub Repositories](https://github.com/orgs/SerenityOS/repositories)
|
||||
- [Changelog](https://changelog.serenityos.org/)
|
||||
- [Issues Found by OSS-Fuzz Continous Fuzzing](https://bugs.chromium.org/p/oss-fuzz/issues/list?q=label:Proj-serenity)
|
||||
- [Issues Found by OSS-Fuzz Continuous Fuzzing](https://bugs.chromium.org/p/oss-fuzz/issues/list?q=label:Proj-serenity)
|
||||
- [Azure CI Overview](https://dev.azure.com/SerenityOS/SerenityOS/_build)
|
||||
- [SonarCloud Static Analysis](https://sonarcloud.io/project/overview?id=SerenityOS_serenity)
|
||||
- [libjs.dev](https://libjs.dev/)
|
||||
|
@ -409,7 +409,7 @@ void CanvasRadialGradientPaintStyle::paint(IntRect physical_bounding_box, PaintF
|
||||
// - Start circle radius == end circle radius
|
||||
// - Start circle larger than end circle (inside end circle)
|
||||
// - Start circle larger than end circle (outside end circle)
|
||||
// - Start cirlce or end circle radius == 0
|
||||
// - Start circle or end circle radius == 0
|
||||
|
||||
Gradient radial_gradient {
|
||||
move(gradient_line),
|
||||
|
@ -1233,7 +1233,7 @@ static ErrorOr<void> decode_webp_chunk_VP8L(WebPLoadingContext& context, Chunk c
|
||||
TransformType transform_type = static_cast<TransformType>(TRY(bit_stream.read_bits(2)));
|
||||
dbgln_if(WEBP_DEBUG, "transform type {}", (int)transform_type);
|
||||
|
||||
// Check that each transfom is used only once.
|
||||
// Check that each transform is used only once.
|
||||
u8 mask = 1 << (int)transform_type;
|
||||
if (seen_transforms & mask)
|
||||
return context.error("WebPImageDecoderPlugin: transform type used multiple times");
|
||||
|
@ -96,7 +96,7 @@ PDFErrorOr<NonnullRefPtr<CFF>> CFF::create(ReadonlyBytes const& cff_bytes, RefPt
|
||||
});
|
||||
}));
|
||||
|
||||
// Create glpyhs (now that we have the subroutines) and associate missing information to store them and their encoding
|
||||
// Create glyphs (now that we have the subroutines) and associate missing information to store them and their encoding
|
||||
auto glyphs = TRY(parse_charstrings(Reader(cff_bytes.slice(charstrings_offset)), subroutines));
|
||||
auto charset = TRY(parse_charset(Reader { cff_bytes.slice(charset_offset) }, glyphs.size()));
|
||||
|
||||
|
@ -601,7 +601,7 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::fetch_resource(AK::URL const& url_re
|
||||
process_media_data(move(failure_callback)).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
// NOTE: The spec does not say exactly when to update the readyState attribute. Rather, it describes what
|
||||
// each step requires, and leaves it up to the user agent to determine when those requirments are
|
||||
// each step requires, and leaves it up to the user agent to determine when those requirements are
|
||||
// reached: https://html.spec.whatwg.org/multipage/media.html#ready-states
|
||||
//
|
||||
// Since we fetch the entire response at once, if we reach here with successfully decoded video
|
||||
|
@ -40,14 +40,14 @@ void SVGGraphicsElement::parse_attribute(DeprecatedFlyString const& name, Deprec
|
||||
}
|
||||
}
|
||||
|
||||
Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> tranform_list)
|
||||
Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> transform_list)
|
||||
{
|
||||
Gfx::AffineTransform affine_transform;
|
||||
auto to_radians = [](float degrees) {
|
||||
return degrees * (AK::Pi<float> / 180.0f);
|
||||
};
|
||||
for (auto& tranform : tranform_list) {
|
||||
tranform.operation.visit(
|
||||
for (auto& transform : transform_list) {
|
||||
transform.operation.visit(
|
||||
[&](Transform::Translate const& translate) {
|
||||
affine_transform.multiply(Gfx::AffineTransform {}.translate({ translate.x, translate.y }));
|
||||
},
|
||||
|
@ -39,6 +39,6 @@ protected:
|
||||
Gfx::AffineTransform m_transform = {};
|
||||
};
|
||||
|
||||
Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> tranform_list);
|
||||
Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> transform_list);
|
||||
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ struct OptionalLabelArgument {
|
||||
{
|
||||
auto blanks = lexer.consume_while(is_ascii_blank);
|
||||
if (blanks.is_empty())
|
||||
return SedError::parsing_error(lexer, "expected one or more blank characeters"sv);
|
||||
return SedError::parsing_error(lexer, "expected one or more blank characters"sv);
|
||||
if (lexer.next_is(is_command_separator))
|
||||
return ArgsT {};
|
||||
return ArgsT { lexer.consume_until(is_command_separator) };
|
||||
@ -219,7 +219,7 @@ struct FilepathArgument {
|
||||
{
|
||||
auto blanks = lexer.consume_while(is_ascii_blank);
|
||||
if (blanks.is_empty())
|
||||
return SedError::parsing_error(lexer, "expected one or more blank characeters"sv);
|
||||
return SedError::parsing_error(lexer, "expected one or more blank characters"sv);
|
||||
auto filepath = lexer.consume_until(is_command_separator);
|
||||
if (filepath.is_empty())
|
||||
return SedError::parsing_error(lexer, "input filename expected, none found");
|
||||
|
Loading…
Reference in New Issue
Block a user