no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / widget / nsPaperMargin.h
blob594b266c00455b6ade241c4332074c5bf7919368
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;
16 public:
17 NS_DECL_ISUPPORTS
18 NS_DECL_NSIPAPERMARGIN
20 nsPaperMargin() = delete;
22 explicit nsPaperMargin(const MarginDouble& aMargin) : mMargin(aMargin) {}
24 private:
25 ~nsPaperMargin() = default;
26 const MarginDouble mMargin;
29 #endif