LCOV - code coverage report
Current view: top level - dom/grid - GridTrack.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 29 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 16 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "GridTrack.h"
       8             : 
       9             : #include "GridTracks.h"
      10             : #include "mozilla/dom/GridBinding.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GridTrack, mParent)
      16           0 : NS_IMPL_CYCLE_COLLECTING_ADDREF(GridTrack)
      17           0 : NS_IMPL_CYCLE_COLLECTING_RELEASE(GridTrack)
      18           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(GridTrack)
      19           0 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      20           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      21           0 : NS_INTERFACE_MAP_END
      22             : 
      23           0 : GridTrack::GridTrack(GridTracks* aParent)
      24             :   : mParent(aParent)
      25             :   , mStart(0.0)
      26             :   , mBreadth(0.0)
      27             :   , mType(GridDeclaration::Implicit)
      28           0 :   , mState(GridTrackState::Static)
      29             : {
      30           0 :   MOZ_ASSERT(aParent, "Should never be instantiated with a null GridTracks");
      31           0 : }
      32             : 
      33           0 : GridTrack::~GridTrack()
      34             : {
      35           0 : }
      36             : 
      37             : JSObject*
      38           0 : GridTrack::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      39             : {
      40           0 :   return GridTrackBinding::Wrap(aCx, this, aGivenProto);
      41             : }
      42             : 
      43             : double
      44           0 : GridTrack::Start() const
      45             : {
      46           0 :   return mStart;
      47             : }
      48             : 
      49             : double
      50           0 : GridTrack::Breadth() const
      51             : {
      52           0 :   return mBreadth;
      53             : }
      54             : 
      55             : GridDeclaration
      56           0 : GridTrack::Type() const
      57             : {
      58           0 :   return mType;
      59             : }
      60             : 
      61             : GridTrackState
      62           0 : GridTrack::State() const
      63             : {
      64           0 :   return mState;
      65             : }
      66             : 
      67             : void
      68           0 : GridTrack::SetTrackValues(double aStart,
      69             :                           double aBreadth,
      70             :                           GridDeclaration aType,
      71             :                           GridTrackState aState)
      72             : {
      73           0 :   mStart = aStart;
      74           0 :   mBreadth = aBreadth;
      75           0 :   mType = aType;
      76           0 :   mState = aState;
      77           0 : }
      78             : 
      79             : } // namespace dom
      80             : } // namespace mozilla

Generated by: LCOV version 1.13