1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsPaperMargin_h_
7 #define nsPaperMargin_h_
9 #include "nsISupportsImpl.h"
10 #include "nsIPaperMargin.h"
11 #include "mozilla/gfx/Rect.h"
13 class nsPaperMargin final
: public nsIPaperMargin
{
14 using MarginDouble
= mozilla::gfx::MarginDouble
;
18 NS_DECL_NSIPAPERMARGIN
20 nsPaperMargin() = delete;
22 explicit nsPaperMargin(const MarginDouble
& aMargin
) : mMargin(aMargin
) {}
25 ~nsPaperMargin() = default;
26 const MarginDouble mMargin
;