gecko-dev/layout/style/nsDOMCSSDeclaration.cpp

1741 строка
46 KiB
C++
Исходник Обычный вид История

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsDOMCSSDeclaration.h"
#include "nsIDOMCSSRule.h"
#include "nsICSSParser.h"
#include "nsIStyleRule.h"
#include "nsICSSDeclaration.h"
#include "nsCSSProps.h"
#include "nsCOMPtr.h"
#include "nsIURL.h"
nsDOMCSSDeclaration::nsDOMCSSDeclaration()
{
NS_INIT_REFCNT();
mScriptObject = nsnull;
}
nsDOMCSSDeclaration::~nsDOMCSSDeclaration()
{
}
NS_IMPL_ADDREF(nsDOMCSSDeclaration);
NS_IMPL_RELEASE(nsDOMCSSDeclaration);
1998-11-26 04:34:53 +03:00
static NS_DEFINE_IID(kIDOMCSS2PropertiesIID, NS_IDOMCSS2PROPERTIES_IID);
static NS_DEFINE_IID(kIDOMCSSStyleDeclarationIID, NS_IDOMCSSSTYLEDECLARATION_IID);
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
NS_IMETHODIMP
nsDOMCSSDeclaration::QueryInterface(REFNSIID aIID,
void** aInstancePtr)
{
NS_PRECONDITION(nsnull != aInstancePtr, "null ptr");
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
1998-11-26 04:34:53 +03:00
if (aIID.Equals(kIDOMCSS2PropertiesIID)) {
nsIDOMCSS2Properties *tmp = this;
AddRef();
*aInstancePtr = (void*) tmp;
return NS_OK;
}
if (aIID.Equals(kIDOMCSSStyleDeclarationIID)) {
nsIDOMCSSStyleDeclaration *tmp = this;
AddRef();
*aInstancePtr = (void*) tmp;
return NS_OK;
}
if (aIID.Equals(kIScriptObjectOwnerIID)) {
nsIScriptObjectOwner *tmp = this;
AddRef();
*aInstancePtr = (void*) tmp;
return NS_OK;
}
if (aIID.Equals(kISupportsIID)) {
nsIDOMCSSStyleDeclaration *tmp = this;
nsISupports *tmp2 = tmp;
AddRef();
*aInstancePtr = (void*) tmp2;
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetScriptObject(nsIScriptContext* aContext,
void** aScriptObject)
{
nsresult res = NS_OK;
if (nsnull == mScriptObject) {
nsCOMPtr<nsISupports> parent;
res = GetParent(getter_AddRefs(parent));
if (NS_OK == res) {
1998-11-26 04:34:53 +03:00
nsISupports *supports = (nsISupports *)(nsIDOMCSS2Properties *)this;
// XXX Should be done through factory
1998-11-26 04:34:53 +03:00
res = NS_NewScriptCSS2Properties(aContext,
supports,
parent,
(void**)&mScriptObject);
}
}
*aScriptObject = mScriptObject;
return res;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetScriptObject(void* aScriptObject)
{
mScriptObject = aScriptObject;
return NS_OK;
}
NS_IMETHODIMP
1998-11-26 04:34:53 +03:00
nsDOMCSSDeclaration::GetCssText(nsString& aCssText)
{
aCssText.Truncate();
1998-11-26 04:34:53 +03:00
// XXX TBI
return NS_OK;
}
NS_IMETHODIMP
1998-11-26 04:34:53 +03:00
nsDOMCSSDeclaration::SetCssText(const nsString& aCssText)
{
// XXX TBI
return NS_OK;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetLength(PRUint32* aLength)
{
nsICSSDeclaration *decl;
nsresult result = GetCSSDeclaration(&decl, PR_FALSE);
*aLength = 0;
if ((NS_OK == result) && (nsnull != decl)) {
result = decl->Count(aLength);
NS_RELEASE(decl);
}
return result;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetParentRule(nsIDOMCSSRule** aParentRule)
{
NS_ENSURE_ARG_POINTER(aParentRule);
*aParentRule = nsnull;
nsCOMPtr<nsISupports> parent;
GetParent(getter_AddRefs(parent));
if (parent) {
parent->QueryInterface(NS_GET_IID(nsIDOMCSSRule), (void **)aParentRule);
}
return NS_OK;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPropertyCSSValue(const nsString& aPropertyName,
nsIDOMCSSValue** aReturn)
{
NS_ENSURE_ARG_POINTER(aReturn);
// We don't support CSSValue yet so we'll just return null...
*aReturn = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::Item(PRUint32 aIndex, nsString& aReturn)
{
nsICSSDeclaration *decl;
nsresult result = GetCSSDeclaration(&decl, PR_FALSE);
aReturn.SetLength(0);
if ((NS_OK == result) && (nsnull != decl)) {
result = decl->GetNthProperty(aIndex, aReturn);
NS_RELEASE(decl);
}
return result;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPropertyValue(const nsString& aPropertyName,
nsString& aReturn)
{
nsCSSValue val;
nsICSSDeclaration *decl;
nsresult result = GetCSSDeclaration(&decl, PR_FALSE);
aReturn.SetLength(0);
if ((NS_OK == result) && (nsnull != decl)) {
1998-09-30 05:09:19 +04:00
result = decl->GetValue(aPropertyName, aReturn);
NS_RELEASE(decl);
}
return result;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPropertyPriority(const nsString& aPropertyName,
nsString& aReturn)
{
nsICSSDeclaration *decl;
nsresult result = GetCSSDeclaration(&decl, PR_FALSE);
PRBool isImportant = PR_FALSE;
if ((NS_OK == result) && (nsnull != decl)) {
1998-11-06 03:59:03 +03:00
result = decl->GetValueIsImportant(aPropertyName, isImportant);
NS_RELEASE(decl);
}
if ((NS_OK == result) && isImportant) {
2000-04-16 01:18:29 +04:00
aReturn.AssignWithConversion("!important");
}
else {
aReturn.SetLength(0);
}
return result;
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetProperty(const nsString& aPropertyName,
const nsString& aValue,
const nsString& aPriority)
{
if (!aValue.Length()) {
// If the new value of the property is an empty string we remove the
// property.
nsAutoString tmp;
return RemoveProperty(aPropertyName, tmp);
}
nsAutoString declString;
2000-04-16 01:18:29 +04:00
declString.Assign(aPropertyName);
declString.AppendWithConversion(":");
declString.Append(aValue);
declString.Append(aPriority);
return ParseDeclaration(declString, PR_TRUE, PR_FALSE);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetAzimuth(nsString& aAzimuth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("azimuth"), aAzimuth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetAzimuth(const nsString& aAzimuth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("azimuth"), aAzimuth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBackground(nsString& aBackground)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("background"), aBackground);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBackground(const nsString& aBackground)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("background"), aBackground, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBackgroundAttachment(nsString& aBackgroundAttachment)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("background-attachment"), aBackgroundAttachment);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBackgroundAttachment(const nsString& aBackgroundAttachment)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("background-attachment"), aBackgroundAttachment, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBackgroundColor(nsString& aBackgroundColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("background-color"), aBackgroundColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBackgroundColor(const nsString& aBackgroundColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("background-color"), aBackgroundColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBackgroundImage(nsString& aBackgroundImage)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("background-image"), aBackgroundImage);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBackgroundImage(const nsString& aBackgroundImage)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("background-image"), aBackgroundImage, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBackgroundPosition(nsString& aBackgroundPosition)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("background-position"), aBackgroundPosition);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBackgroundPosition(const nsString& aBackgroundPosition)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("background-position"), aBackgroundPosition, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBackgroundRepeat(nsString& aBackgroundRepeat)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("background-repeat"), aBackgroundRepeat);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBackgroundRepeat(const nsString& aBackgroundRepeat)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("background-repeat"), aBackgroundRepeat, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBehavior(nsString& aBehavior)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("behavior"), aBehavior);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBehavior(const nsString& aBehavior)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("behavior"), aBehavior, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorder(nsString& aBorder)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border"), aBorder);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorder(const nsString& aBorder)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border"), aBorder, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderCollapse(nsString& aBorderCollapse)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-collapse"), aBorderCollapse);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderCollapse(const nsString& aBorderCollapse)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-collapse"), aBorderCollapse, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderColor(nsString& aBorderColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-color"), aBorderColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderColor(const nsString& aBorderColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-color"), aBorderColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderSpacing(nsString& aBorderSpacing)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-spacing"), aBorderSpacing);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderSpacing(const nsString& aBorderSpacing)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-spacing"), aBorderSpacing, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderStyle(nsString& aBorderStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-style"), aBorderStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderStyle(const nsString& aBorderStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-style"), aBorderStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderTop(nsString& aBorderTop)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-top"), aBorderTop);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderTop(const nsString& aBorderTop)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-top"), aBorderTop, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderRight(nsString& aBorderRight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-right"), aBorderRight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderRight(const nsString& aBorderRight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-right"), aBorderRight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderBottom(nsString& aBorderBottom)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-bottom"), aBorderBottom);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderBottom(const nsString& aBorderBottom)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-bottom"), aBorderBottom, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderLeft(nsString& aBorderLeft)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-left"), aBorderLeft);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderLeft(const nsString& aBorderLeft)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-left"), aBorderLeft, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderTopColor(nsString& aBorderTopColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-top-color"), aBorderTopColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderTopColor(const nsString& aBorderTopColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-top-color"), aBorderTopColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderRightColor(nsString& aBorderRightColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-right-color"), aBorderRightColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderRightColor(const nsString& aBorderRightColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-right-color"), aBorderRightColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderBottomColor(nsString& aBorderBottomColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-bottom-color"), aBorderBottomColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderBottomColor(const nsString& aBorderBottomColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-bottom-color"), aBorderBottomColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderLeftColor(nsString& aBorderLeftColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-left-color"), aBorderLeftColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderLeftColor(const nsString& aBorderLeftColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-left-color"), aBorderLeftColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderTopStyle(nsString& aBorderTopStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-top-style"), aBorderTopStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderTopStyle(const nsString& aBorderTopStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-top-style"), aBorderTopStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderRightStyle(nsString& aBorderRightStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-right-style"), aBorderRightStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderRightStyle(const nsString& aBorderRightStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-right-style"), aBorderRightStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderBottomStyle(nsString& aBorderBottomStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-bottom-style"), aBorderBottomStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderBottomStyle(const nsString& aBorderBottomStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-bottom-style"), aBorderBottomStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderLeftStyle(nsString& aBorderLeftStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-left-style"), aBorderLeftStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderLeftStyle(const nsString& aBorderLeftStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-left-style"), aBorderLeftStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderTopWidth(nsString& aBorderTopWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-top-width"), aBorderTopWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderTopWidth(const nsString& aBorderTopWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-top-width"), aBorderTopWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderRightWidth(nsString& aBorderRightWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-right-width"), aBorderRightWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderRightWidth(const nsString& aBorderRightWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-right-width"), aBorderRightWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderBottomWidth(nsString& aBorderBottomWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-bottom-width"), aBorderBottomWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderBottomWidth(const nsString& aBorderBottomWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-bottom-width"), aBorderBottomWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderLeftWidth(nsString& aBorderLeftWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-left-width"), aBorderLeftWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderLeftWidth(const nsString& aBorderLeftWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-left-width"), aBorderLeftWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBorderWidth(nsString& aBorderWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("border-width"), aBorderWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBorderWidth(const nsString& aBorderWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("border-width"), aBorderWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetBottom(nsString& aBottom)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("bottom"), aBottom);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetBottom(const nsString& aBottom)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("bottom"), aBottom, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCaptionSide(nsString& aCaptionSide)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("caption-side"), aCaptionSide);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCaptionSide(const nsString& aCaptionSide)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("caption-side"), aCaptionSide, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetClear(nsString& aClear)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("clear"), aClear);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetClear(const nsString& aClear)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("clear"), aClear, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetClip(nsString& aClip)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("clip"), aClip);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetClip(const nsString& aClip)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("clip"), aClip, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetColor(nsString& aColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("color"), aColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetColor(const nsString& aColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("color"), aColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetContent(nsString& aContent)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("content"), aContent);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetContent(const nsString& aContent)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("content"), aContent, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCounterIncrement(nsString& aCounterIncrement)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("counter-increment"), aCounterIncrement);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCounterIncrement(const nsString& aCounterIncrement)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("counter-increment"), aCounterIncrement, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCounterReset(nsString& aCounterReset)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("counter-reset"), aCounterReset);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCounterReset(const nsString& aCounterReset)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("counter-reset"), aCounterReset, nsAutoString());
}
1998-11-26 04:34:53 +03:00
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCssFloat(nsString& aCssFloat)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("float"), aCssFloat);
1998-11-26 04:34:53 +03:00
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCssFloat(const nsString& aCssFloat)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("float"), aCssFloat, nsAutoString());
1998-11-26 04:34:53 +03:00
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCue(nsString& aCue)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("cue"), aCue);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCue(const nsString& aCue)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("cue"), aCue, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCueAfter(nsString& aCueAfter)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("cue-after"), aCueAfter);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCueAfter(const nsString& aCueAfter)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("cue-after"), aCueAfter, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCueBefore(nsString& aCueBefore)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("cue-before"), aCueBefore);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCueBefore(const nsString& aCueBefore)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("cue-before"), aCueBefore, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetCursor(nsString& aCursor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("cursor"), aCursor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetCursor(const nsString& aCursor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("cursor"), aCursor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetDirection(nsString& aDirection)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("direction"), aDirection);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetDirection(const nsString& aDirection)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("direction"), aDirection, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetDisplay(nsString& aDisplay)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("display"), aDisplay);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetDisplay(const nsString& aDisplay)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("display"), aDisplay, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetElevation(nsString& aElevation)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("elevation"), aElevation);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetElevation(const nsString& aElevation)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("elevation"), aElevation, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetEmptyCells(nsString& aEmptyCells)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("empty-cells"), aEmptyCells);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetEmptyCells(const nsString& aEmptyCells)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("empty-cells"), aEmptyCells, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFont(nsString& aFont)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font"), aFont);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFont(const nsString& aFont)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font"), aFont, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontFamily(nsString& aFontFamily)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-family"), aFontFamily);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontFamily(const nsString& aFontFamily)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-family"), aFontFamily, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontSize(nsString& aFontSize)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-size"), aFontSize);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontSize(const nsString& aFontSize)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-size"), aFontSize, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontSizeAdjust(nsString& aFontSizeAdjust)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-size-adjust"), aFontSizeAdjust);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontSizeAdjust(const nsString& aFontSizeAdjust)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-size-adjust"), aFontSizeAdjust, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontStretch(nsString& aFontStretch)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-stretch"), aFontStretch);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontStretch(const nsString& aFontStretch)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-stretch"), aFontStretch, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontStyle(nsString& aFontStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-style"), aFontStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontStyle(const nsString& aFontStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-style"), aFontStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontVariant(nsString& aFontVariant)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-variant"), aFontVariant);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontVariant(const nsString& aFontVariant)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-variant"), aFontVariant, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetFontWeight(nsString& aFontWeight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("font-weight"), aFontWeight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetFontWeight(const nsString& aFontWeight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("font-weight"), aFontWeight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetHeight(nsString& aHeight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("height"), aHeight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetHeight(const nsString& aHeight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("height"), aHeight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetLeft(nsString& aLeft)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("left"), aLeft);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetLeft(const nsString& aLeft)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("left"), aLeft, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetLetterSpacing(nsString& aLetterSpacing)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("letter-spacing"), aLetterSpacing);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetLetterSpacing(const nsString& aLetterSpacing)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("letter-spacing"), aLetterSpacing, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetLineHeight(nsString& aLineHeight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("line-height"), aLineHeight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetLineHeight(const nsString& aLineHeight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("line-height"), aLineHeight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetListStyle(nsString& aListStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("list-style"), aListStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetListStyle(const nsString& aListStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("list-style"), aListStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetListStyleImage(nsString& aListStyleImage)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("list-style-image"), aListStyleImage);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetListStyleImage(const nsString& aListStyleImage)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("list-style-image"), aListStyleImage, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetListStylePosition(nsString& aListStylePosition)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("list-style-position"), aListStylePosition);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetListStylePosition(const nsString& aListStylePosition)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("list-style-position"), aListStylePosition, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetListStyleType(nsString& aListStyleType)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("list-style-type"), aListStyleType);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetListStyleType(const nsString& aListStyleType)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("list-style-type"), aListStyleType, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMargin(nsString& aMargin)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("margin"), aMargin);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMargin(const nsString& aMargin)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("margin"), aMargin, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMarginTop(nsString& aMarginTop)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("margin-top"), aMarginTop);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMarginTop(const nsString& aMarginTop)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("margin-top"), aMarginTop, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMarginRight(nsString& aMarginRight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("margin-right"), aMarginRight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMarginRight(const nsString& aMarginRight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("margin-right"), aMarginRight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMarginBottom(nsString& aMarginBottom)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("margin-bottom"), aMarginBottom);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMarginBottom(const nsString& aMarginBottom)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("margin-bottom"), aMarginBottom, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMarginLeft(nsString& aMarginLeft)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("margin-left"), aMarginLeft);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMarginLeft(const nsString& aMarginLeft)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("margin-left"), aMarginLeft, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMarkerOffset(nsString& aMarkerOffset)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("marker-offset"), aMarkerOffset);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMarkerOffset(const nsString& aMarkerOffset)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("marker-offset"), aMarkerOffset, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMarks(nsString& aMarks)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("marks"), aMarks);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMarks(const nsString& aMarks)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("marks"), aMarks, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMaxHeight(nsString& aMaxHeight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("max-height"), aMaxHeight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMaxHeight(const nsString& aMaxHeight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("max-height"), aMaxHeight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMaxWidth(nsString& aMaxWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("max-width"), aMaxWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMaxWidth(const nsString& aMaxWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("max-width"), aMaxWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMinHeight(nsString& aMinHeight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("min-height"), aMinHeight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMinHeight(const nsString& aMinHeight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("min-height"), aMinHeight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetMinWidth(nsString& aMinWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("min-width"), aMinWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetMinWidth(const nsString& aMinWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("min-width"), aMinWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOrphans(nsString& aOrphans)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("orphans"), aOrphans);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOrphans(const nsString& aOrphans)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("orphans"), aOrphans, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOutline(nsString& aOutline)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("outline"), aOutline);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOutline(const nsString& aOutline)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("outline"), aOutline, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOutlineColor(nsString& aOutlineColor)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("outline-color"), aOutlineColor);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOutlineColor(const nsString& aOutlineColor)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("outline-color"), aOutlineColor, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOutlineStyle(nsString& aOutlineStyle)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("outline-style"), aOutlineStyle);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOutlineStyle(const nsString& aOutlineStyle)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("outline-style"), aOutlineStyle, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOutlineWidth(nsString& aOutlineWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("outline-width"), aOutlineWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOutlineWidth(const nsString& aOutlineWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("outline-width"), aOutlineWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOverflow(nsString& aOverflow)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("overflow"), aOverflow);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOverflow(const nsString& aOverflow)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("overflow"), aOverflow, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPadding(nsString& aPadding)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("padding"), aPadding);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPadding(const nsString& aPadding)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("padding"), aPadding, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPaddingTop(nsString& aPaddingTop)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("padding-top"), aPaddingTop);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPaddingTop(const nsString& aPaddingTop)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("padding-top"), aPaddingTop, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPaddingRight(nsString& aPaddingRight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("padding-right"), aPaddingRight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPaddingRight(const nsString& aPaddingRight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("padding-right"), aPaddingRight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPaddingBottom(nsString& aPaddingBottom)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("padding-bottom"), aPaddingBottom);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPaddingBottom(const nsString& aPaddingBottom)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("padding-bottom"), aPaddingBottom, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPaddingLeft(nsString& aPaddingLeft)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("padding-left"), aPaddingLeft);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPaddingLeft(const nsString& aPaddingLeft)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("padding-left"), aPaddingLeft, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPage(nsString& aPage)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("page"), aPage);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPage(const nsString& aPage)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("page"), aPage, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPageBreakAfter(nsString& aPageBreakAfter)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("page-break-after"), aPageBreakAfter);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPageBreakAfter(const nsString& aPageBreakAfter)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("page-break-after"), aPageBreakAfter, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPageBreakBefore(nsString& aPageBreakBefore)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("page-break-before"), aPageBreakBefore);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPageBreakBefore(const nsString& aPageBreakBefore)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("page-break-before"), aPageBreakBefore, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPageBreakInside(nsString& aPageBreakInside)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("page-break-inside"), aPageBreakInside);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPageBreakInside(const nsString& aPageBreakInside)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("page-break-inside"), aPageBreakInside, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPause(nsString& aPause)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("pause"), aPause);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPause(const nsString& aPause)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("pause"), aPause, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPauseAfter(nsString& aPauseAfter)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("pause-after"), aPauseAfter);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPauseAfter(const nsString& aPauseAfter)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("pause-after"), aPauseAfter, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPauseBefore(nsString& aPauseBefore)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("pause-before"), aPauseBefore);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPauseBefore(const nsString& aPauseBefore)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("pause-before"), aPauseBefore, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPitch(nsString& aPitch)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("pitch"), aPitch);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPitch(const nsString& aPitch)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("pitch"), aPitch, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPitchRange(nsString& aPitchRange)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("pitch-range"), aPitchRange);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPitchRange(const nsString& aPitchRange)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("pitch-range"), aPitchRange, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPlayDuring(nsString& aPlayDuring)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("play-during"), aPlayDuring);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPlayDuring(const nsString& aPlayDuring)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("play-during"), aPlayDuring, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetPosition(nsString& aPosition)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("position"), aPosition);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetPosition(const nsString& aPosition)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("position"), aPosition, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetQuotes(nsString& aQuotes)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("quotes"), aQuotes);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetQuotes(const nsString& aQuotes)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("quotes"), aQuotes, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetRichness(nsString& aRichness)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("richness"), aRichness);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetRichness(const nsString& aRichness)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("richness"), aRichness, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetRight(nsString& aRight)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("right"), aRight);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetRight(const nsString& aRight)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("right"), aRight, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetSize(nsString& aSize)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("size"), aSize);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetSize(const nsString& aSize)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("size"), aSize, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetSpeak(nsString& aSpeak)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("speak"), aSpeak);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetSpeak(const nsString& aSpeak)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("speak"), aSpeak, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetSpeakHeader(nsString& aSpeakHeader)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("speak-header"), aSpeakHeader);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetSpeakHeader(const nsString& aSpeakHeader)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("speak-header"), aSpeakHeader, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetSpeakNumeral(nsString& aSpeakNumeral)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("speak-numeral"), aSpeakNumeral);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetSpeakNumeral(const nsString& aSpeakNumeral)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("speak-numeral"), aSpeakNumeral, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetSpeakPunctuation(nsString& aSpeakPunctuation)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("speak-punctuation"), aSpeakPunctuation);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetSpeakPunctuation(const nsString& aSpeakPunctuation)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("speak-punctuation"), aSpeakPunctuation, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetSpeechRate(nsString& aSpeechRate)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("speech-rate"), aSpeechRate);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetSpeechRate(const nsString& aSpeechRate)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("speech-rate"), aSpeechRate, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetStress(nsString& aStress)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("stress"), aStress);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetStress(const nsString& aStress)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("stress"), aStress, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTableLayout(nsString& aTableLayout)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("table-layout"), aTableLayout);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTableLayout(const nsString& aTableLayout)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("table-layout"), aTableLayout, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTextAlign(nsString& aTextAlign)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("text-align"), aTextAlign);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTextAlign(const nsString& aTextAlign)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("text-align"), aTextAlign, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTextDecoration(nsString& aTextDecoration)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("text-decoration"), aTextDecoration);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTextDecoration(const nsString& aTextDecoration)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("text-decoration"), aTextDecoration, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTextIndent(nsString& aTextIndent)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("text-indent"), aTextIndent);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTextIndent(const nsString& aTextIndent)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("text-indent"), aTextIndent, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTextShadow(nsString& aTextShadow)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("text-shadow"), aTextShadow);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTextShadow(const nsString& aTextShadow)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("text-shadow"), aTextShadow, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTextTransform(nsString& aTextTransform)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("text-transform"), aTextTransform);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTextTransform(const nsString& aTextTransform)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("text-transform"), aTextTransform, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetTop(nsString& aTop)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("top"), aTop);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetTop(const nsString& aTop)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("top"), aTop, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetUnicodeBidi(nsString& aUnicodeBidi)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("unicode-bidi"), aUnicodeBidi);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetUnicodeBidi(const nsString& aUnicodeBidi)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("unicode-bidi"), aUnicodeBidi, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetVerticalAlign(nsString& aVerticalAlign)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("vertical-align"), aVerticalAlign);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetVerticalAlign(const nsString& aVerticalAlign)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("vertical-align"), aVerticalAlign, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetVisibility(nsString& aVisibility)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("visibility"), aVisibility);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetVisibility(const nsString& aVisibility)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("visibility"), aVisibility, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetVoiceFamily(nsString& aVoiceFamily)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("voice-family"), aVoiceFamily);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetVoiceFamily(const nsString& aVoiceFamily)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("voice-family"), aVoiceFamily, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetVolume(nsString& aVolume)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("volume"), aVolume);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetVolume(const nsString& aVolume)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("volume"), aVolume, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetWhiteSpace(nsString& aWhiteSpace)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("white-space"), aWhiteSpace);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetWhiteSpace(const nsString& aWhiteSpace)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("white-space"), aWhiteSpace, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetWidows(nsString& aWidows)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("widows"), aWidows);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetWidows(const nsString& aWidows)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("widows"), aWidows, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetWidth(nsString& aWidth)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("width"), aWidth);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetWidth(const nsString& aWidth)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("width"), aWidth, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetWordSpacing(nsString& aWordSpacing)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("word-spacing"), aWordSpacing);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetWordSpacing(const nsString& aWordSpacing)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("word-spacing"), aWordSpacing, nsAutoString());
}
NS_IMETHODIMP
nsDOMCSSDeclaration::GetZIndex(nsString& aZIndex)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("z-index"), aZIndex);
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetZIndex(const nsString& aZIndex)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("z-index"), aZIndex, nsAutoString());
}
1998-10-28 05:04:27 +03:00
NS_IMETHODIMP
nsDOMCSSDeclaration::GetOpacity(nsString& aOpacity)
{
2000-04-16 01:18:29 +04:00
return GetPropertyValue(NS_ConvertASCIItoUCS2("opacity"), aOpacity);
1998-10-28 05:04:27 +03:00
}
NS_IMETHODIMP
nsDOMCSSDeclaration::SetOpacity(const nsString& aOpacity)
{
2000-04-16 01:18:29 +04:00
return SetProperty(NS_ConvertASCIItoUCS2("opacity"), aOpacity, nsAutoString());
1998-10-28 05:04:27 +03:00
}