本文整理汇总了C++中nsSVGAttrTearoffTable类的典型用法代码示例。如果您正苦于以下问题:C++ nsSVGAttrTearoffTable类的具体用法?C++ nsSVGAttrTearoffTable怎么用?C++ nsSVGAttrTearoffTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了nsSVGAttrTearoffTable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1:
nsSVGNumberPair::DOMAnimatedNumber::~DOMAnimatedNumber()
{
if (mIndex == eFirst) {
sSVGFirstAnimatedNumberTearoffTable.RemoveTearoff(mVal);
} else {
sSVGSecondAnimatedNumberTearoffTable.RemoveTearoff(mVal);
}
}
开发者ID:AtulKumar2,项目名称:gecko-dev,代码行数:8,代码来源:nsSVGNumberPair.cpp
示例2: if
SVGAngle::~SVGAngle()
{
if (mType == BaseValue) {
sBaseSVGAngleTearoffTable.RemoveTearoff(mVal);
} else if (mType == AnimValue) {
sAnimSVGAngleTearoffTable.RemoveTearoff(mVal);
} else {
delete mVal;
}
}
开发者ID:70599,项目名称:Waterfox,代码行数:10,代码来源:nsSVGAngle.cpp
示例3: SVGAngle
already_AddRefed<SVGAngle>
nsSVGAngle::ToDOMBaseVal(nsSVGElement *aSVGElement)
{
nsRefPtr<SVGAngle> domBaseVal =
sBaseSVGAngleTearoffTable.GetTearoff(this);
if (!domBaseVal) {
domBaseVal = new SVGAngle(this, aSVGElement, SVGAngle::BaseValue);
sBaseSVGAngleTearoffTable.AddTearoff(this, domBaseVal);
}
return domBaseVal.forget();
}
开发者ID:Gabuzo,项目名称:mozilla-central,代码行数:12,代码来源:nsSVGAngle.cpp
示例4: DOMAnimatedNumber
already_AddRefed<SVGAnimatedNumber>
nsSVGNumber2::ToDOMAnimatedNumber(nsSVGElement* aSVGElement)
{
nsRefPtr<DOMAnimatedNumber> domAnimatedNumber =
sSVGAnimatedNumberTearoffTable.GetTearoff(this);
if (!domAnimatedNumber) {
domAnimatedNumber = new DOMAnimatedNumber(this, aSVGElement);
sSVGAnimatedNumberTearoffTable.AddTearoff(this, domAnimatedNumber);
}
return domAnimatedNumber.forget();
}
开发者ID:AOSC-Dev,项目名称:Pale-Moon,代码行数:12,代码来源:nsSVGNumber2.cpp
示例5: SVGAnimatedLength
already_AddRefed<SVGAnimatedLength>
nsSVGLength2::ToDOMAnimatedLength(nsSVGElement* aSVGElement)
{
nsRefPtr<SVGAnimatedLength> svgAnimatedLength =
sSVGAnimatedLengthTearoffTable.GetTearoff(this);
if (!svgAnimatedLength) {
svgAnimatedLength = new SVGAnimatedLength(this, aSVGElement);
sSVGAnimatedLengthTearoffTable.AddTearoff(this, svgAnimatedLength);
}
return svgAnimatedLength.forget();
}
开发者ID:Balakrishnan-Vivek,项目名称:gecko-dev,代码行数:12,代码来源:nsSVGLength2.cpp
示例6: SVGAngle
already_AddRefed<SVGAngle>
nsSVGAngle::ToDOMAnimVal(nsSVGElement *aSVGElement)
{
RefPtr<SVGAngle> domAnimVal =
sAnimSVGAngleTearoffTable.GetTearoff(this);
if (!domAnimVal) {
domAnimVal = new SVGAngle(this, aSVGElement, SVGAngle::AnimValue);
sAnimSVGAngleTearoffTable.AddTearoff(this, domAnimVal);
}
return domAnimVal.forget();
}
开发者ID:70599,项目名称:Waterfox,代码行数:12,代码来源:nsSVGAngle.cpp
示例7: SVGAnimatedAngle
already_AddRefed<SVGAnimatedAngle>
nsSVGAngle::ToDOMAnimatedAngle(nsSVGElement *aSVGElement)
{
RefPtr<SVGAnimatedAngle> domAnimatedAngle =
sSVGAnimatedAngleTearoffTable.GetTearoff(this);
if (!domAnimatedAngle) {
domAnimatedAngle = new SVGAnimatedAngle(this, aSVGElement);
sSVGAnimatedAngleTearoffTable.AddTearoff(this, domAnimatedAngle);
}
return domAnimatedAngle.forget();
}
开发者ID:70599,项目名称:Waterfox,代码行数:12,代码来源:nsSVGAngle.cpp
示例8: DOMAnimatedLength
already_AddRefed<nsIDOMSVGAnimatedLength>
nsSVGLength2::ToDOMAnimatedLength(nsSVGElement* aSVGElement)
{
nsRefPtr<DOMAnimatedLength> domAnimatedLength =
sSVGAnimatedLengthTearoffTable.GetTearoff(this);
if (!domAnimatedLength) {
domAnimatedLength = new DOMAnimatedLength(this, aSVGElement);
sSVGAnimatedLengthTearoffTable.AddTearoff(this, domAnimatedLength);
}
return domAnimatedLength.forget();
}
开发者ID:b10n1k,项目名称:mozilla-central,代码行数:12,代码来源:nsSVGLength2.cpp
示例9: DOMBaseVal
nsresult
nsSVGViewBox::ToDOMBaseVal(nsIDOMSVGRect **aResult, nsSVGElement *aSVGElement)
{
nsRefPtr<DOMBaseVal> domBaseVal =
sBaseSVGViewBoxTearoffTable.GetTearoff(this);
if (!domBaseVal) {
domBaseVal = new DOMBaseVal(this, aSVGElement);
sBaseSVGViewBoxTearoffTable.AddTearoff(this, domBaseVal);
}
domBaseVal.forget(aResult);
return NS_OK;
}
开发者ID:b10n1k,项目名称:mozilla-central,代码行数:13,代码来源:nsSVGViewBox.cpp
示例10: DOMAnimVal
nsresult
nsSVGLength2::ToDOMAnimVal(nsIDOMSVGLength **aResult, nsSVGElement *aSVGElement)
{
nsRefPtr<DOMAnimVal> domAnimVal =
sAnimSVGLengthTearoffTable.GetTearoff(this);
if (!domAnimVal) {
domAnimVal = new DOMAnimVal(this, aSVGElement);
sAnimSVGLengthTearoffTable.AddTearoff(this, domAnimVal);
}
domAnimVal.forget(aResult);
return NS_OK;
}
开发者ID:Ajunboys,项目名称:mozilla-os2,代码行数:13,代码来源:nsSVGLength2.cpp
示例11: DOMAnimatedLength
nsresult
nsSVGLength2::ToDOMAnimatedLength(nsIDOMSVGAnimatedLength **aResult,
nsSVGElement *aSVGElement)
{
nsRefPtr<DOMAnimatedLength> domAnimatedLength =
sSVGAnimatedLengthTearoffTable.GetTearoff(this);
if (!domAnimatedLength) {
domAnimatedLength = new DOMAnimatedLength(this, aSVGElement);
sSVGAnimatedLengthTearoffTable.AddTearoff(this, domAnimatedLength);
}
domAnimatedLength.forget(aResult);
return NS_OK;
}
开发者ID:Ajunboys,项目名称:mozilla-os2,代码行数:14,代码来源:nsSVGLength2.cpp
示例12:
nsresult
nsSVGLength2::ToDOMAnimVal(nsIDOMSVGLength **aResult, nsSVGElement *aSVGElement)
{
*aResult = sAnimSVGLengthTearoffTable.GetTearoff(this);
if (!*aResult) {
*aResult = new DOMAnimVal(this, aSVGElement);
if (!*aResult)
return NS_ERROR_OUT_OF_MEMORY;
sAnimSVGLengthTearoffTable.AddTearoff(this, *aResult);
}
NS_ADDREF(*aResult);
return NS_OK;
}
开发者ID:Akin-Net,项目名称:mozilla-central,代码行数:14,代码来源:nsSVGLength2.cpp
示例13: DOMAnimVal
already_AddRefed<dom::SVGIRect>
nsSVGViewBox::ToDOMAnimVal(nsSVGElement *aSVGElement)
{
if ((mAnimVal && mAnimVal->none) ||
(!mAnimVal && (!mHasBaseVal || mBaseVal.none))) {
return nullptr;
}
RefPtr<DOMAnimVal> domAnimVal =
sAnimSVGViewBoxTearoffTable.GetTearoff(this);
if (!domAnimVal) {
domAnimVal = new DOMAnimVal(this, aSVGElement);
sAnimSVGViewBoxTearoffTable.AddTearoff(this, domAnimVal);
}
return domAnimVal.forget();
}
开发者ID:heiher,项目名称:gecko-dev,代码行数:17,代码来源:nsSVGViewBox.cpp
示例14: DOMAnimatedNumber
already_AddRefed<SVGAnimatedNumber>
nsSVGNumberPair::ToDOMAnimatedNumber(PairIndex aIndex,
nsSVGElement* aSVGElement)
{
nsRefPtr<DOMAnimatedNumber> domAnimatedNumber =
aIndex == eFirst ? sSVGFirstAnimatedNumberTearoffTable.GetTearoff(this) :
sSVGSecondAnimatedNumberTearoffTable.GetTearoff(this);
if (!domAnimatedNumber) {
domAnimatedNumber = new DOMAnimatedNumber(this, aIndex, aSVGElement);
if (aIndex == eFirst) {
sSVGFirstAnimatedNumberTearoffTable.AddTearoff(this, domAnimatedNumber);
} else {
sSVGSecondAnimatedNumberTearoffTable.AddTearoff(this, domAnimatedNumber);
}
}
return domAnimatedNumber.forget();
}
开发者ID:AtulKumar2,项目名称:gecko-dev,代码行数:18,代码来源:nsSVGNumberPair.cpp
示例15: DOMAnimVal
nsresult
nsSVGViewBox::ToDOMAnimVal(dom::SVGIRect **aResult,
nsSVGElement *aSVGElement)
{
if ((mAnimVal && mAnimVal->none) ||
(!mAnimVal && (!mHasBaseVal || mBaseVal.none))) {
*aResult = nullptr;
return NS_OK;
}
nsRefPtr<DOMAnimVal> domAnimVal =
sAnimSVGViewBoxTearoffTable.GetTearoff(this);
if (!domAnimVal) {
domAnimVal = new DOMAnimVal(this, aSVGElement);
sAnimSVGViewBoxTearoffTable.AddTearoff(this, domAnimVal);
}
domAnimVal.forget(aResult);
return NS_OK;
}
开发者ID:vitillo,项目名称:mozilla-central,代码行数:19,代码来源:nsSVGViewBox.cpp
示例16: DOMAnimatedInteger
nsresult
nsSVGIntegerPair::ToDOMAnimatedInteger(nsIDOMSVGAnimatedInteger **aResult,
PairIndex aIndex,
nsSVGElement *aSVGElement)
{
nsRefPtr<DOMAnimatedInteger> domAnimatedInteger =
aIndex == eFirst ? sSVGFirstAnimatedIntegerTearoffTable.GetTearoff(this) :
sSVGSecondAnimatedIntegerTearoffTable.GetTearoff(this);
if (!domAnimatedInteger) {
domAnimatedInteger = new DOMAnimatedInteger(this, aIndex, aSVGElement);
if (aIndex == eFirst) {
sSVGFirstAnimatedIntegerTearoffTable.AddTearoff(this, domAnimatedInteger);
} else {
sSVGSecondAnimatedIntegerTearoffTable.AddTearoff(this, domAnimatedInteger);
}
}
domAnimatedInteger.forget(aResult);
return NS_OK;
}
开发者ID:b10n1k,项目名称:mozilla-central,代码行数:20,代码来源:nsSVGIntegerPair.cpp
示例17:
SVGAnimatedAngle::~SVGAnimatedAngle()
{
sSVGAnimatedAngleTearoffTable.RemoveTearoff(mVal);
}
开发者ID:70599,项目名称:Waterfox,代码行数:4,代码来源:nsSVGAngle.cpp
示例18:
nsSVGViewBox::DOMBaseVal::~DOMBaseVal()
{
sBaseSVGViewBoxTearoffTable.RemoveTearoff(mVal);
}
开发者ID:b10n1k,项目名称:mozilla-central,代码行数:4,代码来源:nsSVGViewBox.cpp
示例19:
nsSVGNumber2::DOMAnimatedNumber::~DOMAnimatedNumber()
{
sSVGAnimatedNumberTearoffTable.RemoveTearoff(mVal);
}
开发者ID:AOSC-Dev,项目名称:Pale-Moon,代码行数:4,代码来源:nsSVGNumber2.cpp
示例20:
SVGAnimatedLength::~SVGAnimatedLength()
{
sSVGAnimatedLengthTearoffTable.RemoveTearoff(mVal);
}
开发者ID:Balakrishnan-Vivek,项目名称:gecko-dev,代码行数:4,代码来源:nsSVGLength2.cpp
注:本文中的nsSVGAttrTearoffTable类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论