summaryrefslogtreecommitdiffstats
path: root/layout
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
commit7572f371867ac8fd61963aced41382357d0e28f8 (patch)
treec1685be6dd885ac1d903dbf21f68c2cf8ba252ad /layout
parenta680bdc637e0393aaa08d575c66f7166b788b443 (diff)
downloadUXP-7572f371867ac8fd61963aced41382357d0e28f8.tar
UXP-7572f371867ac8fd61963aced41382357d0e28f8.tar.gz
UXP-7572f371867ac8fd61963aced41382357d0e28f8.tar.lz
UXP-7572f371867ac8fd61963aced41382357d0e28f8.tar.xz
UXP-7572f371867ac8fd61963aced41382357d0e28f8.zip
Issue #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')
-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 1b767997e..0af05be50 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) {