1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:37:35 +00:00

Everywhere: Fix a few typos

Some even user-visible!
This commit is contained in:
Nico Weber 2023-04-12 13:32:21 -04:00 committed by Linus Groh
parent 3d10132021
commit f56b897622
10 changed files with 13 additions and 13 deletions

View file

@ -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

View file

@ -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 }));
},

View file

@ -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);
}