Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL GridDimension.cpp  Interaktion und
PortierbarkeitC


/* 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/. */


#include "GridDimension.h"

#include "Grid.h"
#include "GridLines.h"
#include "GridTracks.h"
#include "mozilla/dom/GridBinding.h"
#include "nsGridContainerFrame.h"

namespace mozilla::dom {

NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GridDimension, mParent, mLines, mTracks)
NS_IMPL_CYCLE_COLLECTING_ADDREF(GridDimension)
NS_IMPL_CYCLE_COLLECTING_RELEASE(GridDimension)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(GridDimension)
  NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
  NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END

GridDimension::GridDimension(Grid* aParent)
    : mParent(aParent),
      mLines(new GridLines(this)),
      mTracks(new GridTracks(this)) {
  MOZ_ASSERT(aParent, "Should never be instantiated with a null Grid");
}

GridDimension::~GridDimension() = default;

JSObject* GridDimension::WrapObject(JSContext* aCx,
                                    JS::Handle<JSObject*> aGivenProto) {
  return GridDimension_Binding::Wrap(aCx, this, aGivenProto);
}

GridLines* GridDimension::Lines() const { return mLines; }

GridTracks* GridDimension::Tracks() const { return mTracks; }

void GridDimension::SetTrackInfo(const ComputedGridTrackInfo* aTrackInfo) {
  mTracks->SetTrackInfo(aTrackInfo);
}

void GridDimension::SetLineInfo(const ComputedGridTrackInfo* aTrackInfo,
                                const ComputedGridLineInfo* aLineInfo,
                                const nsTArray<RefPtr<GridArea>>& aAreas,
                                bool aIsRow) {
  mLines->SetLineInfo(aTrackInfo, aLineInfo, aAreas, aIsRow);
}

}  // namespace mozilla::dom

Messung
CHZG
899910096

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.47Angebot  ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,972
#Domains=963,784