зеркало из https://github.com/mozilla/gecko-dev.git
bug 821593 - remove the nsIDOMRGBColor xpidl now that nothing uses it r=bz
This commit is contained in:
Родитель
3c0622ef7d
Коммит
d5b38a1374
|
@ -75,7 +75,6 @@ interface nsIDOMCSSStyleSheet;
|
||||||
interface nsIDOMCSSStyleDeclaration;
|
interface nsIDOMCSSStyleDeclaration;
|
||||||
interface nsIDOMCounter;
|
interface nsIDOMCounter;
|
||||||
interface nsIDOMRect;
|
interface nsIDOMRect;
|
||||||
interface nsIDOMRGBColor;
|
|
||||||
interface nsIDOMCSSStyleRule;
|
interface nsIDOMCSSStyleRule;
|
||||||
interface nsIDOMCSSStyleRuleCollection;
|
interface nsIDOMCSSStyleRuleCollection;
|
||||||
interface nsIDOMHTMLTableCaptionElement;
|
interface nsIDOMHTMLTableCaptionElement;
|
||||||
|
|
|
@ -39,9 +39,7 @@ XPIDLSRCS = \
|
||||||
nsIDOMCSSStyleRule.idl \
|
nsIDOMCSSStyleRule.idl \
|
||||||
nsIDOMCSSUnknownRule.idl \
|
nsIDOMCSSUnknownRule.idl \
|
||||||
nsIDOMCounter.idl \
|
nsIDOMCounter.idl \
|
||||||
nsIDOMRGBColor.idl \
|
|
||||||
nsIDOMRect.idl \
|
nsIDOMRect.idl \
|
||||||
nsIDOMNSRGBAColor.idl \
|
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
||||||
|
|
||||||
#include "nsIDOMRGBColor.idl"
|
|
||||||
|
|
||||||
[scriptable, uuid(742dc816-5134-4214-adfa-cad9dd3377cd)]
|
|
||||||
interface nsIDOMNSRGBAColor : nsIDOMRGBColor
|
|
||||||
{
|
|
||||||
readonly attribute nsIDOMCSSPrimitiveValue alpha;
|
|
||||||
};
|
|
|
@ -1,14 +0,0 @@
|
||||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
||||||
|
|
||||||
#include "domstubs.idl"
|
|
||||||
|
|
||||||
[scriptable, uuid(6aff3102-320d-4986-9790-12316bb87cf9)]
|
|
||||||
interface nsIDOMRGBColor : nsISupports
|
|
||||||
{
|
|
||||||
readonly attribute nsIDOMCSSPrimitiveValue red;
|
|
||||||
readonly attribute nsIDOMCSSPrimitiveValue green;
|
|
||||||
readonly attribute nsIDOMCSSPrimitiveValue blue;
|
|
||||||
};
|
|
|
@ -32,8 +32,6 @@ nsDOMCSSRGBColor::~nsDOMCSSRGBColor(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsDOMCSSRGBColor)
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsDOMCSSRGBColor)
|
||||||
NS_INTERFACE_MAP_ENTRY(nsIDOMRGBColor)
|
|
||||||
NS_INTERFACE_MAP_ENTRY(nsIDOMNSRGBAColor)
|
|
||||||
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
||||||
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
||||||
NS_INTERFACE_MAP_END
|
NS_INTERFACE_MAP_END
|
||||||
|
@ -48,39 +46,3 @@ nsDOMCSSRGBColor::WrapObject(JSContext *aCx, JSObject *aScope, bool *aTried)
|
||||||
return dom::RGBColorBinding::Wrap(aCx, aScope, this, aTried);
|
return dom::RGBColorBinding::Wrap(aCx, aScope, this, aTried);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
nsDOMCSSRGBColor::GetRed(nsIDOMCSSPrimitiveValue** aRed)
|
|
||||||
{
|
|
||||||
NS_ENSURE_TRUE(mRed, NS_ERROR_NOT_INITIALIZED);
|
|
||||||
*aRed = mRed;
|
|
||||||
NS_ADDREF(*aRed);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
nsDOMCSSRGBColor::GetGreen(nsIDOMCSSPrimitiveValue** aGreen)
|
|
||||||
{
|
|
||||||
NS_ENSURE_TRUE(mGreen, NS_ERROR_NOT_INITIALIZED);
|
|
||||||
*aGreen = mGreen;
|
|
||||||
NS_ADDREF(*aGreen);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
nsDOMCSSRGBColor::GetBlue(nsIDOMCSSPrimitiveValue** aBlue)
|
|
||||||
{
|
|
||||||
NS_ENSURE_TRUE(mBlue, NS_ERROR_NOT_INITIALIZED);
|
|
||||||
*aBlue = mBlue;
|
|
||||||
NS_ADDREF(*aBlue);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
nsDOMCSSRGBColor::GetAlpha(nsIDOMCSSPrimitiveValue** aAlpha)
|
|
||||||
{
|
|
||||||
NS_ENSURE_TRUE(mAlpha, NS_ERROR_NOT_INITIALIZED);
|
|
||||||
*aAlpha = mAlpha;
|
|
||||||
NS_ADDREF(*aAlpha);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
|
@ -11,12 +11,11 @@
|
||||||
#include "mozilla/Attributes.h"
|
#include "mozilla/Attributes.h"
|
||||||
#include "nsAutoPtr.h"
|
#include "nsAutoPtr.h"
|
||||||
#include "nsISupports.h"
|
#include "nsISupports.h"
|
||||||
#include "nsIDOMNSRGBAColor.h"
|
|
||||||
#include "nsWrapperCache.h"
|
#include "nsWrapperCache.h"
|
||||||
|
|
||||||
class nsROCSSPrimitiveValue;
|
class nsROCSSPrimitiveValue;
|
||||||
|
|
||||||
class nsDOMCSSRGBColor : public nsIDOMNSRGBAColor,
|
class nsDOMCSSRGBColor : public nsISupports,
|
||||||
public nsWrapperCache
|
public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -29,8 +28,6 @@ public:
|
||||||
virtual ~nsDOMCSSRGBColor(void);
|
virtual ~nsDOMCSSRGBColor(void);
|
||||||
|
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_NSIDOMRGBCOLOR
|
|
||||||
NS_DECL_NSIDOMNSRGBACOLOR
|
|
||||||
|
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(nsDOMCSSRGBColor)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(nsDOMCSSRGBColor)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче