mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 817442 Part 6: Remove nsIDOMSVG(Animated)NumberList r=bz
This commit is contained in:
parent
74d58a6f8f
commit
ef2e090b22
@ -23,15 +23,9 @@ NS_SVG_VAL_IMPL_CYCLE_COLLECTION_WRAPPERCACHED(DOMSVGAnimatedNumberList, mElemen
|
|||||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(DOMSVGAnimatedNumberList)
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(DOMSVGAnimatedNumberList)
|
||||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMSVGAnimatedNumberList)
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMSVGAnimatedNumberList)
|
||||||
|
|
||||||
} // namespace mozilla
|
|
||||||
DOMCI_DATA(SVGAnimatedNumberList, mozilla::DOMSVGAnimatedNumberList)
|
|
||||||
namespace mozilla {
|
|
||||||
|
|
||||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMSVGAnimatedNumberList)
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMSVGAnimatedNumberList)
|
||||||
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
||||||
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGAnimatedNumberList)
|
|
||||||
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
||||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(SVGAnimatedNumberList)
|
|
||||||
NS_INTERFACE_MAP_END
|
NS_INTERFACE_MAP_END
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
@ -50,14 +44,6 @@ DOMSVGAnimatedNumberList::BaseVal()
|
|||||||
return baseVal.forget();
|
return baseVal.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute nsIDOMSVGNumberList baseVal; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGAnimatedNumberList::GetBaseVal(nsIDOMSVGNumberList** aBaseVal)
|
|
||||||
{
|
|
||||||
*aBaseVal = BaseVal().get();
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
already_AddRefed<DOMSVGNumberList>
|
already_AddRefed<DOMSVGNumberList>
|
||||||
DOMSVGAnimatedNumberList::AnimVal()
|
DOMSVGAnimatedNumberList::AnimVal()
|
||||||
{
|
{
|
||||||
@ -68,14 +54,6 @@ DOMSVGAnimatedNumberList::AnimVal()
|
|||||||
return animVal.forget();
|
return animVal.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute nsIDOMSVGNumberList animVal; */
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGAnimatedNumberList::GetAnimVal(nsIDOMSVGNumberList** aAnimVal)
|
|
||||||
{
|
|
||||||
*aAnimVal = AnimVal().get();
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* static */ already_AddRefed<DOMSVGAnimatedNumberList>
|
/* static */ already_AddRefed<DOMSVGAnimatedNumberList>
|
||||||
DOMSVGAnimatedNumberList::GetDOMWrapper(SVGAnimatedNumberList *aList,
|
DOMSVGAnimatedNumberList::GetDOMWrapper(SVGAnimatedNumberList *aList,
|
||||||
nsSVGElement *aElement,
|
nsSVGElement *aElement,
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include "nsAutoPtr.h"
|
#include "nsAutoPtr.h"
|
||||||
#include "nsCOMPtr.h"
|
#include "nsCOMPtr.h"
|
||||||
#include "nsCycleCollectionParticipant.h"
|
#include "nsCycleCollectionParticipant.h"
|
||||||
#include "nsIDOMSVGAnimatedNumberList.h"
|
|
||||||
#include "nsSVGElement.h"
|
#include "nsSVGElement.h"
|
||||||
#include "nsWrapperCache.h"
|
#include "nsWrapperCache.h"
|
||||||
#include "mozilla/Attributes.h"
|
#include "mozilla/Attributes.h"
|
||||||
@ -35,7 +34,7 @@ class SVGNumberList;
|
|||||||
* out our pointers to them when they die (making our pointers to them true
|
* out our pointers to them when they die (making our pointers to them true
|
||||||
* weak refs).
|
* weak refs).
|
||||||
*/
|
*/
|
||||||
class DOMSVGAnimatedNumberList MOZ_FINAL : public nsIDOMSVGAnimatedNumberList,
|
class DOMSVGAnimatedNumberList MOZ_FINAL : public nsISupports,
|
||||||
public nsWrapperCache
|
public nsWrapperCache
|
||||||
{
|
{
|
||||||
friend class DOMSVGNumberList;
|
friend class DOMSVGNumberList;
|
||||||
@ -43,7 +42,6 @@ class DOMSVGAnimatedNumberList MOZ_FINAL : public nsIDOMSVGAnimatedNumberList,
|
|||||||
public:
|
public:
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMSVGAnimatedNumberList)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMSVGAnimatedNumberList)
|
||||||
NS_DECL_NSIDOMSVGANIMATEDNUMBERLIST
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory method to create and return a DOMSVGAnimatedNumberList wrapper
|
* Factory method to create and return a DOMSVGAnimatedNumberList wrapper
|
||||||
@ -108,7 +106,9 @@ private:
|
|||||||
, mAnimVal(nullptr)
|
, mAnimVal(nullptr)
|
||||||
, mElement(aElement)
|
, mElement(aElement)
|
||||||
, mAttrEnum(aAttrEnum)
|
, mAttrEnum(aAttrEnum)
|
||||||
{}
|
{
|
||||||
|
SetIsDOMBinding();
|
||||||
|
}
|
||||||
|
|
||||||
~DOMSVGAnimatedNumberList();
|
~DOMSVGAnimatedNumberList();
|
||||||
|
|
||||||
|
@ -62,15 +62,9 @@ NS_IMPL_CYCLE_COLLECTION_TRACE_END
|
|||||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(DOMSVGNumberList)
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(DOMSVGNumberList)
|
||||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMSVGNumberList)
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMSVGNumberList)
|
||||||
|
|
||||||
} // namespace mozilla
|
|
||||||
DOMCI_DATA(SVGNumberList, mozilla::DOMSVGNumberList)
|
|
||||||
namespace mozilla {
|
|
||||||
|
|
||||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMSVGNumberList)
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMSVGNumberList)
|
||||||
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
||||||
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGNumberList)
|
|
||||||
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
||||||
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(SVGNumberList)
|
|
||||||
NS_INTERFACE_MAP_END
|
NS_INTERFACE_MAP_END
|
||||||
|
|
||||||
|
|
||||||
@ -125,16 +119,6 @@ DOMSVGNumberList::InternalList() const
|
|||||||
return IsAnimValList() && alist->mAnimVal ? *alist->mAnimVal : alist->mBaseVal;
|
return IsAnimValList() && alist->mAnimVal ? *alist->mAnimVal : alist->mBaseVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// nsIDOMSVGNumberList implementation:
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::GetNumberOfItems(uint32_t *aNumberOfItems)
|
|
||||||
{
|
|
||||||
*aNumberOfItems = NumberOfItems();
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DOMSVGNumberList::Clear(ErrorResult& error)
|
DOMSVGNumberList::Clear(ErrorResult& error)
|
||||||
{
|
{
|
||||||
@ -159,14 +143,6 @@ DOMSVGNumberList::Clear(ErrorResult& error)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::Clear()
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
Clear(rv);
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
already_AddRefed<nsIDOMSVGNumber>
|
already_AddRefed<nsIDOMSVGNumber>
|
||||||
DOMSVGNumberList::Initialize(nsIDOMSVGNumber *newItem,
|
DOMSVGNumberList::Initialize(nsIDOMSVGNumber *newItem,
|
||||||
ErrorResult& error)
|
ErrorResult& error)
|
||||||
@ -193,19 +169,11 @@ DOMSVGNumberList::Initialize(nsIDOMSVGNumber *newItem,
|
|||||||
newItem = domItem->Clone();
|
newItem = domItem->Clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
Clear();
|
Clear(error);
|
||||||
|
MOZ_ASSERT(!error.Failed());
|
||||||
return InsertItemBefore(newItem, 0, error);
|
return InsertItemBefore(newItem, 0, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::Initialize(nsIDOMSVGNumber *newItem,
|
|
||||||
nsIDOMSVGNumber **_retval)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
*_retval = Initialize(newItem, rv).get();
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
nsIDOMSVGNumber*
|
nsIDOMSVGNumber*
|
||||||
DOMSVGNumberList::IndexedGetter(uint32_t index, bool& found, ErrorResult& error)
|
DOMSVGNumberList::IndexedGetter(uint32_t index, bool& found, ErrorResult& error)
|
||||||
{
|
{
|
||||||
@ -220,15 +188,6 @@ DOMSVGNumberList::IndexedGetter(uint32_t index, bool& found, ErrorResult& error)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::GetItem(uint32_t index,
|
|
||||||
nsIDOMSVGNumber **_retval)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
NS_IF_ADDREF(*_retval = GetItem(index, rv));
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
already_AddRefed<nsIDOMSVGNumber>
|
already_AddRefed<nsIDOMSVGNumber>
|
||||||
DOMSVGNumberList::InsertItemBefore(nsIDOMSVGNumber *newItem,
|
DOMSVGNumberList::InsertItemBefore(nsIDOMSVGNumber *newItem,
|
||||||
uint32_t index,
|
uint32_t index,
|
||||||
@ -282,16 +241,6 @@ DOMSVGNumberList::InsertItemBefore(nsIDOMSVGNumber *newItem,
|
|||||||
return domItem.forget();
|
return domItem.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::InsertItemBefore(nsIDOMSVGNumber *newItem,
|
|
||||||
uint32_t index,
|
|
||||||
nsIDOMSVGNumber **_retval)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
*_retval = InsertItemBefore(newItem, index, rv).get();
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
already_AddRefed<nsIDOMSVGNumber>
|
already_AddRefed<nsIDOMSVGNumber>
|
||||||
DOMSVGNumberList::ReplaceItem(nsIDOMSVGNumber *newItem,
|
DOMSVGNumberList::ReplaceItem(nsIDOMSVGNumber *newItem,
|
||||||
uint32_t index,
|
uint32_t index,
|
||||||
@ -336,16 +285,6 @@ DOMSVGNumberList::ReplaceItem(nsIDOMSVGNumber *newItem,
|
|||||||
return domItem.forget();
|
return domItem.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::ReplaceItem(nsIDOMSVGNumber *newItem,
|
|
||||||
uint32_t index,
|
|
||||||
nsIDOMSVGNumber **_retval)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
*_retval = ReplaceItem(newItem, index, rv).get();
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
already_AddRefed<nsIDOMSVGNumber>
|
already_AddRefed<nsIDOMSVGNumber>
|
||||||
DOMSVGNumberList::RemoveItem(uint32_t index,
|
DOMSVGNumberList::RemoveItem(uint32_t index,
|
||||||
ErrorResult& error)
|
ErrorResult& error)
|
||||||
@ -386,31 +325,6 @@ DOMSVGNumberList::RemoveItem(uint32_t index,
|
|||||||
return result.forget();
|
return result.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::RemoveItem(uint32_t index,
|
|
||||||
nsIDOMSVGNumber **_retval)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
*_retval = RemoveItem(index, rv).get();
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::AppendItem(nsIDOMSVGNumber *newItem,
|
|
||||||
nsIDOMSVGNumber **_retval)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
*_retval = AppendItem(newItem, rv).get();
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
DOMSVGNumberList::GetLength(uint32_t *aLength)
|
|
||||||
{
|
|
||||||
*aLength = Length();
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DOMSVGNumberList::EnsureItemAt(uint32_t aIndex)
|
DOMSVGNumberList::EnsureItemAt(uint32_t aIndex)
|
||||||
{
|
{
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
#include "nsAutoPtr.h"
|
#include "nsAutoPtr.h"
|
||||||
#include "nsCycleCollectionParticipant.h"
|
#include "nsCycleCollectionParticipant.h"
|
||||||
#include "nsDebug.h"
|
#include "nsDebug.h"
|
||||||
#include "nsIDOMSVGNumberList.h"
|
|
||||||
#include "nsTArray.h"
|
#include "nsTArray.h"
|
||||||
#include "SVGNumberList.h"
|
#include "SVGNumberList.h"
|
||||||
|
#include "nsIDOMSVGNumber.h"
|
||||||
#include "mozilla/Attributes.h"
|
#include "mozilla/Attributes.h"
|
||||||
#include "mozilla/ErrorResult.h"
|
#include "mozilla/ErrorResult.h"
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ class DOMSVGNumber;
|
|||||||
*
|
*
|
||||||
* Our DOM items are created lazily on demand as and when script requests them.
|
* Our DOM items are created lazily on demand as and when script requests them.
|
||||||
*/
|
*/
|
||||||
class DOMSVGNumberList MOZ_FINAL : public nsIDOMSVGNumberList,
|
class DOMSVGNumberList MOZ_FINAL : public nsISupports,
|
||||||
public nsWrapperCache
|
public nsWrapperCache
|
||||||
{
|
{
|
||||||
friend class DOMSVGNumber;
|
friend class DOMSVGNumber;
|
||||||
@ -47,7 +47,6 @@ class DOMSVGNumberList MOZ_FINAL : public nsIDOMSVGNumberList,
|
|||||||
public:
|
public:
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMSVGNumberList)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMSVGNumberList)
|
||||||
NS_DECL_NSIDOMSVGNUMBERLIST
|
|
||||||
|
|
||||||
DOMSVGNumberList(DOMSVGAnimatedNumberList *aAList,
|
DOMSVGNumberList(DOMSVGAnimatedNumberList *aAList,
|
||||||
const SVGNumberList &aInternalList)
|
const SVGNumberList &aInternalList)
|
||||||
|
@ -1148,8 +1148,8 @@ NS_IMETHODIMP nsSVGFEColorMatrixElement::GetType(nsIDOMSVGAnimatedEnumeration *
|
|||||||
return mEnumAttributes[TYPE].ToDOMAnimatedEnum(aType, this);
|
return mEnumAttributes[TYPE].ToDOMAnimatedEnum(aType, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute nsIDOMSVGAnimatedNumberList values; */
|
/* readonly attribute DOMSVGAnimatedNumberList values; */
|
||||||
NS_IMETHODIMP nsSVGFEColorMatrixElement::GetValues(nsIDOMSVGAnimatedNumberList * *aValues)
|
NS_IMETHODIMP nsSVGFEColorMatrixElement::GetValues(nsISupports * *aValues)
|
||||||
{
|
{
|
||||||
*aValues = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[VALUES],
|
*aValues = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[VALUES],
|
||||||
this, VALUES).get();
|
this, VALUES).get();
|
||||||
@ -1935,8 +1935,8 @@ NS_IMETHODIMP nsSVGComponentTransferFunctionElement::GetType(nsIDOMSVGAnimatedEn
|
|||||||
return mEnumAttributes[TYPE].ToDOMAnimatedEnum(aType, this);
|
return mEnumAttributes[TYPE].ToDOMAnimatedEnum(aType, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute nsIDOMSVGAnimatedNumberList tableValues; */
|
/* readonly attribute DOMSVGAnimatedNumberList tableValues; */
|
||||||
NS_IMETHODIMP nsSVGComponentTransferFunctionElement::GetTableValues(nsIDOMSVGAnimatedNumberList * *aTableValues)
|
NS_IMETHODIMP nsSVGComponentTransferFunctionElement::GetTableValues(nsISupports * *aTableValues)
|
||||||
{
|
{
|
||||||
*aTableValues = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[TABLEVALUES],
|
*aTableValues = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[TABLEVALUES],
|
||||||
this, TABLEVALUES).get();
|
this, TABLEVALUES).get();
|
||||||
@ -4092,7 +4092,7 @@ NS_IMETHODIMP nsSVGFEConvolveMatrixElement::GetOrderY(nsIDOMSVGAnimatedInteger *
|
|||||||
return mIntegerPairAttributes[ORDER].ToDOMAnimatedInteger(aOrderY, nsSVGIntegerPair::eSecond, this);
|
return mIntegerPairAttributes[ORDER].ToDOMAnimatedInteger(aOrderY, nsSVGIntegerPair::eSecond, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP nsSVGFEConvolveMatrixElement::GetKernelMatrix(nsIDOMSVGAnimatedNumberList * *aKernelMatrix)
|
NS_IMETHODIMP nsSVGFEConvolveMatrixElement::GetKernelMatrix(nsISupports * *aKernelMatrix)
|
||||||
{
|
{
|
||||||
*aKernelMatrix = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[KERNELMATRIX],
|
*aKernelMatrix = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[KERNELMATRIX],
|
||||||
this, KERNELMATRIX).get();
|
this, KERNELMATRIX).get();
|
||||||
|
@ -169,9 +169,9 @@ nsSVGTextElement::GetDy(nsIDOMSVGAnimatedLengthList * *aDy)
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute nsIDOMSVGAnimatedNumberList rotate; */
|
/* readonly attribute DOMSVGAnimatedNumberList rotate; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsSVGTextElement::GetRotate(nsIDOMSVGAnimatedNumberList * *aRotate)
|
nsSVGTextElement::GetRotate(nsISupports * *aRotate)
|
||||||
{
|
{
|
||||||
*aRotate = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[ROTATE],
|
*aRotate = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[ROTATE],
|
||||||
this, ROTATE).get();
|
this, ROTATE).get();
|
||||||
|
@ -78,8 +78,8 @@ NS_IMETHODIMP nsSVGTextPositioningElement::GetDy(nsIDOMSVGAnimatedLengthList * *
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* readonly attribute nsIDOMSVGAnimatedNumberList rotate; */
|
/* readonly attribute DOMSVGAnimatedNumberList rotate; */
|
||||||
NS_IMETHODIMP nsSVGTextPositioningElement::GetRotate(nsIDOMSVGAnimatedNumberList * *aRotate)
|
NS_IMETHODIMP nsSVGTextPositioningElement::GetRotate(nsISupports * *aRotate)
|
||||||
{
|
{
|
||||||
*aRotate = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[ROTATE],
|
*aRotate = DOMSVGAnimatedNumberList::GetDOMWrapper(&mNumberListAttributes[ROTATE],
|
||||||
this, ROTATE).get();
|
this, ROTATE).get();
|
||||||
|
@ -317,7 +317,6 @@
|
|||||||
#include "nsIDOMSVGAnimatedLength.h"
|
#include "nsIDOMSVGAnimatedLength.h"
|
||||||
#include "nsIDOMSVGAnimatedLengthList.h"
|
#include "nsIDOMSVGAnimatedLengthList.h"
|
||||||
#include "nsIDOMSVGAnimatedNumber.h"
|
#include "nsIDOMSVGAnimatedNumber.h"
|
||||||
#include "nsIDOMSVGAnimatedNumberList.h"
|
|
||||||
#include "nsIDOMSVGAnimatedPathData.h"
|
#include "nsIDOMSVGAnimatedPathData.h"
|
||||||
#include "nsIDOMSVGAnimatedPoints.h"
|
#include "nsIDOMSVGAnimatedPoints.h"
|
||||||
#include "nsIDOMSVGAnimatedRect.h"
|
#include "nsIDOMSVGAnimatedRect.h"
|
||||||
@ -353,7 +352,6 @@
|
|||||||
#include "nsIDOMSVGMaskElement.h"
|
#include "nsIDOMSVGMaskElement.h"
|
||||||
#include "nsIDOMSVGMetadataElement.h"
|
#include "nsIDOMSVGMetadataElement.h"
|
||||||
#include "nsIDOMSVGNumber.h"
|
#include "nsIDOMSVGNumber.h"
|
||||||
#include "nsIDOMSVGNumberList.h"
|
|
||||||
#include "nsIDOMSVGPathElement.h"
|
#include "nsIDOMSVGPathElement.h"
|
||||||
#include "nsIDOMSVGPatternElement.h"
|
#include "nsIDOMSVGPatternElement.h"
|
||||||
#include "nsIDOMSVGPolygonElement.h"
|
#include "nsIDOMSVGPolygonElement.h"
|
||||||
@ -1225,8 +1223,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
|
|||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedNumber, nsDOMGenericSH,
|
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedNumber, nsDOMGenericSH,
|
||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedNumberList, nsDOMGenericSH,
|
|
||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedRect, nsDOMGenericSH,
|
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedRect, nsDOMGenericSH,
|
||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedString, nsDOMGenericSH,
|
NS_DEFINE_CLASSINFO_DATA(SVGAnimatedString, nsDOMGenericSH,
|
||||||
@ -1239,8 +1235,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
|
|||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGNumber, nsDOMGenericSH,
|
NS_DEFINE_CLASSINFO_DATA(SVGNumber, nsDOMGenericSH,
|
||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGNumberList, nsDOMGenericSH,
|
|
||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGRect, nsDOMGenericSH,
|
NS_DEFINE_CLASSINFO_DATA(SVGRect, nsDOMGenericSH,
|
||||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||||
NS_DEFINE_CLASSINFO_DATA(SVGStringList, nsSVGStringListSH,
|
NS_DEFINE_CLASSINFO_DATA(SVGStringList, nsSVGStringListSH,
|
||||||
@ -3494,10 +3488,6 @@ nsDOMClassInfo::Init()
|
|||||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedNumber)
|
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedNumber)
|
||||||
DOM_CLASSINFO_MAP_END
|
DOM_CLASSINFO_MAP_END
|
||||||
|
|
||||||
DOM_CLASSINFO_MAP_BEGIN(SVGAnimatedNumberList, nsIDOMSVGAnimatedNumberList)
|
|
||||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedNumberList)
|
|
||||||
DOM_CLASSINFO_MAP_END
|
|
||||||
|
|
||||||
DOM_CLASSINFO_MAP_BEGIN(SVGAnimatedRect, nsIDOMSVGAnimatedRect)
|
DOM_CLASSINFO_MAP_BEGIN(SVGAnimatedRect, nsIDOMSVGAnimatedRect)
|
||||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedRect)
|
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGAnimatedRect)
|
||||||
DOM_CLASSINFO_MAP_END
|
DOM_CLASSINFO_MAP_END
|
||||||
@ -3523,10 +3513,6 @@ nsDOMClassInfo::Init()
|
|||||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGNumber)
|
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGNumber)
|
||||||
DOM_CLASSINFO_MAP_END
|
DOM_CLASSINFO_MAP_END
|
||||||
|
|
||||||
DOM_CLASSINFO_MAP_BEGIN(SVGNumberList, nsIDOMSVGNumberList)
|
|
||||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGNumberList)
|
|
||||||
DOM_CLASSINFO_MAP_END
|
|
||||||
|
|
||||||
DOM_CLASSINFO_MAP_BEGIN(SVGRect, nsIDOMSVGRect)
|
DOM_CLASSINFO_MAP_BEGIN(SVGRect, nsIDOMSVGRect)
|
||||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGRect)
|
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGRect)
|
||||||
DOM_CLASSINFO_MAP_END
|
DOM_CLASSINFO_MAP_END
|
||||||
|
@ -260,14 +260,12 @@ DOMCI_CLASS(SVGAnimatedInteger)
|
|||||||
DOMCI_CLASS(SVGAnimatedLength)
|
DOMCI_CLASS(SVGAnimatedLength)
|
||||||
DOMCI_CLASS(SVGAnimatedLengthList)
|
DOMCI_CLASS(SVGAnimatedLengthList)
|
||||||
DOMCI_CLASS(SVGAnimatedNumber)
|
DOMCI_CLASS(SVGAnimatedNumber)
|
||||||
DOMCI_CLASS(SVGAnimatedNumberList)
|
|
||||||
DOMCI_CLASS(SVGAnimatedRect)
|
DOMCI_CLASS(SVGAnimatedRect)
|
||||||
DOMCI_CLASS(SVGAnimatedString)
|
DOMCI_CLASS(SVGAnimatedString)
|
||||||
DOMCI_CLASS(SVGEvent)
|
DOMCI_CLASS(SVGEvent)
|
||||||
DOMCI_CLASS(SVGLength)
|
DOMCI_CLASS(SVGLength)
|
||||||
DOMCI_CLASS(SVGLengthList)
|
DOMCI_CLASS(SVGLengthList)
|
||||||
DOMCI_CLASS(SVGNumber)
|
DOMCI_CLASS(SVGNumber)
|
||||||
DOMCI_CLASS(SVGNumberList)
|
|
||||||
DOMCI_CLASS(SVGRect)
|
DOMCI_CLASS(SVGRect)
|
||||||
DOMCI_CLASS(SVGStringList)
|
DOMCI_CLASS(SVGStringList)
|
||||||
DOMCI_CLASS(SVGZoomEvent)
|
DOMCI_CLASS(SVGZoomEvent)
|
||||||
|
@ -24,7 +24,6 @@ XPIDLSRCS = \
|
|||||||
nsIDOMSVGAnimatedLength.idl \
|
nsIDOMSVGAnimatedLength.idl \
|
||||||
nsIDOMSVGAnimatedLengthList.idl \
|
nsIDOMSVGAnimatedLengthList.idl \
|
||||||
nsIDOMSVGAnimatedNumber.idl \
|
nsIDOMSVGAnimatedNumber.idl \
|
||||||
nsIDOMSVGAnimatedNumberList.idl \
|
|
||||||
nsIDOMSVGAnimatedPathData.idl \
|
nsIDOMSVGAnimatedPathData.idl \
|
||||||
nsIDOMSVGAnimatedPoints.idl \
|
nsIDOMSVGAnimatedPoints.idl \
|
||||||
nsIDOMSVGAnimatedRect.idl \
|
nsIDOMSVGAnimatedRect.idl \
|
||||||
@ -57,7 +56,6 @@ XPIDLSRCS = \
|
|||||||
nsIDOMSVGMetadataElement.idl \
|
nsIDOMSVGMetadataElement.idl \
|
||||||
nsIDOMSVGMpathElement.idl \
|
nsIDOMSVGMpathElement.idl \
|
||||||
nsIDOMSVGNumber.idl \
|
nsIDOMSVGNumber.idl \
|
||||||
nsIDOMSVGNumberList.idl \
|
|
||||||
nsIDOMSVGPathElement.idl \
|
nsIDOMSVGPathElement.idl \
|
||||||
nsIDOMSVGPatternElement.idl \
|
nsIDOMSVGPatternElement.idl \
|
||||||
nsIDOMSVGPolygonElement.idl \
|
nsIDOMSVGPolygonElement.idl \
|
||||||
|
@ -1,15 +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"
|
|
||||||
|
|
||||||
interface nsIDOMSVGNumberList;
|
|
||||||
|
|
||||||
[scriptable, uuid(93ebb030-f82d-4f8e-b133-d1b5abb73cf3)]
|
|
||||||
interface nsIDOMSVGAnimatedNumberList : nsISupports
|
|
||||||
{
|
|
||||||
readonly attribute nsIDOMSVGNumberList baseVal;
|
|
||||||
readonly attribute nsIDOMSVGNumberList animVal;
|
|
||||||
};
|
|
@ -10,7 +10,6 @@ interface nsIDOMSVGAnimatedLength;
|
|||||||
interface nsIDOMSVGAnimatedString;
|
interface nsIDOMSVGAnimatedString;
|
||||||
interface nsIDOMSVGAnimatedNumber;
|
interface nsIDOMSVGAnimatedNumber;
|
||||||
interface nsIDOMSVGAnimatedEnumeration;
|
interface nsIDOMSVGAnimatedEnumeration;
|
||||||
interface nsIDOMSVGAnimatedNumberList;
|
|
||||||
interface nsIDOMSVGAnimatedInteger;
|
interface nsIDOMSVGAnimatedInteger;
|
||||||
|
|
||||||
[scriptable, uuid(117CFA4C-B0EB-4C0F-A590-F77FBF42E76D)]
|
[scriptable, uuid(117CFA4C-B0EB-4C0F-A590-F77FBF42E76D)]
|
||||||
@ -50,7 +49,8 @@ interface nsIDOMSVGFEColorMatrixElement : nsIDOMSVGFilterPrimitiveStandardAttrib
|
|||||||
|
|
||||||
readonly attribute nsIDOMSVGAnimatedString in1;
|
readonly attribute nsIDOMSVGAnimatedString in1;
|
||||||
readonly attribute nsIDOMSVGAnimatedEnumeration type;
|
readonly attribute nsIDOMSVGAnimatedEnumeration type;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumberList values;
|
// SVGAnimatedNumberList
|
||||||
|
readonly attribute nsISupports values;
|
||||||
};
|
};
|
||||||
|
|
||||||
[scriptable, uuid(539000B3-2272-4F1A-BF24-23340DD408AF)]
|
[scriptable, uuid(539000B3-2272-4F1A-BF24-23340DD408AF)]
|
||||||
@ -71,7 +71,8 @@ interface nsIDOMSVGComponentTransferFunctionElement : nsIDOMSVGElement
|
|||||||
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
|
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
|
||||||
|
|
||||||
readonly attribute nsIDOMSVGAnimatedEnumeration type;
|
readonly attribute nsIDOMSVGAnimatedEnumeration type;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumberList tableValues;
|
// SVGAnimatedNumberList
|
||||||
|
readonly attribute nsISupports tableValues;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumber slope;
|
readonly attribute nsIDOMSVGAnimatedNumber slope;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumber intercept;
|
readonly attribute nsIDOMSVGAnimatedNumber intercept;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumber amplitude;
|
readonly attribute nsIDOMSVGAnimatedNumber amplitude;
|
||||||
@ -209,7 +210,8 @@ interface nsIDOMSVGFEConvolveMatrixElement : nsIDOMSVGFilterPrimitiveStandardAtt
|
|||||||
readonly attribute nsIDOMSVGAnimatedString in1;
|
readonly attribute nsIDOMSVGAnimatedString in1;
|
||||||
readonly attribute nsIDOMSVGAnimatedInteger orderX;
|
readonly attribute nsIDOMSVGAnimatedInteger orderX;
|
||||||
readonly attribute nsIDOMSVGAnimatedInteger orderY;
|
readonly attribute nsIDOMSVGAnimatedInteger orderY;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumberList kernelMatrix;
|
// SVGAnimatedNumberList
|
||||||
|
readonly attribute nsISupports kernelMatrix;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumber divisor;
|
readonly attribute nsIDOMSVGAnimatedNumber divisor;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumber bias;
|
readonly attribute nsIDOMSVGAnimatedNumber bias;
|
||||||
readonly attribute nsIDOMSVGAnimatedInteger targetX;
|
readonly attribute nsIDOMSVGAnimatedInteger targetX;
|
||||||
|
@ -1,30 +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"
|
|
||||||
|
|
||||||
interface nsIDOMSVGNumber;
|
|
||||||
|
|
||||||
[scriptable, uuid(35d7c850-b2c7-41e4-be59-08f6b29aa78f)]
|
|
||||||
interface nsIDOMSVGNumberList : nsISupports
|
|
||||||
{
|
|
||||||
readonly attribute unsigned long numberOfItems;
|
|
||||||
readonly attribute unsigned long length; // synonym for numberOfItems
|
|
||||||
|
|
||||||
void clear();
|
|
||||||
// raises(nsIDOMDOMException);
|
|
||||||
nsIDOMSVGNumber initialize(in nsIDOMSVGNumber newItem );
|
|
||||||
// raises(nsIDOMDOMException, nsIDOMSVGException);
|
|
||||||
nsIDOMSVGNumber getItem(in unsigned long index);
|
|
||||||
// raises(nsIDOMDOMException);
|
|
||||||
nsIDOMSVGNumber insertItemBefore(in nsIDOMSVGNumber newItem, in unsigned long index);
|
|
||||||
// raises(nsIDOMDOMException, nsIDOMSVGException);
|
|
||||||
nsIDOMSVGNumber replaceItem(in nsIDOMSVGNumber newItem, in unsigned long index);
|
|
||||||
// raises(nsIDOMDOMException, nsIDOMSVGException);
|
|
||||||
nsIDOMSVGNumber removeItem(in unsigned long index);
|
|
||||||
// raises(nsIDOMDOMException);
|
|
||||||
nsIDOMSVGNumber appendItem(in nsIDOMSVGNumber newItem);
|
|
||||||
// raises(nsIDOMDOMException, nsIDOMSVGException);
|
|
||||||
};
|
|
@ -6,7 +6,6 @@
|
|||||||
#include "nsIDOMSVGTextContentElement.idl"
|
#include "nsIDOMSVGTextContentElement.idl"
|
||||||
|
|
||||||
interface nsIDOMSVGAnimatedLengthList;
|
interface nsIDOMSVGAnimatedLengthList;
|
||||||
interface nsIDOMSVGAnimatedNumberList;
|
|
||||||
|
|
||||||
[scriptable, uuid(5D04C053-DB94-468E-BFD6-588569851A6B)]
|
[scriptable, uuid(5D04C053-DB94-468E-BFD6-588569851A6B)]
|
||||||
interface nsIDOMSVGTextPositioningElement : nsIDOMSVGTextContentElement
|
interface nsIDOMSVGTextPositioningElement : nsIDOMSVGTextContentElement
|
||||||
@ -15,5 +14,6 @@ interface nsIDOMSVGTextPositioningElement : nsIDOMSVGTextContentElement
|
|||||||
readonly attribute nsIDOMSVGAnimatedLengthList y;
|
readonly attribute nsIDOMSVGAnimatedLengthList y;
|
||||||
readonly attribute nsIDOMSVGAnimatedLengthList dx;
|
readonly attribute nsIDOMSVGAnimatedLengthList dx;
|
||||||
readonly attribute nsIDOMSVGAnimatedLengthList dy;
|
readonly attribute nsIDOMSVGAnimatedLengthList dy;
|
||||||
readonly attribute nsIDOMSVGAnimatedNumberList rotate;
|
// SVGAnimatedNumberList
|
||||||
|
readonly attribute nsISupports rotate;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user