author Iain Ireland <>
Mon, 15 Oct 2018 13:31:34 +0000
changeset 499726 ad329ec90b6eedfdc428f8dcb08d85aed08af61d
parent 354554 c98b8c992c2f3dfc4789deab913ca942ae61f304
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1499010: Mark ecmaPow to allow calling from recovery code r=tcampbell Differential Revision:

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

#ifndef mozilla_dom_GridTrack_h
#define mozilla_dom_GridTrack_h

#include "mozilla/dom/GridBinding.h"
#include "nsWrapperCache.h"

namespace mozilla {
namespace dom {

class GridTracks;

class GridTrack : public nsISupports
                , public nsWrapperCache
  explicit GridTrack(GridTracks *parent);

  virtual ~GridTrack();


  virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
  GridTracks* GetParentObject()
    return mParent;

  double Start() const;
  double Breadth() const;
  GridDeclaration Type() const;
  GridTrackState State() const;

  void SetTrackValues(double aStart,
                      double aBreadth,
                      GridDeclaration aType,
                      GridTrackState aState);

  RefPtr<GridTracks> mParent;
  double mStart;
  double mBreadth;
  GridDeclaration mType;
  GridTrackState mState;

} // namespace dom
} // namespace mozilla

#endif /* mozilla_dom_GridTrack_h */