widget/nsPaperMargin.cpp
author Iulian Moraru <imoraru@mozilla.com>
Sat, 23 Oct 2021 09:42:25 +0300
changeset 596791 54d250f01e8ba17a8526c1a64b21157da65d9619
parent 543374 ca10c664039d249b86439219ad9d2de3ee1ada82
permissions -rw-r--r--
Backed out changeset 43103b364829 (bug 1640779) for causing reftest and mochitest failures. CLOSED TREE

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

#include "nsPaperMargin.h"

NS_IMPL_ISUPPORTS(nsPaperMargin, nsIPaperMargin)

NS_IMETHODIMP
nsPaperMargin::GetTop(double* aTop) {
  *aTop = mMargin.top;
  return NS_OK;
}

NS_IMETHODIMP
nsPaperMargin::GetRight(double* aRight) {
  *aRight = mMargin.right;
  return NS_OK;
}

NS_IMETHODIMP
nsPaperMargin::GetBottom(double* aBottom) {
  *aBottom = mMargin.bottom;
  return NS_OK;
}

NS_IMETHODIMP
nsPaperMargin::GetLeft(double* aLeft) {
  *aLeft = mMargin.left;
  return NS_OK;
}