/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
for (size_t i = aTrackInfo->mStartFragmentTrack;
i < aTrackInfo->mEndFragmentTrack; i++) { if (i >= aTrackInfo->mRepeatFirstTrack) { // Append removed auto-fit tracks, if appropriate. The // AppendRemovedAutoFits function exits early once it has been called // aTrackInfo->mRemovedRepeatTracks.Length() times -- a check we don't // replicate here or at subsequent calling sites.
AppendRemovedAutoFits();
}
RefPtr<GridTrack> track = new GridTrack(this);
mTracks.AppendElement(track);
track->SetTrackValues(
nsPresContext::AppUnitsToDoubleCSSPixels(aTrackInfo->mPositions[i]),
nsPresContext::AppUnitsToDoubleCSSPixels(aTrackInfo->mSizes[i]),
( // Implicit if index is before the first explicit track, or after // the last explicit track.
(i < aTrackInfo->mNumLeadingImplicitTracks) ||
(i >= aTrackInfo->mNumLeadingImplicitTracks +
aTrackInfo->mNumExplicitTracks)
? GridDeclaration::Implicit
: GridDeclaration::Explicit),
GridTrackState(aTrackInfo->mStates[i]));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.