2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Implementation of DOM Core's nsIDOMAttr node.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsDOMAttribute.h"
|
2010-08-24 00:05:56 -07:00
|
|
|
#include "mozilla/dom/Element.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsContentCreatorFunctions.h"
|
|
|
|
#include "nsINameSpaceManager.h"
|
2012-07-27 07:03:27 -07:00
|
|
|
#include "nsError.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsUnicharUtils.h"
|
|
|
|
#include "nsDOMString.h"
|
|
|
|
#include "nsIDocument.h"
|
|
|
|
#include "nsIDOMDocument.h"
|
|
|
|
#include "nsIDOMUserDataHandler.h"
|
|
|
|
#include "nsEventDispatcher.h"
|
|
|
|
#include "nsGkAtoms.h"
|
|
|
|
#include "nsCOMArray.h"
|
|
|
|
#include "nsNodeUtils.h"
|
2011-06-23 19:18:01 -07:00
|
|
|
#include "nsEventListenerManager.h"
|
2008-10-15 02:40:28 -07:00
|
|
|
#include "nsTextNode.h"
|
|
|
|
#include "mozAutoDocUpdate.h"
|
|
|
|
#include "nsMutationEvent.h"
|
2011-12-16 22:02:05 -08:00
|
|
|
#include "nsAsyncDOMEvent.h"
|
2011-05-26 12:58:35 -07:00
|
|
|
#include "nsWrapperCacheInlines.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
using namespace mozilla;
|
2010-08-24 00:05:56 -07:00
|
|
|
using namespace mozilla::dom;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
//----------------------------------------------------------------------
|
2011-09-28 23:19:26 -07:00
|
|
|
bool nsDOMAttribute::sInitialized;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsDOMAttribute::nsDOMAttribute(nsDOMAttributeMap *aAttrMap,
|
2010-07-23 02:49:57 -07:00
|
|
|
already_AddRefed<nsINodeInfo> aNodeInfo,
|
2011-09-28 23:19:26 -07:00
|
|
|
const nsAString &aValue, bool aNsAware)
|
2012-04-03 00:25:39 -07:00
|
|
|
: nsIAttribute(aAttrMap, aNodeInfo, aNsAware), mValue(aValue)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
NS_ABORT_IF_FALSE(mNodeInfo, "We must get a nodeinfo here!");
|
2011-06-14 00:56:49 -07:00
|
|
|
NS_ABORT_IF_FALSE(mNodeInfo->NodeType() == nsIDOMNode::ATTRIBUTE_NODE,
|
|
|
|
"Wrong nodeType");
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// We don't add a reference to our content. It will tell us
|
|
|
|
// to drop our reference when it goes away.
|
2008-07-11 13:42:19 -07:00
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsDOMAttribute)
|
2009-05-12 13:20:42 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS
|
2011-08-28 07:07:24 -07:00
|
|
|
|
|
|
|
if (!nsINode::Traverse(tmp, cb)) {
|
|
|
|
return NS_SUCCESS_INTERRUPTED_TRAVERSE;
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
|
|
|
|
2009-05-12 13:20:42 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(nsDOMAttribute)
|
2011-08-28 07:07:24 -07:00
|
|
|
nsINode::Trace(tmp, aCallback, aClosure);
|
2009-05-12 13:20:42 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRACE_END
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsDOMAttribute)
|
2011-08-28 07:07:24 -07:00
|
|
|
nsINode::Unlink(tmp);
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
2010-01-12 05:08:43 -08:00
|
|
|
|
2010-07-23 02:49:57 -07:00
|
|
|
DOMCI_NODE_DATA(Attr, nsDOMAttribute)
|
2010-01-12 05:08:43 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
// QueryInterface implementation for nsDOMAttribute
|
2008-11-03 02:31:47 -08:00
|
|
|
NS_INTERFACE_TABLE_HEAD(nsDOMAttribute)
|
2008-11-13 08:54:52 -08:00
|
|
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
2013-03-09 03:34:29 -08:00
|
|
|
NS_NODE_INTERFACE_TABLE5(nsDOMAttribute, nsIDOMAttr, nsIAttribute, nsIDOMNode,
|
|
|
|
nsIDOMEventTarget, EventTarget)
|
2008-11-03 02:31:47 -08:00
|
|
|
NS_INTERFACE_MAP_ENTRIES_CYCLE_COLLECTION(nsDOMAttribute)
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsISupportsWeakReference,
|
|
|
|
new nsNodeSupportsWeakRefTearoff(this))
|
2010-04-19 08:41:37 -07:00
|
|
|
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsIDOMXPathNSResolver,
|
|
|
|
new nsNode3Tearoff(this))
|
2010-03-17 08:09:05 -07:00
|
|
|
NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(Attr)
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_INTERFACE_MAP_END
|
|
|
|
|
2011-03-06 03:11:31 -08:00
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsDOMAttribute)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_DESTROY(nsDOMAttribute,
|
|
|
|
nsNodeUtils::LastRelease(this))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
void
|
|
|
|
nsDOMAttribute::SetMap(nsDOMAttributeMap *aMap)
|
|
|
|
{
|
|
|
|
if (mAttrMap && !aMap && sInitialized) {
|
|
|
|
// We're breaking a relationship with content and not getting a new one,
|
|
|
|
// need to locally cache value. GetValue() does that.
|
|
|
|
GetValue(mValue);
|
|
|
|
}
|
2010-05-27 12:10:33 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
mAttrMap = aMap;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsIContent*
|
|
|
|
nsDOMAttribute::GetContent() const
|
|
|
|
{
|
|
|
|
return GetContentInternal();
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsDOMAttribute::SetOwnerDocument(nsIDocument* aDocument)
|
|
|
|
{
|
|
|
|
NS_ASSERTION(aDocument, "Missing document");
|
|
|
|
|
2011-10-18 03:53:36 -07:00
|
|
|
nsIDocument *doc = OwnerDoc();
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_ASSERTION(doc != aDocument, "bad call to nsDOMAttribute::SetOwnerDocument");
|
2011-10-18 04:19:44 -07:00
|
|
|
doc->DeleteAllPropertiesFor(this);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsCOMPtr<nsINodeInfo> newNodeInfo;
|
2008-09-12 15:32:18 -07:00
|
|
|
newNodeInfo = aDocument->NodeInfoManager()->
|
2007-03-22 10:30:00 -07:00
|
|
|
GetNodeInfo(mNodeInfo->NameAtom(), mNodeInfo->GetPrefixAtom(),
|
2011-06-14 00:56:49 -07:00
|
|
|
mNodeInfo->NamespaceID(),
|
|
|
|
nsIDOMNode::ATTRIBUTE_NODE);
|
2008-09-25 15:46:52 -07:00
|
|
|
NS_ENSURE_TRUE(newNodeInfo, NS_ERROR_OUT_OF_MEMORY);
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_ASSERTION(newNodeInfo, "GetNodeInfo lies");
|
|
|
|
mNodeInfo.swap(newNodeInfo);
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsDOMAttribute::GetName(nsAString& aName)
|
|
|
|
{
|
2011-06-14 00:56:49 -07:00
|
|
|
aName = NodeName();
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2009-12-28 06:35:06 -08:00
|
|
|
already_AddRefed<nsIAtom>
|
|
|
|
nsDOMAttribute::GetNameAtom(nsIContent* aContent)
|
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
nsIAtom* result = nullptr;
|
2010-10-14 07:07:20 -07:00
|
|
|
if (!mNsAware &&
|
|
|
|
mNodeInfo->NamespaceID() == kNameSpaceID_None &&
|
2009-12-28 06:35:06 -08:00
|
|
|
aContent->IsInHTMLDocument() &&
|
|
|
|
aContent->IsHTML()) {
|
2012-03-09 21:50:34 -08:00
|
|
|
nsString name;
|
|
|
|
mNodeInfo->GetName(name);
|
|
|
|
nsAutoString lowercaseName;
|
|
|
|
nsContentUtils::ASCIIToLower(name, lowercaseName);
|
|
|
|
nsCOMPtr<nsIAtom> nameAtom = do_GetAtom(lowercaseName);
|
2009-12-28 06:35:06 -08:00
|
|
|
nameAtom.swap(result);
|
|
|
|
} else {
|
|
|
|
nsCOMPtr<nsIAtom> nameAtom = mNodeInfo->NameAtom();
|
|
|
|
nameAtom.swap(result);
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMETHODIMP
|
|
|
|
nsDOMAttribute::GetValue(nsAString& aValue)
|
|
|
|
{
|
|
|
|
nsIContent* content = GetContentInternal();
|
|
|
|
if (content) {
|
2009-12-28 06:35:06 -08:00
|
|
|
nsCOMPtr<nsIAtom> nameAtom = GetNameAtom(content);
|
|
|
|
content->GetAttr(mNodeInfo->NamespaceID(), nameAtom, aValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
aValue = mValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsDOMAttribute::SetValue(const nsAString& aValue)
|
|
|
|
{
|
|
|
|
nsIContent* content = GetContentInternal();
|
2012-04-03 00:25:39 -07:00
|
|
|
if (!content) {
|
|
|
|
mValue = aValue;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCOMPtr<nsIAtom> nameAtom = GetNameAtom(content);
|
|
|
|
return content->SetAttr(mNodeInfo->NamespaceID(),
|
2009-12-28 06:35:06 -08:00
|
|
|
nameAtom,
|
2007-03-22 10:30:00 -07:00
|
|
|
mNodeInfo->GetPrefixAtom(),
|
|
|
|
aValue,
|
2011-10-17 07:59:28 -07:00
|
|
|
true);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-06-23 01:30:48 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMETHODIMP
|
2011-09-28 23:19:26 -07:00
|
|
|
nsDOMAttribute::GetSpecified(bool* aSpecified)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
NS_ENSURE_ARG_POINTER(aSpecified);
|
2011-10-18 04:19:44 -07:00
|
|
|
OwnerDoc()->WarnOnceAbout(nsIDocument::eSpecified);
|
|
|
|
|
2011-10-17 07:59:28 -07:00
|
|
|
*aSpecified = true;
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsDOMAttribute::GetOwnerElement(nsIDOMElement** aOwnerElement)
|
|
|
|
{
|
|
|
|
NS_ENSURE_ARG_POINTER(aOwnerElement);
|
2011-10-18 04:19:44 -07:00
|
|
|
OwnerDoc()->WarnOnceAbout(nsIDocument::eOwnerElement);
|
2011-06-23 01:30:48 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
nsIContent* content = GetContentInternal();
|
|
|
|
if (content) {
|
|
|
|
return CallQueryInterface(content, aOwnerElement);
|
|
|
|
}
|
|
|
|
|
2012-07-30 07:20:58 -07:00
|
|
|
*aOwnerElement = nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
void
|
|
|
|
nsDOMAttribute::GetNodeValueInternal(nsAString& aNodeValue)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-10-18 04:19:44 -07:00
|
|
|
OwnerDoc()->WarnOnceAbout(nsIDocument::eNodeValue);
|
2011-06-23 01:30:48 -07:00
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
GetValue(aNodeValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
void
|
|
|
|
nsDOMAttribute::SetNodeValueInternal(const nsAString& aNodeValue, ErrorResult& aError)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-10-18 04:19:44 -07:00
|
|
|
OwnerDoc()->WarnOnceAbout(nsIDocument::eNodeValue);
|
2011-06-23 01:30:48 -07:00
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
aError = SetValue(aNodeValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsDOMAttribute::Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const
|
|
|
|
{
|
|
|
|
nsAutoString value;
|
2007-07-08 00:08:04 -07:00
|
|
|
const_cast<nsDOMAttribute*>(this)->GetValue(value);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-07-23 02:49:57 -07:00
|
|
|
nsCOMPtr<nsINodeInfo> ni = aNodeInfo;
|
2012-07-30 07:20:58 -07:00
|
|
|
*aResult = new nsDOMAttribute(nullptr, ni.forget(), value, mNsAware);
|
2007-03-22 10:30:00 -07:00
|
|
|
if (!*aResult) {
|
|
|
|
return NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_ADDREF(*aResult);
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2010-04-19 08:40:15 -07:00
|
|
|
already_AddRefed<nsIURI>
|
|
|
|
nsDOMAttribute::GetBaseURI() const
|
|
|
|
{
|
|
|
|
nsINode *parent = GetContentInternal();
|
|
|
|
|
2012-07-30 07:20:58 -07:00
|
|
|
return parent ? parent->GetBaseURI() : nullptr;
|
2010-04-19 08:40:15 -07:00
|
|
|
}
|
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
void
|
|
|
|
nsDOMAttribute::GetTextContentInternal(nsAString& aTextContent)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-10-18 04:19:44 -07:00
|
|
|
OwnerDoc()->WarnOnceAbout(nsIDocument::eTextContent);
|
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
GetValue(aTextContent);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
void
|
|
|
|
nsDOMAttribute::SetTextContentInternal(const nsAString& aTextContent,
|
|
|
|
ErrorResult& aError)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-10-18 04:19:44 -07:00
|
|
|
OwnerDoc()->WarnOnceAbout(nsIDocument::eTextContent);
|
|
|
|
|
2012-10-09 05:31:24 -07:00
|
|
|
SetNodeValueInternal(aTextContent, aError);
|
2011-06-14 00:56:48 -07:00
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2011-09-28 23:19:26 -07:00
|
|
|
nsDOMAttribute::GetIsId(bool* aReturn)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
nsIContent* content = GetContentInternal();
|
|
|
|
if (!content)
|
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
*aReturn = false;
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2007-07-26 07:16:19 -07:00
|
|
|
nsIAtom* idAtom = content->GetIDAttributeName();
|
2007-03-22 10:30:00 -07:00
|
|
|
if (!idAtom)
|
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
*aReturn = false;
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2007-07-26 07:16:19 -07:00
|
|
|
*aReturn = mNodeInfo->Equals(idAtom, kNameSpaceID_None);
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool
|
2012-08-22 08:56:38 -07:00
|
|
|
nsDOMAttribute::IsNodeOfType(uint32_t aFlags) const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
return !(aFlags & ~eATTRIBUTE);
|
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t
|
2007-03-22 10:30:00 -07:00
|
|
|
nsDOMAttribute::GetChildCount() const
|
|
|
|
{
|
2012-04-03 00:25:39 -07:00
|
|
|
return 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
nsIContent *
|
2012-08-22 08:56:38 -07:00
|
|
|
nsDOMAttribute::GetChildAt(uint32_t aIndex) const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-07-11 13:42:19 -07:00
|
|
|
|
|
|
|
nsIContent * const *
|
2012-08-22 08:56:38 -07:00
|
|
|
nsDOMAttribute::GetChildArray(uint32_t* aChildCount) const
|
2008-07-11 13:42:19 -07:00
|
|
|
{
|
2012-04-03 00:25:39 -07:00
|
|
|
*aChildCount = 0;
|
2013-04-02 18:14:24 -07:00
|
|
|
return nullptr;
|
2009-01-02 09:00:18 -08:00
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t
|
2012-10-06 00:19:46 -07:00
|
|
|
nsDOMAttribute::IndexOf(const nsINode* aPossibleChild) const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2012-04-03 00:25:39 -07:00
|
|
|
return -1;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
2012-08-22 08:56:38 -07:00
|
|
|
nsDOMAttribute::InsertChildAt(nsIContent* aKid, uint32_t aIndex,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool aNotify)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
2011-09-28 23:19:26 -07:00
|
|
|
nsDOMAttribute::AppendChildTo(nsIContent* aKid, bool aNotify)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2012-03-29 14:09:07 -07:00
|
|
|
void
|
2012-08-22 08:56:38 -07:00
|
|
|
nsDOMAttribute::RemoveChildAt(uint32_t aIndex, bool aNotify)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsDOMAttribute::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
|
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
aVisitor.mCanHandle = true;
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsDOMAttribute::Initialize()
|
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
sInitialized = true;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsDOMAttribute::Shutdown()
|
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
sInitialized = false;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|