Try to uninline constructor and destructor again to reduce codesize increase.

This commit is contained in:
peterv%propagandism.org 2006-11-15 00:31:52 +00:00
Родитель 291632bb3b
Коммит a54a59cb8e
2 изменённых файлов: 20 добавлений и 33 удалений

Просмотреть файл

@ -344,6 +344,26 @@ txXPathTreeWalker::moveToSibling(PRInt32 aDir)
return PR_TRUE;
}
txXPathNode::txXPathNode(const txXPathNode& aNode)
: mNode(aNode.mNode),
mRefCountRoot(aNode.mRefCountRoot),
mIndex(aNode.mIndex)
{
MOZ_COUNT_CTOR(txXPathNode);
if (mRefCountRoot) {
NS_ADDREF(Root());
}
}
txXPathNode::~txXPathNode()
{
MOZ_COUNT_DTOR(txXPathNode);
if (mRefCountRoot) {
nsINode *root = Root();
NS_RELEASE(root);
}
}
/* static */
PRBool
txXPathNodeUtils::getAttr(const txXPathNode& aNode, nsIAtom* aLocalName,

Просмотреть файл

@ -184,39 +184,6 @@ txNamespaceManager::getNamespaceURI(const PRInt32 aID, nsAString& aResult)
#endif
}
#ifdef TX_EXE
inline
txXPathNode::txXPathNode(const txXPathNode& aNode)
: mInner(aNode.mInner)
{
}
#else
inline
txXPathNode::txXPathNode(const txXPathNode& aNode)
: mNode(aNode.mNode),
mRefCountRoot(aNode.mRefCountRoot),
mIndex(aNode.mIndex)
{
MOZ_COUNT_CTOR(txXPathNode);
if (mRefCountRoot) {
NS_ADDREF(Root());
}
}
#endif
inline
txXPathNode::~txXPathNode()
{
#ifdef TX_EXE
#else
MOZ_COUNT_DTOR(txXPathNode);
if (mRefCountRoot) {
nsINode *root = Root();
NS_RELEASE(root);
}
#endif
}
inline PRBool
txXPathNode::operator==(const txXPathNode& aNode) const
{