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