Fix some typos

Signed-off-by: Dirk Stolle <striezel-dev@web.de>
This commit is contained in:
Dirk Stolle 2022-12-17 03:22:34 +01:00
parent dca3b2f0c1
commit f2260e7c18
8 changed files with 12 additions and 12 deletions

View file

@ -289,7 +289,7 @@ fn tile_image(position: &mut Au, size: &mut Au, absolute_anchor_origin: Au, imag
*position = new_position;
}
/// For either the x or the y axis ajust various values to account for tiling.
/// For either the x or the y axis adjust various values to account for tiling.
///
/// This is done separately for both axes because the repeat keywords may differ.
fn tile_image_axis(

View file

@ -20,7 +20,7 @@ struct StopRun {
stop_count: usize,
}
/// Determines the radius of a circle if it was not explictly provided.
/// Determines the radius of a circle if it was not explicitly provided.
/// <https://drafts.csswg.org/css-images-3/#typedef-size>
fn circle_size_keyword(
keyword: ShapeExtent,
@ -57,7 +57,7 @@ where
)
}
/// Determines the radius of an ellipse if it was not explictly provided.
/// Determines the radius of an ellipse if it was not explicitly provided.
/// <https://drafts.csswg.org/css-images-3/#typedef-size>
fn ellipse_size_keyword(
keyword: ShapeExtent,

View file

@ -1164,11 +1164,11 @@ impl Fragment {
// https://drafts.csswg.org/css2/visudet.html#min-max-widths
(MaybeAuto::Auto, MaybeAuto::Auto) => {
if self.has_intrinsic_ratio() {
// This approch follows the spirit of cover and contain constraint.
// This approach follows the spirit of cover and contain constraint.
// https://drafts.csswg.org/css-images-3/#cover-contain
// First, create two rectangles that keep aspect ratio while may be clamped
// by the contraints;
// by the constraints;
let first_isize = inline_constraint.clamp(intrinsic_inline_size);
let first_bsize = Au::new(
(first_isize.0 as i64 * intrinsic_block_size.0 as i64 /

View file

@ -183,7 +183,7 @@ pub fn guess_float_placement(flow: &mut dyn Flow) {
.flags
.contains(FlowFlags::IS_ABSOLUTELY_POSITIONED)
{
// Do not propagate floats in or out, but do propogate between kids.
// Do not propagate floats in or out, but do propagate between kids.
guess_float_placement(kid);
} else {
floats_in.compute_floats_in(kid);

View file

@ -312,8 +312,8 @@ impl<'a> PostorderFlowTraversal for AssignBSizes<'a> {
fn should_process(&self, flow: &mut dyn Flow) -> bool {
let base = flow.base();
base.restyle_damage.intersects(ServoRestyleDamage::REFLOW_OUT_OF_FLOW | ServoRestyleDamage::REFLOW) &&
// The fragmentation countainer is responsible for calling
// Flow::fragment recursively
// The fragmentation container is responsible for calling
// Flow::fragment recursively.
!base.flags.contains(FlowFlags::CAN_BE_FRAGMENTED)
}
}