Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/GridDimension.h
Line
Count
Source (jump to first uncovered line)
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
#ifndef mozilla_dom_GridDimension_h
8
#define mozilla_dom_GridDimension_h
9
10
#include "nsWrapperCache.h"
11
12
namespace mozilla {
13
14
struct ComputedGridTrackInfo;
15
16
namespace dom {
17
18
class Grid;
19
class GridLines;
20
class GridTracks;
21
22
class GridDimension : public nsISupports
23
                    , public nsWrapperCache
24
{
25
public:
26
  explicit GridDimension(Grid* aParent);
27
28
protected:
29
  virtual ~GridDimension();
30
31
public:
32
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
33
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(GridDimension)
34
35
  virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
36
  Grid* GetParentObject()
37
0
  {
38
0
    return mParent;
39
0
  }
40
41
  GridLines* Lines() const;
42
  GridTracks* Tracks() const;
43
44
  void SetTrackInfo(const ComputedGridTrackInfo* aTrackInfo);
45
  void SetLineInfo(const ComputedGridTrackInfo* aTrackInfo,
46
                   const ComputedGridLineInfo* aLineInfo,
47
                   const nsTArray<RefPtr<GridArea>>& aAreas,
48
                   bool aIsRow);
49
50
protected:
51
  RefPtr<Grid> mParent;
52
  RefPtr<GridLines> mLines;
53
  RefPtr<GridTracks> mTracks;
54
};
55
56
} // namespace dom
57
} // namespace mozilla
58
59
#endif /* mozilla_dom_GridDimension_h */