diff options
author | Dirk Stolle <striezel-dev@web.de> | 2022-12-17 03:22:34 +0100 |
---|---|---|
committer | Dirk Stolle <striezel-dev@web.de> | 2022-12-17 03:22:34 +0100 |
commit | f2260e7c188d0f8b3184924c4c92ee9c1f82dc88 (patch) | |
tree | ca636ed6b65a848a286e191061b3f5f023675b05 /components/layout | |
parent | dca3b2f0c1a03a616d82f1b951f0685641bc7b3e (diff) | |
download | servo-f2260e7c188d0f8b3184924c4c92ee9c1f82dc88.tar.gz servo-f2260e7c188d0f8b3184924c4c92ee9c1f82dc88.zip |
Fix some typos
Signed-off-by: Dirk Stolle <striezel-dev@web.de>
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/display_list/background.rs | 2 | ||||
-rw-r--r-- | components/layout/display_list/gradient.rs | 4 | ||||
-rw-r--r-- | components/layout/fragment.rs | 4 | ||||
-rw-r--r-- | components/layout/sequential.rs | 2 | ||||
-rw-r--r-- | components/layout/traversal.rs | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/components/layout/display_list/background.rs b/components/layout/display_list/background.rs index c08dcfe8598..60fd72fd4c3 100644 --- a/components/layout/display_list/background.rs +++ b/components/layout/display_list/background.rs @@ -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( diff --git a/components/layout/display_list/gradient.rs b/components/layout/display_list/gradient.rs index b816bca753f..0f5394b69c9 100644 --- a/components/layout/display_list/gradient.rs +++ b/components/layout/display_list/gradient.rs @@ -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, diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 7dbe4c76ffd..9b28aa5dfe9 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -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 / diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs index 59df7de2bbf..39e6ce4662f 100644 --- a/components/layout/sequential.rs +++ b/components/layout/sequential.rs @@ -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); diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs index 5c66004bc1a..d07f76105e8 100644 --- a/components/layout/traversal.rs +++ b/components/layout/traversal.rs @@ -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) } } |