Bug 1643246 - Don't use attribute selectors for determining if a select is a drop...
[gecko.git] / widget / nsPaper.cpp
blob4ea8d3fba8ac1d6102c12e0e209c3b430db562fc
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 "nsPaper.h"
8 NS_IMPL_ISUPPORTS(nsPaper, nsIPaper);
10 NS_IMETHODIMP
11 nsPaper::GetName(nsAString& aName) {
12 aName = mName;
13 return NS_OK;
16 NS_IMETHODIMP
17 nsPaper::GetWidth(double* aWidth) {
18 NS_ENSURE_ARG_POINTER(aWidth);
19 *aWidth = mWidth;
20 return NS_OK;
23 NS_IMETHODIMP
24 nsPaper::GetHeight(double* aHeight) {
25 NS_ENSURE_ARG_POINTER(aHeight);
26 *aHeight = mHeight;
27 return NS_OK;
30 NS_IMETHODIMP
31 nsPaper::GetUnwriteableMarginTop(double* aUnwriteableMarginTop) {
32 NS_ENSURE_ARG_POINTER(aUnwriteableMarginTop);
33 *aUnwriteableMarginTop = mUnwriteableMarginTop;
34 return NS_OK;
37 NS_IMETHODIMP
38 nsPaper::GetUnwriteableMarginBottom(double* aUnwriteableMarginBottom) {
39 NS_ENSURE_ARG_POINTER(aUnwriteableMarginBottom);
40 *aUnwriteableMarginBottom = mUnwriteableMarginBottom;
41 return NS_OK;
44 NS_IMETHODIMP
45 nsPaper::GetUnwriteableMarginLeft(double* aUnwriteableMarginLeft) {
46 NS_ENSURE_ARG_POINTER(aUnwriteableMarginLeft);
47 *aUnwriteableMarginLeft = mUnwriteableMarginLeft;
48 return NS_OK;
51 NS_IMETHODIMP
52 nsPaper::GetUnwriteableMarginRight(double* aUnwriteableMarginRight) {
53 NS_ENSURE_ARG_POINTER(aUnwriteableMarginRight);
54 *aUnwriteableMarginRight = mUnwriteableMarginRight;
55 return NS_OK;