summaryrefslogtreecommitdiff
path: root/layout/generic
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-23 14:52:16 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-23 14:52:16 +0000
commitec277098c104069d244949a773d50665e6d30ba5 (patch)
treec1685be6dd885ac1d903dbf21f68c2cf8ba252ad /layout/generic
parent551a6a9fdc67c1ef0f6d2649b79eb9b62a43f8c6 (diff)
downloaduxp-ec277098c104069d244949a773d50665e6d30ba5.tar.gz
Issue mcp-graveyard/UXP#1656 - Part 2: Unmangle some unfortunate UTF-8 victims.
The poor fellows got lost in an ASCII-interpretation of the world.
Diffstat (limited to 'layout/generic')
-rw-r--r--layout/generic/nsGridContainerFrame.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/layout/generic/nsGridContainerFrame.cpp b/layout/generic/nsGridContainerFrame.cpp
index 1b767997e3..0af05be509 100644
--- a/layout/generic/nsGridContainerFrame.cpp
+++ b/layout/generic/nsGridContainerFrame.cpp
@@ -1403,7 +1403,7 @@ struct nsGridContainerFrame::Tracks
const LineRange& aRange,
const GridItemInfo& aGridItem);
- // Helper method that returns the track size to use in ??11.5.1.2
+ // Helper method that returns the track size to use in §11.5.1.2
// https://drafts.csswg.org/css-grid/#extra-space
template<TrackSizingPhase phase> static
nscoord StartSizeInDistribution(const TrackSize& aSize)
@@ -1426,7 +1426,7 @@ struct nsGridContainerFrame::Tracks
/**
* Collect the tracks which are growable (matching aSelector) into
* aGrowableTracks, and return the amount of space that can be used
- * to grow those tracks. This method implements CSS Grid ??11.5.1.2.
+ * to grow those tracks. This method implements CSS Grid §11.5.1.2.
* https://drafts.csswg.org/css-grid/#extra-space
*/
template<TrackSizingPhase phase>
@@ -1537,7 +1537,7 @@ struct nsGridContainerFrame::Tracks
nscoord limit = sz.mLimit;
if (MOZ_UNLIKELY((sz.mState & TrackSize::eFitContent) &&
aFitContentClamper)) {
- // Clamp the limit to the fit-content() size, for ??12.5.2 step 5/6.
+ // Clamp the limit to the fit-content() size, for §12.5.2 step 5/6.
aFitContentClamper(track, sz.mBase, &limit);
}
if (newBase > limit) {
@@ -1609,7 +1609,7 @@ struct nsGridContainerFrame::Tracks
/**
* Mark all tracks in aGrowableTracks with an eSkipGrowUnlimited bit if
- * they *shouldn't* grow unlimited in ??11.5.1.2.3 "Distribute space beyond
+ * they *shouldn't* grow unlimited in §11.5.1.2.3 "Distribute space beyond
* growth limits" https://drafts.csswg.org/css-grid/#extra-space
* Return the number of tracks that are still growable.
*/
@@ -1671,7 +1671,7 @@ struct nsGridContainerFrame::Tracks
nscoord newBase = sz.mBase + delta;
if (MOZ_UNLIKELY((sz.mState & TrackSize::eFitContent) &&
aFitContentClamper)) {
- // Clamp newBase to the fit-content() size, for ??12.5.2 step 5/6.
+ // Clamp newBase to the fit-content() size, for §12.5.2 step 5/6.
if (aFitContentClamper(track, sz.mBase, &newBase)) {
didClamp = true;
delta = newBase - sz.mBase;
@@ -4104,7 +4104,7 @@ nsGridContainerFrame::Tracks::ResolveIntrinsicSizeStep1(
sz.mLimit = std::max(sz.mLimit, s);
}
if (MOZ_UNLIKELY(sz.mState & TrackSize::eFitContent)) {
- // Clamp mLimit to the fit-content() size, for ??12.5.1.
+ // Clamp mLimit to the fit-content() size, for §12.5.1.
auto maxCoord = aFunctions.MaxSizingFor(aRange.mStart);
nscoord fitContentClamp =
nsRuleNode::ComputeCoordPercentCalc(maxCoord, aPercentageBasis);
@@ -4845,8 +4845,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 container???s min-width/height (or larger than the grid
- // container???s 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) {