mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
Everywhere: Fix a few typos
Some even user-visible!
This commit is contained in:
parent
3d10132021
commit
f56b897622
10 changed files with 13 additions and 13 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue