aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/layout/display_list/background.rs2
-rw-r--r--components/layout/display_list/gradient.rs4
-rw-r--r--components/layout/fragment.rs4
-rw-r--r--components/layout/sequential.rs2
-rw-r--r--components/layout/traversal.rs4
-rw-r--r--components/layout_2020/flexbox/layout.rs4
-rw-r--r--components/layout_2020/replaced.rs2
-rw-r--r--components/layout_thread/dom_wrapper.rs2
8 files changed, 12 insertions, 12 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)
}
}
diff --git a/components/layout_2020/flexbox/layout.rs b/components/layout_2020/flexbox/layout.rs
index 9567bb0efbe..e9722c29c8b 100644
--- a/components/layout_2020/flexbox/layout.rs
+++ b/components/layout_2020/flexbox/layout.rs
@@ -352,7 +352,7 @@ fn layout<'context, 'boxes>(
let content_block_size = match flex_context.flex_axis {
FlexAxis::Row => {
// `container_main_size` ends up unused here but in this case that’s fine
- // since it was already excatly the one decided by the outer formatting context.
+ // since it was already exactly the one decided by the outer formatting context.
container_cross_size
},
FlexAxis::Column => {
@@ -362,7 +362,7 @@ fn layout<'context, 'boxes>(
// The spec is missing something to resolve this conflict:
// https://github.com/w3c/csswg-drafts/issues/5190
// And we’ll need to change the signature of `IndependentFormattingContext::layout`
- // to allow the inner formatting context to “negociate” a used inline-size
+ // to allow the inner formatting context to “negotiate” a used inline-size
// with the outer one somehow.
container_main_size
},
diff --git a/components/layout_2020/replaced.rs b/components/layout_2020/replaced.rs
index 3cb7dd725a4..d5b22bdd573 100644
--- a/components/layout_2020/replaced.rs
+++ b/components/layout_2020/replaced.rs
@@ -30,7 +30,7 @@ pub(crate) struct ReplacedContent {
intrinsic: IntrinsicSizes,
}
-/// * Raster images always have an instrinsic width and height, with 1 image pixel = 1px.
+/// * Raster images always have an intrinsic width and height, with 1 image pixel = 1px.
/// The intrinsic ratio should be based on dividing those.
/// See https://github.com/w3c/csswg-drafts/issues/4572 for the case where either is zero.
/// PNG specifically disallows this but I (SimonSapin) am not sure about other formats.
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index cfbc207431a..5c700333c1d 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -1363,7 +1363,7 @@ impl<'le> ThreadSafeLayoutElement<'le> for ServoThreadSafeLayoutElement<'le> {
/// but they have no use right now.
///
/// Note that the element implementation is needed only for selector matching,
-/// not for inheritance (styles are inherited appropiately).
+/// not for inheritance (styles are inherited appropriately).
impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
type Impl = SelectorImpl;