mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz.
--HG-- extra : rebase_source : 89c476cd9436530b2df5acc903909e34188417a0
This commit is contained in:
parent
bd58cd5aea
commit
9254096129
@ -51,7 +51,6 @@ public:
|
||||
explicit nsChildContentList(nsINode* aNode)
|
||||
: mNode(aNode)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
@ -754,7 +754,6 @@ class nsDOMFileList MOZ_FINAL : public nsIDOMFileList,
|
||||
public:
|
||||
explicit nsDOMFileList(nsISupports *aParent) : mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
@ -320,7 +320,6 @@ public:
|
||||
mSubtreeRoot(MOZ_THIS_IN_INITIALIZER_LIST()),
|
||||
mSlots(nullptr)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -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)
|
||||
|
@ -42,7 +42,6 @@ public:
|
||||
, mBaseURI(aBaseURI)
|
||||
{
|
||||
MOZ_ASSERT(aOwner);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
@ -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) \
|
||||
|
@ -25,7 +25,6 @@ using namespace mozilla::dom;
|
||||
DOMParser::DOMParser()
|
||||
: mAttemptedInit(false)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
DOMParser::~DOMParser()
|
||||
|
@ -84,7 +84,6 @@ private:
|
||||
explicit DOMParser(nsISupports* aOwner) : mOwner(aOwner), mAttemptedInit(false)
|
||||
{
|
||||
MOZ_ASSERT(aOwner);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
nsresult InitInternal(nsISupports* aOwner, nsIPrincipal* prin,
|
||||
|
@ -31,7 +31,6 @@ public:
|
||||
, mZ(aZ)
|
||||
, mW(aW)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
double X() const { return mX; }
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -21,11 +21,6 @@ protected:
|
||||
virtual ~DOMStringList();
|
||||
|
||||
public:
|
||||
DOMStringList()
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMStringList)
|
||||
|
||||
|
@ -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++) {
|
||||
|
@ -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
|
||||
|
@ -39,11 +39,6 @@ class Element;
|
||||
class nsBaseContentList : public nsINodeList
|
||||
{
|
||||
public:
|
||||
nsBaseContentList()
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
||||
// nsIDOMNodeList
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,6 @@ using namespace mozilla::dom;
|
||||
nsDOMCaretPosition::nsDOMCaretPosition(nsINode* aNode, uint32_t aOffset)
|
||||
: mOffset(aOffset), mOffsetNode(aNode), mAnonymousContentNode(nullptr)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
nsDOMCaretPosition::~nsDOMCaretPosition()
|
||||
|
@ -87,7 +87,6 @@ nsDOMFileReader::nsDOMFileReader()
|
||||
mResultArrayBuffer(nullptr)
|
||||
{
|
||||
SetDOMStringToNull(mResult);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
nsDOMFileReader::~nsDOMFileReader()
|
||||
|
@ -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)
|
||||
|
@ -18,7 +18,6 @@ using namespace mozilla;
|
||||
|
||||
nsDOMSerializer::nsDOMSerializer()
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
nsDOMSerializer::~nsDOMSerializer()
|
||||
|
@ -59,7 +59,6 @@ private:
|
||||
explicit nsDOMSerializer(nsISupports* aOwner) : mOwner(aOwner)
|
||||
{
|
||||
MOZ_ASSERT(aOwner);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
nsCOMPtr<nsISupports> mOwner;
|
||||
|
@ -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() { }
|
||||
|
@ -16,7 +16,6 @@ nsFormData::nsFormData(nsISupports* aOwner)
|
||||
: nsFormSubmission(NS_LITERAL_CSTRING("UTF-8"), nullptr)
|
||||
, mOwner(aOwner)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -57,7 +57,6 @@ public:
|
||||
, mAssertNextInsertOrAppendNode(nullptr)
|
||||
#endif
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
MOZ_ASSERT(aNode, "range isn't in a document!");
|
||||
mOwner = aNode->OwnerDoc();
|
||||
}
|
||||
|
@ -307,7 +307,6 @@ nsXMLHttpRequest::nsXMLHttpRequest()
|
||||
mIsMappedArrayBuffer(false),
|
||||
mXPCOMifier(nullptr)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
#ifdef DEBUG
|
||||
StaticAssertions();
|
||||
#endif
|
||||
|
@ -64,7 +64,6 @@ HTMLCanvasPrintState::HTMLCanvasPrintState(HTMLCanvasElement* aCanvas,
|
||||
: mIsDone(false), mPendingNotify(false), mCanvas(aCanvas),
|
||||
mContext(aContext), mCallback(aCallback)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
HTMLCanvasPrintState::~HTMLCanvasPrintState()
|
||||
|
@ -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()) {
|
||||
|
@ -76,7 +76,6 @@ HTMLFormControlsCollection::HTMLFormControlsCollection(HTMLFormElement* aForm)
|
||||
, mElements(8)
|
||||
, mNameLookupTable(HTMLFormElement::FORM_CONTROL_LIST_HASHTABLE_LENGTH)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
HTMLFormControlsCollection::~HTMLFormControlsCollection()
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ using namespace mozilla::dom;
|
||||
HTMLShadowElement::HTMLShadowElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
|
||||
: nsGenericHTMLElement(aNodeInfo), mIsInsertionPoint(false)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
HTMLShadowElement::~HTMLShadowElement()
|
||||
|
@ -73,7 +73,6 @@ TableRowsCollection::TableRowsCollection(HTMLTableElement *aParent)
|
||||
nsGkAtoms::tr,
|
||||
false))
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
TableRowsCollection::~TableRowsCollection()
|
||||
|
@ -25,7 +25,6 @@ MediaError::MediaError(HTMLMediaElement* aParent, uint16_t aCode)
|
||||
: mParent(aParent)
|
||||
, mCode(aCode)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP MediaError::GetCode(uint16_t* aCode)
|
||||
|
@ -841,7 +841,6 @@ NS_INTERFACE_MAP_END
|
||||
UndoManager::UndoManager(nsIContent* aNode)
|
||||
: mHostNode(aNode), mInTransaction(false), mIsDisconnected(false)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
mTxnManager = new nsTransactionManager();
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ NS_INTERFACE_MAP_END
|
||||
ValidityState::ValidityState(nsIConstraintValidation* aConstraintValidation)
|
||||
: mConstraintValidation(aConstraintValidation)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -55,8 +55,6 @@ nsDOMStringMap::nsDOMStringMap(nsGenericHTMLElement* aElement)
|
||||
: mElement(aElement),
|
||||
mRemovingProp(false)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
|
||||
mElement->AddMutationObserver(this);
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,6 @@ HTMLAllCollection::HTMLAllCollection(nsHTMLDocument* aDocument)
|
||||
: mDocument(aDocument)
|
||||
{
|
||||
MOZ_ASSERT(mDocument);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
HTMLAllCollection::~HTMLAllCollection()
|
||||
|
@ -127,7 +127,6 @@ DOMMediaStream::DOMMediaStream()
|
||||
mStream(nullptr), mHintContents(0), mTrackTypesAvailable(0),
|
||||
mNotifiedOfMediaStreamGraphShutdown(false)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
DOMMediaStream::~DOMMediaStream()
|
||||
|
@ -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;
|
||||
|
@ -43,7 +43,6 @@ void
|
||||
MediaTrack::Init(nsPIDOMWindow* aOwnerWindow)
|
||||
{
|
||||
BindToOwner(aOwnerWindow);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
@ -35,7 +35,6 @@ NS_INTERFACE_MAP_END
|
||||
|
||||
TextTrackCueList::TextTrackCueList(nsISupports* aParent) : mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
TextTrackCueList::~TextTrackCueList()
|
||||
|
@ -46,7 +46,6 @@ TextTrackRegion::TextTrackRegion(nsISupports* aGlobal)
|
||||
, mViewportAnchorX(0)
|
||||
, mViewportAnchorY(100)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -25,7 +25,6 @@ VideoPlaybackQuality::VideoPlaybackQuality(HTMLMediaElement* aElement,
|
||||
, mDroppedFrames(aDroppedFrames)
|
||||
, mCorruptedFrames(aCorruptedFrames)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
HTMLMediaElement*
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,6 @@ MediaKeys::MediaKeys(nsPIDOMWindow* aParent, const nsAString& aKeySystem)
|
||||
, mKeySystem(aKeySystem)
|
||||
, mCreatePromiseId(0)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
static PLDHashOperator
|
||||
|
@ -48,7 +48,6 @@ AudioBuffer::AudioBuffer(AudioContext* aContext, uint32_t aNumberOfChannels,
|
||||
mSampleRate(aSampleRate)
|
||||
{
|
||||
mJSChannels.SetCapacity(aNumberOfChannels);
|
||||
SetIsDOMBinding();
|
||||
mozilla::HoldJSObjects(this);
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,6 @@ AudioListener::AudioListener(AudioContext* aContext)
|
||||
, mSpeedOfSound(343.3) // meters/second
|
||||
{
|
||||
MOZ_ASSERT(aContext);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
JSObject*
|
||||
|
@ -72,7 +72,6 @@ AudioNode::AudioNode(AudioContext* aContext,
|
||||
{
|
||||
MOZ_ASSERT(aContext);
|
||||
DOMEventTargetHelper::BindToOwner(aContext->GetParentObject());
|
||||
SetIsDOMBinding();
|
||||
aContext->UpdateNodeCount(1);
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,6 @@ AudioParam::AudioParam(AudioNode* aNode,
|
||||
, mCallback(aCallback)
|
||||
, mDefaultValue(aDefaultValue)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
AudioParam::~AudioParam()
|
||||
|
@ -28,7 +28,6 @@ AudioProcessingEvent::AudioProcessingEvent(ScriptProcessorNode* aOwner,
|
||||
, mPlaybackTime(0.0)
|
||||
, mNode(aOwner)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
AudioProcessingEvent::~AudioProcessingEvent()
|
||||
|
@ -25,7 +25,6 @@ OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioContext* aOwner,
|
||||
WidgetEvent* aEvent)
|
||||
: Event(aOwner, aPresContext, aEvent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent()
|
||||
|
@ -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);
|
||||
|
@ -23,7 +23,6 @@ NS_INTERFACE_MAP_END
|
||||
SpeechGrammar::SpeechGrammar(nsISupports* aParent)
|
||||
: mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechGrammar::~SpeechGrammar()
|
||||
|
@ -27,7 +27,6 @@ SpeechGrammarList::SpeechGrammarList(nsISupports* aParent, nsISpeechRecognitionS
|
||||
: mParent(aParent)
|
||||
{
|
||||
this->mRecognitionService = aRecognitionService;
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechGrammarList::~SpeechGrammarList()
|
||||
|
@ -26,7 +26,6 @@ SpeechRecognitionAlternative::SpeechRecognitionAlternative(SpeechRecognition* aP
|
||||
, mConfidence(0)
|
||||
, mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechRecognitionAlternative::~SpeechRecognitionAlternative()
|
||||
|
@ -23,7 +23,6 @@ NS_INTERFACE_MAP_END
|
||||
SpeechRecognitionResult::SpeechRecognitionResult(SpeechRecognition* aParent)
|
||||
: mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechRecognitionResult::~SpeechRecognitionResult()
|
||||
|
@ -24,7 +24,6 @@ NS_INTERFACE_MAP_END
|
||||
SpeechRecognitionResultList::SpeechRecognitionResultList(SpeechRecognition* aParent)
|
||||
: mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechRecognitionResultList::~SpeechRecognitionResultList()
|
||||
|
@ -77,7 +77,6 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(SpeechSynthesis)
|
||||
SpeechSynthesis::SpeechSynthesis(nsPIDOMWindow* aParent)
|
||||
: mParent(aParent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechSynthesis::~SpeechSynthesis()
|
||||
|
@ -35,7 +35,6 @@ SpeechSynthesisUtterance::SpeechSynthesisUtterance(nsPIDOMWindow* aOwnerWindow,
|
||||
, mState(STATE_NONE)
|
||||
, mPaused(false)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechSynthesisUtterance::~SpeechSynthesisUtterance() {}
|
||||
|
@ -24,7 +24,6 @@ SpeechSynthesisVoice::SpeechSynthesisVoice(nsISupports* aParent,
|
||||
: mParent(aParent)
|
||||
, mUri(aUri)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SpeechSynthesisVoice::~SpeechSynthesisVoice()
|
||||
|
@ -177,7 +177,6 @@ private:
|
||||
, mAttrEnum(aAttrEnum)
|
||||
, mAxis(aAxis)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
~DOMSVGAnimatedLengthList();
|
||||
|
@ -107,7 +107,6 @@ private:
|
||||
, mElement(aElement)
|
||||
, mAttrEnum(aAttrEnum)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
~DOMSVGAnimatedNumberList();
|
||||
|
@ -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()
|
||||
|
@ -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,
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -170,8 +170,6 @@ private:
|
||||
: mElement(aElement)
|
||||
, mIsAnimValList(aIsAnimValList)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
|
||||
InternalListWillChangeTo(InternalList()); // Sync mItems
|
||||
}
|
||||
|
||||
|
@ -172,8 +172,6 @@ private:
|
||||
: mElement(aElement)
|
||||
, mIsAnimValList(aIsAnimValList)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
|
||||
InternalListWillChangeTo(InternalList()); // Sync mItems
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,6 @@ private:
|
||||
, mAttrEnum(aAttrEnum)
|
||||
, mIsConditionalProcessingAttribute(aIsConditionalProcessingAttribute)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
~DOMSVGStringList();
|
||||
|
@ -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,
|
||||
|
@ -30,7 +30,6 @@ public:
|
||||
SVGAngle(nsSVGAngle* aVal, nsSVGElement *aSVGElement, AngleType aType)
|
||||
: mVal(aVal), mSVGElement(aSVGElement), mType(aType)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
// WebIDL
|
||||
|
@ -26,7 +26,6 @@ public:
|
||||
SVGAnimatedAngle(nsSVGAngle* aVal, nsSVGElement *aSVGElement)
|
||||
: mVal(aVal), mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
// WebIDL
|
||||
|
@ -22,7 +22,6 @@ class SVGAnimatedBoolean MOZ_FINAL : public nsWrapperCache
|
||||
SVGAnimatedBoolean(nsSVGBoolean* aVal, nsSVGElement *aSVGElement)
|
||||
: mVal(aVal), mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
// WebIDL
|
||||
|
@ -37,7 +37,6 @@ protected:
|
||||
explicit SVGAnimatedEnumeration(nsSVGElement* aSVGElement)
|
||||
: mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
virtual ~SVGAnimatedEnumeration() {};
|
||||
|
||||
|
@ -37,7 +37,6 @@ protected:
|
||||
explicit SVGAnimatedInteger(nsSVGElement* aSVGElement)
|
||||
: mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
virtual ~SVGAnimatedInteger() {};
|
||||
|
||||
|
@ -25,7 +25,8 @@ public:
|
||||
|
||||
SVGAnimatedLength(nsSVGLength2* aVal, nsSVGElement *aSVGElement)
|
||||
: mVal(aVal), mSVGElement(aSVGElement)
|
||||
{ SetIsDOMBinding(); }
|
||||
{
|
||||
}
|
||||
|
||||
// WebIDL
|
||||
nsSVGElement* GetParentObject() { return mSVGElement; }
|
||||
|
@ -38,7 +38,6 @@ protected:
|
||||
explicit SVGAnimatedNumber(nsSVGElement* aSVGElement)
|
||||
: mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
virtual ~SVGAnimatedNumber() {};
|
||||
|
||||
|
@ -124,7 +124,6 @@ class DOMSVGAnimatedPreserveAspectRatio MOZ_FINAL : public nsISupports,
|
||||
nsSVGElement *aSVGElement)
|
||||
: mVal(aVal), mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
// WebIDL
|
||||
|
@ -21,7 +21,6 @@ SVGAnimatedRect::SVGAnimatedRect(nsSVGViewBox* aVal, nsSVGElement* aSVGElement)
|
||||
: mVal(aVal)
|
||||
, mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
SVGAnimatedRect::~SVGAnimatedRect()
|
||||
|
@ -18,7 +18,6 @@ public:
|
||||
explicit SVGAnimatedString(nsSVGElement* aSVGElement)
|
||||
: mSVGElement(aSVGElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
|
||||
|
@ -106,7 +106,6 @@ private:
|
||||
, mAnimVal(nullptr)
|
||||
, mElement(aElement)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
~SVGAnimatedTransformList();
|
||||
|
@ -22,11 +22,6 @@ class SVGIRect : public nsISupports,
|
||||
public nsWrapperCache
|
||||
{
|
||||
public:
|
||||
SVGIRect()
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
virtual ~SVGIRect()
|
||||
{
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -125,7 +125,6 @@ public:
|
||||
bool aIsBaseValue)
|
||||
: mVal(aVal), mSVGElement(aSVGElement), mIsBaseValue(aIsBaseValue)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
// WebIDL
|
||||
|
@ -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()
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -21,7 +21,6 @@ public:
|
||||
explicit AnimationEffect(Animation* aAnimation)
|
||||
: mAnimation(aAnimation)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AnimationEffect)
|
||||
|
@ -36,7 +36,6 @@ public:
|
||||
, mIsRunningOnCompositor(false)
|
||||
, mTimeline(aTimeline)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AnimationPlayer)
|
||||
|
@ -24,7 +24,6 @@ public:
|
||||
explicit AnimationTimeline(nsIDocument* aDocument)
|
||||
: mDocument(aDocument)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AnimationTimeline)
|
||||
|
@ -56,8 +56,6 @@ ArchiveReader::ArchiveReader(nsIDOMBlob* aBlob, nsPIDOMWindow* aWindow,
|
||||
{
|
||||
MOZ_ASSERT(aBlob);
|
||||
MOZ_ASSERT(aWindow);
|
||||
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
ArchiveReader::~ArchiveReader()
|
||||
|
@ -21,7 +21,6 @@ BarProp::BarProp(nsGlobalWindow* aWindow)
|
||||
: mDOMWindow(aWindow)
|
||||
{
|
||||
MOZ_ASSERT(aWindow->IsInnerWindow());
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
BarProp::~BarProp()
|
||||
|
@ -560,7 +560,6 @@ Console::Console(nsPIDOMWindow* aWindow)
|
||||
}
|
||||
}
|
||||
|
||||
SetIsDOMBinding();
|
||||
mozilla::HoldJSObjects(this);
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,6 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Crypto, mWindow, mSubtle)
|
||||
Crypto::Crypto()
|
||||
{
|
||||
MOZ_COUNT_CTOR(Crypto);
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
Crypto::~Crypto()
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -67,7 +67,6 @@ MessageChannel::MessageChannel(nsPIDOMWindow* aWindow)
|
||||
: mWindow(aWindow)
|
||||
{
|
||||
MOZ_COUNT_CTOR(MessageChannel);
|
||||
SetIsDOMBinding();
|
||||
|
||||
mPort1 = new MessagePort(mWindow);
|
||||
mPort2 = new MessagePort(mWindow);
|
||||
|
@ -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)
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user