зеркало из https://github.com/mozilla/pjs.git
Try to uninline constructor and destructor again to reduce codesize increase.
This commit is contained in:
Родитель
291632bb3b
Коммит
a54a59cb8e
|
@ -344,6 +344,26 @@ txXPathTreeWalker::moveToSibling(PRInt32 aDir)
|
||||||
return PR_TRUE;
|
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 */
|
/* static */
|
||||||
PRBool
|
PRBool
|
||||||
txXPathNodeUtils::getAttr(const txXPathNode& aNode, nsIAtom* aLocalName,
|
txXPathNodeUtils::getAttr(const txXPathNode& aNode, nsIAtom* aLocalName,
|
||||||
|
|
|
@ -184,39 +184,6 @@ txNamespaceManager::getNamespaceURI(const PRInt32 aID, nsAString& aResult)
|
||||||
#endif
|
#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
|
inline PRBool
|
||||||
txXPathNode::operator==(const txXPathNode& aNode) const
|
txXPathNode::operator==(const txXPathNode& aNode) const
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче