2017-10-27 17:33:53 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2002-01-11 00:09:01 +00:00
|
|
|
|
2006-03-25 05:47:31 +00:00
|
|
|
/* DOM object representing rectangle values in DOM computed style */
|
|
|
|
|
|
|
|
#ifndef nsDOMCSSRect_h_
|
|
|
|
#define nsDOMCSSRect_h_
|
2002-01-11 00:09:01 +00:00
|
|
|
|
2012-12-26 12:26:36 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2018-08-01 22:05:30 +00:00
|
|
|
#include "mozilla/RefCounted.h"
|
2018-05-08 07:20:43 +00:00
|
|
|
#include "mozilla/RefPtr.h"
|
2012-12-26 02:48:28 +00:00
|
|
|
|
|
|
|
class nsROCSSPrimitiveValue;
|
2002-01-11 00:09:01 +00:00
|
|
|
|
2018-06-06 13:31:33 +00:00
|
|
|
class nsDOMCSSRect final : public mozilla::RefCounted<nsDOMCSSRect>
|
2012-12-26 02:51:33 +00:00
|
|
|
{
|
2002-01-11 00:09:01 +00:00
|
|
|
public:
|
2018-05-08 07:20:43 +00:00
|
|
|
MOZ_DECLARE_REFCOUNTED_TYPENAME(nsDOMCSSRect);
|
|
|
|
|
2012-12-26 02:48:28 +00:00
|
|
|
nsDOMCSSRect(nsROCSSPrimitiveValue* aTop,
|
|
|
|
nsROCSSPrimitiveValue* aRight,
|
|
|
|
nsROCSSPrimitiveValue* aBottom,
|
|
|
|
nsROCSSPrimitiveValue* aLeft);
|
2002-01-11 00:09:01 +00:00
|
|
|
|
2012-12-26 03:12:15 +00:00
|
|
|
nsROCSSPrimitiveValue* Top() const { return mTop; }
|
|
|
|
nsROCSSPrimitiveValue* Right() const { return mRight; }
|
|
|
|
nsROCSSPrimitiveValue* Bottom() const { return mBottom; }
|
|
|
|
nsROCSSPrimitiveValue* Left() const { return mLeft; }
|
|
|
|
|
2018-05-08 07:20:43 +00:00
|
|
|
~nsDOMCSSRect();
|
2014-06-23 22:40:01 +00:00
|
|
|
|
2002-01-11 00:09:01 +00:00
|
|
|
private:
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<nsROCSSPrimitiveValue> mTop;
|
|
|
|
RefPtr<nsROCSSPrimitiveValue> mRight;
|
|
|
|
RefPtr<nsROCSSPrimitiveValue> mBottom;
|
|
|
|
RefPtr<nsROCSSPrimitiveValue> mLeft;
|
2002-01-11 00:09:01 +00:00
|
|
|
};
|
|
|
|
|
2006-03-25 05:47:31 +00:00
|
|
|
#endif /* nsDOMCSSRect_h_ */
|