Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz.

--HG--
extra : rebase_source : 89c476cd9436530b2df5acc903909e34188417a0
This commit is contained in:
Peter Van der Beken 2014-10-07 11:44:49 +02:00
parent bd58cd5aea
commit 9254096129
205 changed files with 9 additions and 346 deletions

View File

@ -51,7 +51,6 @@ public:
explicit nsChildContentList(nsINode* aNode)
: mNode(aNode)
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS

View File

@ -754,7 +754,6 @@ class nsDOMFileList MOZ_FINAL : public nsIDOMFileList,
public:
explicit nsDOMFileList(nsISupports *aParent) : mParent(aParent)
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS

View File

@ -320,7 +320,6 @@ public:
mSubtreeRoot(MOZ_THIS_IN_INITIALIZER_LIST()),
mSlots(nullptr)
{
SetIsDOMBinding();
}
#endif

View File

@ -54,8 +54,6 @@ Attr::Attr(nsDOMAttributeMap *aAttrMap,
// We don't add a reference to our content. It will tell us
// to drop our reference when it goes away.
SetIsDOMBinding();
}
NS_IMPL_CYCLE_COLLECTION_CLASS(Attr)

View File

@ -42,7 +42,6 @@ public:
, mBaseURI(aBaseURI)
{
MOZ_ASSERT(aOwner);
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS

View File

@ -28,7 +28,6 @@ public:
explicit DOMMatrixReadOnly(nsISupports* aParent)
: mParent(aParent), mMatrix2D(new gfx::Matrix())
{
SetIsDOMBinding();
}
DOMMatrixReadOnly(nsISupports* aParent, const DOMMatrixReadOnly& other)
@ -39,8 +38,6 @@ public:
} else {
mMatrix3D = new gfx::Matrix4x4(*other.mMatrix3D);
}
SetIsDOMBinding();
}
#define GetMatrixMember(entry2D, entry3D, default) \

View File

@ -25,7 +25,6 @@ using namespace mozilla::dom;
DOMParser::DOMParser()
: mAttemptedInit(false)
{
SetIsDOMBinding();
}
DOMParser::~DOMParser()

View File

@ -84,7 +84,6 @@ private:
explicit DOMParser(nsISupports* aOwner) : mOwner(aOwner), mAttemptedInit(false)
{
MOZ_ASSERT(aOwner);
SetIsDOMBinding();
}
nsresult InitInternal(nsISupports* aOwner, nsIPrincipal* prin,

View File

@ -31,7 +31,6 @@ public:
, mZ(aZ)
, mW(aW)
{
SetIsDOMBinding();
}
double X() const { return mX; }

View File

@ -23,7 +23,6 @@ NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMQuad, Release)
DOMQuad::DOMQuad(nsISupports* aParent, CSSPoint aPoints[4])
: mParent(aParent)
{
SetIsDOMBinding();
for (uint32_t i = 0; i < 4; ++i) {
mPoints[i] = new DOMPoint(aParent, aPoints[i].x, aPoints[i].y);
}
@ -32,7 +31,6 @@ DOMQuad::DOMQuad(nsISupports* aParent, CSSPoint aPoints[4])
DOMQuad::DOMQuad(nsISupports* aParent)
: mParent(aParent)
{
SetIsDOMBinding();
}
DOMQuad::~DOMQuad()

View File

@ -36,7 +36,6 @@ public:
explicit DOMRectReadOnly(nsISupports* aParent)
: mParent(aParent)
{
SetIsDOMBinding();
}
nsISupports* GetParentObject() const
@ -155,7 +154,6 @@ class DOMRectList MOZ_FINAL : public nsIDOMClientRectList,
public:
explicit DOMRectList(nsISupports *aParent) : mParent(aParent)
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS

View File

@ -21,11 +21,6 @@ protected:
virtual ~DOMStringList();
public:
DOMStringList()
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMStringList)

View File

@ -876,8 +876,6 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(DestinationInsertionPointList)
DestinationInsertionPointList::DestinationInsertionPointList(Element* aElement)
: mParent(aElement)
{
SetIsDOMBinding();
nsTArray<nsIContent*>* destPoints = aElement->GetExistingDestInsertionPoints();
if (destPoints) {
for (uint32_t i = 0; i < destPoints->Length(); i++) {

View File

@ -20,11 +20,6 @@ class StyleSheetList : public nsIDOMStyleSheetList
, public nsWrapperCache
{
public:
StyleSheetList()
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(StyleSheetList)
NS_DECL_NSIDOMSTYLESHEETLIST

View File

@ -39,11 +39,6 @@ class Element;
class nsBaseContentList : public nsINodeList
{
public:
nsBaseContentList()
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
// nsIDOMNodeList

View File

@ -34,7 +34,6 @@ nsDOMAttributeMap::nsDOMAttributeMap(Element* aContent)
{
// We don't add a reference to our content. If it goes away,
// we'll be told to drop our reference
SetIsDOMBinding();
}
/**

View File

@ -13,7 +13,6 @@ using namespace mozilla::dom;
nsDOMCaretPosition::nsDOMCaretPosition(nsINode* aNode, uint32_t aOffset)
: mOffset(aOffset), mOffsetNode(aNode), mAnonymousContentNode(nullptr)
{
SetIsDOMBinding();
}
nsDOMCaretPosition::~nsDOMCaretPosition()

View File

@ -87,7 +87,6 @@ nsDOMFileReader::nsDOMFileReader()
mResultArrayBuffer(nullptr)
{
SetDOMStringToNull(mResult);
SetIsDOMBinding();
}
nsDOMFileReader::~nsDOMFileReader()

View File

@ -37,7 +37,6 @@ public:
nsDOMMutationRecord(nsIAtom* aType, nsISupports* aOwner)
: mType(aType), mAttrNamespace(NullString()), mPrevValue(NullString()), mOwner(aOwner)
{
SetIsDOMBinding();
}
nsISupports* GetParentObject() const
@ -347,7 +346,6 @@ public:
: mOwner(aOwner), mLastPendingMutation(nullptr), mPendingMutationCount(0),
mCallback(&aCb), mWaitingForRun(false), mId(++sCount)
{
SetIsDOMBinding();
}
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(nsDOMMutationObserver)

View File

@ -18,7 +18,6 @@ using namespace mozilla;
nsDOMSerializer::nsDOMSerializer()
{
SetIsDOMBinding();
}
nsDOMSerializer::~nsDOMSerializer()

View File

@ -59,7 +59,6 @@ private:
explicit nsDOMSerializer(nsISupports* aOwner) : mOwner(aOwner)
{
MOZ_ASSERT(aOwner);
SetIsDOMBinding();
}
nsCOMPtr<nsISupports> mOwner;

View File

@ -24,7 +24,6 @@ nsDOMTokenList::nsDOMTokenList(Element* aElement, nsIAtom* aAttrAtom)
{
// We don't add a reference to our element. If it goes away,
// we'll be told to drop our reference
SetIsDOMBinding();
}
nsDOMTokenList::~nsDOMTokenList() { }

View File

@ -16,7 +16,6 @@ nsFormData::nsFormData(nsISupports* aOwner)
: nsFormSubmission(NS_LITERAL_CSTRING("UTF-8"), nullptr)
, mOwner(aOwner)
{
SetIsDOMBinding();
}
// -------------------------------------------------------------------------

View File

@ -57,7 +57,6 @@ public:
, mAssertNextInsertOrAppendNode(nullptr)
#endif
{
SetIsDOMBinding();
MOZ_ASSERT(aNode, "range isn't in a document!");
mOwner = aNode->OwnerDoc();
}

View File

@ -307,7 +307,6 @@ nsXMLHttpRequest::nsXMLHttpRequest()
mIsMappedArrayBuffer(false),
mXPCOMifier(nullptr)
{
SetIsDOMBinding();
#ifdef DEBUG
StaticAssertions();
#endif

View File

@ -64,7 +64,6 @@ HTMLCanvasPrintState::HTMLCanvasPrintState(HTMLCanvasElement* aCanvas,
: mIsDone(false), mPendingNotify(false), mCanvas(aCanvas),
mContext(aContext), mCallback(aCallback)
{
SetIsDOMBinding();
}
HTMLCanvasPrintState::~HTMLCanvasPrintState()

View File

@ -24,7 +24,6 @@ using namespace mozilla::dom;
HTMLContentElement::HTMLContentElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
: nsGenericHTMLElement(aNodeInfo), mValidSelector(true), mIsInsertionPoint(false)
{
SetIsDOMBinding();
}
HTMLContentElement::~HTMLContentElement()
@ -312,7 +311,6 @@ DistributedContentList::DistributedContentList(HTMLContentElement* aHostElement)
: mParent(aHostElement)
{
MOZ_COUNT_CTOR(DistributedContentList);
SetIsDOMBinding();
if (aHostElement->IsInsertionPoint()) {
if (aHostElement->MatchedNodes().IsEmpty()) {

View File

@ -76,7 +76,6 @@ HTMLFormControlsCollection::HTMLFormControlsCollection(HTMLFormElement* aForm)
, mElements(8)
, mNameLookupTable(HTMLFormElement::FORM_CONTROL_LIST_HASHTABLE_LENGTH)
{
SetIsDOMBinding();
}
HTMLFormControlsCollection::~HTMLFormControlsCollection()

View File

@ -35,8 +35,6 @@ namespace dom {
HTMLOptionsCollection::HTMLOptionsCollection(HTMLSelectElement* aSelect)
{
SetIsDOMBinding();
// Do not maintain a reference counted reference. When
// the select goes away, it will let us know.
mSelect = aSelect;

View File

@ -46,7 +46,6 @@ HTMLPropertiesCollection::HTMLPropertiesCollection(nsGenericHTMLElement* aRoot)
, mDoc(aRoot->GetUncomposedDoc())
, mIsDirty(true)
{
SetIsDOMBinding();
mNames = new PropertyStringList(this);
if (mDoc) {
mDoc->AddMutationObserver(this);
@ -311,7 +310,6 @@ PropertyNodeList::PropertyNodeList(HTMLPropertiesCollection* aCollection,
mParent(aParent),
mIsDirty(true)
{
SetIsDOMBinding();
if (mDoc) {
mDoc->AddMutationObserver(this);
}

View File

@ -17,7 +17,6 @@ using namespace mozilla::dom;
HTMLShadowElement::HTMLShadowElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
: nsGenericHTMLElement(aNodeInfo), mIsInsertionPoint(false)
{
SetIsDOMBinding();
}
HTMLShadowElement::~HTMLShadowElement()

View File

@ -73,7 +73,6 @@ TableRowsCollection::TableRowsCollection(HTMLTableElement *aParent)
nsGkAtoms::tr,
false))
{
SetIsDOMBinding();
}
TableRowsCollection::~TableRowsCollection()

View File

@ -25,7 +25,6 @@ MediaError::MediaError(HTMLMediaElement* aParent, uint16_t aCode)
: mParent(aParent)
, mCode(aCode)
{
SetIsDOMBinding();
}
NS_IMETHODIMP MediaError::GetCode(uint16_t* aCode)

View File

@ -841,7 +841,6 @@ NS_INTERFACE_MAP_END
UndoManager::UndoManager(nsIContent* aNode)
: mHostNode(aNode), mInTransaction(false), mIsDisconnected(false)
{
SetIsDOMBinding();
mTxnManager = new nsTransactionManager();
}

View File

@ -24,7 +24,6 @@ NS_INTERFACE_MAP_END
ValidityState::ValidityState(nsIConstraintValidation* aConstraintValidation)
: mConstraintValidation(aConstraintValidation)
{
SetIsDOMBinding();
}
NS_IMETHODIMP

View File

@ -55,8 +55,6 @@ nsDOMStringMap::nsDOMStringMap(nsGenericHTMLElement* aElement)
: mElement(aElement),
mRemovingProp(false)
{
SetIsDOMBinding();
mElement->AddMutationObserver(this);
}

View File

@ -18,7 +18,6 @@ HTMLAllCollection::HTMLAllCollection(nsHTMLDocument* aDocument)
: mDocument(aDocument)
{
MOZ_ASSERT(mDocument);
SetIsDOMBinding();
}
HTMLAllCollection::~HTMLAllCollection()

View File

@ -127,7 +127,6 @@ DOMMediaStream::DOMMediaStream()
mStream(nullptr), mHintContents(0), mTrackTypesAvailable(0),
mNotifiedOfMediaStreamGraphShutdown(false)
{
SetIsDOMBinding();
}
DOMMediaStream::~DOMMediaStream()

View File

@ -15,8 +15,6 @@ namespace dom {
MediaStreamTrack::MediaStreamTrack(DOMMediaStream* aStream, TrackID aTrackID)
: mStream(aStream), mTrackID(aTrackID), mEnded(false), mEnabled(true)
{
SetIsDOMBinding();
memset(&mID, 0, sizeof(mID));
nsresult rv;

View File

@ -43,7 +43,6 @@ void
MediaTrack::Init(nsPIDOMWindow* aOwnerWindow)
{
BindToOwner(aOwnerWindow);
SetIsDOMBinding();
}
} // namespace dom

View File

@ -35,7 +35,6 @@ NS_INTERFACE_MAP_END
TextTrackCueList::TextTrackCueList(nsISupports* aParent) : mParent(aParent)
{
SetIsDOMBinding();
}
TextTrackCueList::~TextTrackCueList()

View File

@ -46,7 +46,6 @@ TextTrackRegion::TextTrackRegion(nsISupports* aGlobal)
, mViewportAnchorX(0)
, mViewportAnchorY(100)
{
SetIsDOMBinding();
}
void

View File

@ -25,7 +25,6 @@ VideoPlaybackQuality::VideoPlaybackQuality(HTMLMediaElement* aElement,
, mDroppedFrames(aDroppedFrames)
, mCorruptedFrames(aCorruptedFrames)
{
SetIsDOMBinding();
}
HTMLMediaElement*

View File

@ -15,7 +15,6 @@ MediaKeyError::MediaKeyError(EventTarget* aOwner, uint32_t aSystemCode)
: Event(aOwner, nullptr, nullptr)
, mSystemCode(aSystemCode)
{
SetIsDOMBinding();
InitEvent(NS_LITERAL_STRING("error"), false, false);
}

View File

@ -41,7 +41,6 @@ MediaKeys::MediaKeys(nsPIDOMWindow* aParent, const nsAString& aKeySystem)
, mKeySystem(aKeySystem)
, mCreatePromiseId(0)
{
SetIsDOMBinding();
}
static PLDHashOperator

View File

@ -48,7 +48,6 @@ AudioBuffer::AudioBuffer(AudioContext* aContext, uint32_t aNumberOfChannels,
mSampleRate(aSampleRate)
{
mJSChannels.SetCapacity(aNumberOfChannels);
SetIsDOMBinding();
mozilla::HoldJSObjects(this);
}

View File

@ -26,7 +26,6 @@ AudioListener::AudioListener(AudioContext* aContext)
, mSpeedOfSound(343.3) // meters/second
{
MOZ_ASSERT(aContext);
SetIsDOMBinding();
}
JSObject*

View File

@ -72,7 +72,6 @@ AudioNode::AudioNode(AudioContext* aContext,
{
MOZ_ASSERT(aContext);
DOMEventTargetHelper::BindToOwner(aContext->GetParentObject());
SetIsDOMBinding();
aContext->UpdateNodeCount(1);
}

View File

@ -51,7 +51,6 @@ AudioParam::AudioParam(AudioNode* aNode,
, mCallback(aCallback)
, mDefaultValue(aDefaultValue)
{
SetIsDOMBinding();
}
AudioParam::~AudioParam()

View File

@ -28,7 +28,6 @@ AudioProcessingEvent::AudioProcessingEvent(ScriptProcessorNode* aOwner,
, mPlaybackTime(0.0)
, mNode(aOwner)
{
SetIsDOMBinding();
}
AudioProcessingEvent::~AudioProcessingEvent()

View File

@ -25,7 +25,6 @@ OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioContext* aOwner,
WidgetEvent* aEvent)
: Event(aOwner, aPresContext, aEvent)
{
SetIsDOMBinding();
}
OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent()

View File

@ -24,7 +24,6 @@ PeriodicWave::PeriodicWave(AudioContext* aContext,
: mContext(aContext)
{
MOZ_ASSERT(aContext);
SetIsDOMBinding();
// Caller should have checked this and thrown.
MOZ_ASSERT(aLength > 0);

View File

@ -23,7 +23,6 @@ NS_INTERFACE_MAP_END
SpeechGrammar::SpeechGrammar(nsISupports* aParent)
: mParent(aParent)
{
SetIsDOMBinding();
}
SpeechGrammar::~SpeechGrammar()

View File

@ -27,7 +27,6 @@ SpeechGrammarList::SpeechGrammarList(nsISupports* aParent, nsISpeechRecognitionS
: mParent(aParent)
{
this->mRecognitionService = aRecognitionService;
SetIsDOMBinding();
}
SpeechGrammarList::~SpeechGrammarList()

View File

@ -26,7 +26,6 @@ SpeechRecognitionAlternative::SpeechRecognitionAlternative(SpeechRecognition* aP
, mConfidence(0)
, mParent(aParent)
{
SetIsDOMBinding();
}
SpeechRecognitionAlternative::~SpeechRecognitionAlternative()

View File

@ -23,7 +23,6 @@ NS_INTERFACE_MAP_END
SpeechRecognitionResult::SpeechRecognitionResult(SpeechRecognition* aParent)
: mParent(aParent)
{
SetIsDOMBinding();
}
SpeechRecognitionResult::~SpeechRecognitionResult()

View File

@ -24,7 +24,6 @@ NS_INTERFACE_MAP_END
SpeechRecognitionResultList::SpeechRecognitionResultList(SpeechRecognition* aParent)
: mParent(aParent)
{
SetIsDOMBinding();
}
SpeechRecognitionResultList::~SpeechRecognitionResultList()

View File

@ -77,7 +77,6 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(SpeechSynthesis)
SpeechSynthesis::SpeechSynthesis(nsPIDOMWindow* aParent)
: mParent(aParent)
{
SetIsDOMBinding();
}
SpeechSynthesis::~SpeechSynthesis()

View File

@ -35,7 +35,6 @@ SpeechSynthesisUtterance::SpeechSynthesisUtterance(nsPIDOMWindow* aOwnerWindow,
, mState(STATE_NONE)
, mPaused(false)
{
SetIsDOMBinding();
}
SpeechSynthesisUtterance::~SpeechSynthesisUtterance() {}

View File

@ -24,7 +24,6 @@ SpeechSynthesisVoice::SpeechSynthesisVoice(nsISupports* aParent,
: mParent(aParent)
, mUri(aUri)
{
SetIsDOMBinding();
}
SpeechSynthesisVoice::~SpeechSynthesisVoice()

View File

@ -177,7 +177,6 @@ private:
, mAttrEnum(aAttrEnum)
, mAxis(aAxis)
{
SetIsDOMBinding();
}
~DOMSVGAnimatedLengthList();

View File

@ -107,7 +107,6 @@ private:
, mElement(aElement)
, mAttrEnum(aAttrEnum)
{
SetIsDOMBinding();
}
~DOMSVGAnimatedNumberList();

View File

@ -112,8 +112,6 @@ DOMSVGLength::DOMSVGLength(DOMSVGLengthList *aList,
aListIndex <= MaxListIndex(), "bad arg");
NS_ABORT_IF_FALSE(IndexIsValid(), "Bad index for DOMSVGNumber!");
SetIsDOMBinding();
}
DOMSVGLength::DOMSVGLength()
@ -125,7 +123,6 @@ DOMSVGLength::DOMSVGLength()
, mValue(0.0f)
, mVal(nullptr)
{
SetIsDOMBinding();
}
DOMSVGLength::DOMSVGLength(nsSVGLength2* aVal, nsSVGElement* aSVGElement,
@ -139,7 +136,6 @@ DOMSVGLength::DOMSVGLength(nsSVGLength2* aVal, nsSVGElement* aSVGElement,
, mVal(aVal)
, mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
DOMSVGLength::~DOMSVGLength()

View File

@ -61,8 +61,6 @@ public:
const SVGLengthList &aInternalList)
: mAList(aAList)
{
SetIsDOMBinding();
// aInternalList must be passed in explicitly because we can't use
// InternalList() here. (Because it depends on IsAnimValList, which depends
// on this object having been assigned to aAList's mBaseVal or mAnimVal,

View File

@ -98,8 +98,6 @@ DOMSVGNumber::DOMSVGNumber(DOMSVGNumberList *aList,
aListIndex <= MaxListIndex(), "bad arg");
NS_ABORT_IF_FALSE(IndexIsValid(), "Bad index for DOMSVGNumber!");
SetIsDOMBinding();
}
DOMSVGNumber::DOMSVGNumber(nsISupports* aParent)
@ -110,7 +108,6 @@ DOMSVGNumber::DOMSVGNumber(nsISupports* aParent)
, mIsAnimValItem(false)
, mValue(0.0f)
{
SetIsDOMBinding();
}
/* static */ already_AddRefed<DOMSVGNumber>

View File

@ -61,8 +61,6 @@ public:
const SVGNumberList &aInternalList)
: mAList(aAList)
{
SetIsDOMBinding();
// aInternalList must be passed in explicitly because we can't use
// InternalList() here. (Because it depends on IsAnimValList, which depends
// on this object having been assigned to aAList's mBaseVal or mAnimVal,

View File

@ -79,7 +79,6 @@ DOMSVGPathSeg::DOMSVGPathSeg(DOMSVGPathSegList *aList,
, mListIndex(aListIndex)
, mIsAnimValItem(aIsAnimValItem)
{
SetIsDOMBinding();
// These shifts are in sync with the members in the header.
NS_ABORT_IF_FALSE(aList &&
aListIndex <= MaxListIndex(), "bad arg");
@ -92,7 +91,6 @@ DOMSVGPathSeg::DOMSVGPathSeg()
, mListIndex(0)
, mIsAnimValItem(false)
{
SetIsDOMBinding();
}
void

View File

@ -170,8 +170,6 @@ private:
: mElement(aElement)
, mIsAnimValList(aIsAnimValList)
{
SetIsDOMBinding();
InternalListWillChangeTo(InternalList()); // Sync mItems
}

View File

@ -172,8 +172,6 @@ private:
: mElement(aElement)
, mIsAnimValList(aIsAnimValList)
{
SetIsDOMBinding();
InternalListWillChangeTo(InternalList()); // Sync mItems
}

View File

@ -100,7 +100,6 @@ private:
, mAttrEnum(aAttrEnum)
, mIsConditionalProcessingAttribute(aIsConditionalProcessingAttribute)
{
SetIsDOMBinding();
}
~DOMSVGStringList();

View File

@ -56,8 +56,6 @@ public:
const SVGTransformList &aInternalList)
: mAList(aAList)
{
SetIsDOMBinding();
// aInternalList must be passed in explicitly because we can't use
// InternalList() here. (Because it depends on IsAnimValList, which depends
// on this object having been assigned to aAList's mBaseVal or mAnimVal,

View File

@ -30,7 +30,6 @@ public:
SVGAngle(nsSVGAngle* aVal, nsSVGElement *aSVGElement, AngleType aType)
: mVal(aVal), mSVGElement(aSVGElement), mType(aType)
{
SetIsDOMBinding();
}
// WebIDL

View File

@ -26,7 +26,6 @@ public:
SVGAnimatedAngle(nsSVGAngle* aVal, nsSVGElement *aSVGElement)
: mVal(aVal), mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
// WebIDL

View File

@ -22,7 +22,6 @@ class SVGAnimatedBoolean MOZ_FINAL : public nsWrapperCache
SVGAnimatedBoolean(nsSVGBoolean* aVal, nsSVGElement *aSVGElement)
: mVal(aVal), mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
// WebIDL

View File

@ -37,7 +37,6 @@ protected:
explicit SVGAnimatedEnumeration(nsSVGElement* aSVGElement)
: mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
virtual ~SVGAnimatedEnumeration() {};

View File

@ -37,7 +37,6 @@ protected:
explicit SVGAnimatedInteger(nsSVGElement* aSVGElement)
: mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
virtual ~SVGAnimatedInteger() {};

View File

@ -25,7 +25,8 @@ public:
SVGAnimatedLength(nsSVGLength2* aVal, nsSVGElement *aSVGElement)
: mVal(aVal), mSVGElement(aSVGElement)
{ SetIsDOMBinding(); }
{
}
// WebIDL
nsSVGElement* GetParentObject() { return mSVGElement; }

View File

@ -38,7 +38,6 @@ protected:
explicit SVGAnimatedNumber(nsSVGElement* aSVGElement)
: mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
virtual ~SVGAnimatedNumber() {};

View File

@ -124,7 +124,6 @@ class DOMSVGAnimatedPreserveAspectRatio MOZ_FINAL : public nsISupports,
nsSVGElement *aSVGElement)
: mVal(aVal), mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
// WebIDL

View File

@ -21,7 +21,6 @@ SVGAnimatedRect::SVGAnimatedRect(nsSVGViewBox* aVal, nsSVGElement* aSVGElement)
: mVal(aVal)
, mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
SVGAnimatedRect::~SVGAnimatedRect()

View File

@ -18,7 +18,6 @@ public:
explicit SVGAnimatedString(nsSVGElement* aSVGElement)
: mSVGElement(aSVGElement)
{
SetIsDOMBinding();
}
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;

View File

@ -106,7 +106,6 @@ private:
, mAnimVal(nullptr)
, mElement(aElement)
{
SetIsDOMBinding();
}
~SVGAnimatedTransformList();

View File

@ -22,11 +22,6 @@ class SVGIRect : public nsISupports,
public nsWrapperCache
{
public:
SVGIRect()
{
SetIsDOMBinding();
}
virtual ~SVGIRect()
{
}

View File

@ -59,21 +59,15 @@ public:
/**
* Ctor for SVGMatrix objects that belong to a SVGTransform.
*/
explicit SVGMatrix(SVGTransform& aTransform) : mTransform(&aTransform) {
SetIsDOMBinding();
}
explicit SVGMatrix(SVGTransform& aTransform) : mTransform(&aTransform) {}
/**
* Ctors for SVGMatrix objects created independently of a SVGTransform.
*/
// Default ctor for gfxMatrix will produce identity mx
SVGMatrix() {
SetIsDOMBinding();
}
SVGMatrix() {}
explicit SVGMatrix(const gfxMatrix &aMatrix) : mMatrix(aMatrix) {
SetIsDOMBinding();
}
explicit SVGMatrix(const gfxMatrix &aMatrix) : mMatrix(aMatrix) {}
const gfxMatrix& GetMatrix() const {
return mTransform ? mTransform->Matrixgfx() : mMatrix;

View File

@ -125,7 +125,6 @@ public:
bool aIsBaseValue)
: mVal(aVal), mSVGElement(aSVGElement), mIsBaseValue(aIsBaseValue)
{
SetIsDOMBinding();
}
// WebIDL

View File

@ -112,7 +112,6 @@ SVGTransform::SVGTransform(DOMSVGTransformList *aList,
, mIsAnimValItem(aIsAnimValItem)
, mTransform(nullptr)
{
SetIsDOMBinding();
// These shifts are in sync with the members in the header.
NS_ABORT_IF_FALSE(aList &&
aListIndex <= MaxListIndex(), "bad arg");
@ -128,7 +127,6 @@ SVGTransform::SVGTransform()
// initialises to matrix type with identity
// matrix
{
SetIsDOMBinding();
}
SVGTransform::SVGTransform(const gfxMatrix &aMatrix)
@ -137,7 +135,6 @@ SVGTransform::SVGTransform(const gfxMatrix &aMatrix)
, mIsAnimValItem(false)
, mTransform(new nsSVGTransform(aMatrix))
{
SetIsDOMBinding();
}
SVGTransform::SVGTransform(const nsSVGTransform &aTransform)
@ -146,7 +143,6 @@ SVGTransform::SVGTransform(const nsSVGTransform &aTransform)
, mIsAnimValItem(false)
, mTransform(new nsSVGTransform(aTransform))
{
SetIsDOMBinding();
}
SVGTransform::~SVGTransform()

View File

@ -50,7 +50,6 @@ public:
, mIsAnimValItem(false)
, mIsTranslatePoint(false)
{
SetIsDOMBinding();
}
explicit nsISVGPoint(SVGPoint* aPt, bool aIsTranslatePoint)
@ -60,7 +59,6 @@ public:
, mIsAnimValItem(false)
, mIsTranslatePoint(aIsTranslatePoint)
{
SetIsDOMBinding();
mPt.mX = aPt->GetX();
mPt.mY = aPt->GetY();
}

View File

@ -143,7 +143,6 @@ public:
, mPseudoType(aPseudoType)
{
MOZ_ASSERT(aTarget, "null animation target is not yet supported");
SetIsDOMBinding();
}
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(Animation)

View File

@ -21,7 +21,6 @@ public:
explicit AnimationEffect(Animation* aAnimation)
: mAnimation(aAnimation)
{
SetIsDOMBinding();
}
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AnimationEffect)

View File

@ -36,7 +36,6 @@ public:
, mIsRunningOnCompositor(false)
, mTimeline(aTimeline)
{
SetIsDOMBinding();
}
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AnimationPlayer)

View File

@ -24,7 +24,6 @@ public:
explicit AnimationTimeline(nsIDocument* aDocument)
: mDocument(aDocument)
{
SetIsDOMBinding();
}
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AnimationTimeline)

View File

@ -56,8 +56,6 @@ ArchiveReader::ArchiveReader(nsIDOMBlob* aBlob, nsPIDOMWindow* aWindow,
{
MOZ_ASSERT(aBlob);
MOZ_ASSERT(aWindow);
SetIsDOMBinding();
}
ArchiveReader::~ArchiveReader()

View File

@ -21,7 +21,6 @@ BarProp::BarProp(nsGlobalWindow* aWindow)
: mDOMWindow(aWindow)
{
MOZ_ASSERT(aWindow->IsInnerWindow());
SetIsDOMBinding();
}
BarProp::~BarProp()

View File

@ -560,7 +560,6 @@ Console::Console(nsPIDOMWindow* aWindow)
}
}
SetIsDOMBinding();
mozilla::HoldJSObjects(this);
}

View File

@ -32,7 +32,6 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Crypto, mWindow, mSubtle)
Crypto::Crypto()
{
MOZ_COUNT_CTOR(Crypto);
SetIsDOMBinding();
}
Crypto::~Crypto()

View File

@ -24,7 +24,6 @@ NS_INTERFACE_MAP_END
DOMError::DOMError(nsPIDOMWindow* aWindow)
: mWindow(aWindow)
{
SetIsDOMBinding();
}
DOMError::DOMError(nsPIDOMWindow* aWindow, nsresult aValue)
@ -35,15 +34,12 @@ DOMError::DOMError(nsPIDOMWindow* aWindow, nsresult aValue)
CopyUTF8toUTF16(name, mName);
CopyUTF8toUTF16(message, mMessage);
SetIsDOMBinding();
}
DOMError::DOMError(nsPIDOMWindow* aWindow, const nsAString& aName)
: mWindow(aWindow)
, mName(aName)
{
SetIsDOMBinding();
}
DOMError::DOMError(nsPIDOMWindow* aWindow, const nsAString& aName,
@ -52,7 +48,6 @@ DOMError::DOMError(nsPIDOMWindow* aWindow, const nsAString& aName,
, mName(aName)
, mMessage(aMessage)
{
SetIsDOMBinding();
}
DOMError::~DOMError()

View File

@ -200,8 +200,6 @@ Exception::Exception(const nsACString& aMessage,
mInitialized(false),
mHoldingJSVal(false)
{
SetIsDOMBinding();
// A little hack... The nsIGenericModule nsIClassInfo scheme relies on there
// having been at least one instance made via the factory. Otherwise, the
// shared factory/classinsance object never gets created and our QI getter
@ -600,7 +598,6 @@ DOMException::DOMException(nsresult aRv, const nsACString& aMessage,
mMessage(aMessage),
mCode(aCode)
{
SetIsDOMBinding();
}
NS_IMETHODIMP

View File

@ -67,7 +67,6 @@ MessageChannel::MessageChannel(nsPIDOMWindow* aWindow)
: mWindow(aWindow)
{
MOZ_COUNT_CTOR(MessageChannel);
SetIsDOMBinding();
mPort1 = new MessagePort(mWindow);
mPort2 = new MessagePort(mWindow);

View File

@ -314,12 +314,10 @@ PostMessageRunnable::Run()
MessagePortBase::MessagePortBase(nsPIDOMWindow* aWindow)
: DOMEventTargetHelper(aWindow)
{
// SetIsDOMBinding() is called by DOMEventTargetHelper's ctor.
}
MessagePortBase::MessagePortBase()
{
SetIsDOMBinding();
}
NS_IMPL_CYCLE_COLLECTION_CLASS(MessagePort)

View File

@ -32,7 +32,6 @@ public:
: mOwner(aOwner)
, mPorts(aPorts)
{
SetIsDOMBinding();
}
nsISupports*

Some files were not shown because too many files have changed in this diff Show More