layout: fix corrupted unicode in comments, no code change

This commit is contained in:
roytam1 2024-06-11 10:40:21 +08:00
commit 36bc963804
2 changed files with 5 additions and 5 deletions

View file

@ -9241,12 +9241,12 @@ ComputeSVGReferenceRect(nsIFrame* aFrame,
MOZ_ASSERT(svgElement);
if (svgElement && svgElement->HasViewBoxRect()) {
// If a viewBox attribute is specified for the SVG viewport creating
// If a 'viewBox' attribute is specified for the SVG viewport creating
// element:
// 1. The reference box is positioned at the origin of the coordinate
// system established by the viewBox attribute.
// system established by the 'viewBox' attribute.
// 2. The dimension of the reference box is set to the width and height
// values of the viewBox attribute.
// values of the 'viewBox' attribute.
nsSVGViewBox* viewBox = svgElement->GetViewBox();
const nsSVGViewBoxRect& value = viewBox->GetAnimValue();
r = nsRect(nsPresContext::CSSPixelsToAppUnits(value.x),

View file

@ -4848,8 +4848,8 @@ nsGridContainerFrame::Tracks::StretchFlexibleTracks(
applyMinMax = false;
// https://drafts.csswg.org/css-grid/#algo-flex-tracks
// "If using this flex fraction would cause the grid to be smaller than
// the grid containers min-width/height (or larger than the grid
// containers max-width/height), then redo this step, treating the free
// the grid container's min-width/height (or larger than the grid
// container's max-width/height), then redo this step, treating the free
// space as definite [...]"
nscoord newSize = 0;
for (auto& sz : mSizes) {