Bug 1857361 [wpt PR 42378] - Update wpt metadata, a=testonly
[gecko.git] / widget / nsPaperMargin.cpp
blob1e6171cd16cd3faacaf6c53b27e2a671f37e1615
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 #include "nsPaperMargin.h"
8 NS_IMPL_ISUPPORTS(nsPaperMargin, nsIPaperMargin)
10 NS_IMETHODIMP
11 nsPaperMargin::GetTop(double* aTop) {
12 *aTop = mMargin.top;
13 return NS_OK;
16 NS_IMETHODIMP
17 nsPaperMargin::GetRight(double* aRight) {
18 *aRight = mMargin.right;
19 return NS_OK;
22 NS_IMETHODIMP
23 nsPaperMargin::GetBottom(double* aBottom) {
24 *aBottom = mMargin.bottom;
25 return NS_OK;
28 NS_IMETHODIMP
29 nsPaperMargin::GetLeft(double* aLeft) {
30 *aLeft = mMargin.left;
31 return NS_OK;