mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Bug 2025971 - Use txSingleNodeContext getter of owned txXPathNode.
eContext gets a copy of aNode. The function should use that one's member as it's not a shared reference, which we can't know the life time of.
This commit is contained in:
@@ -160,9 +160,9 @@ PathExpr::evalDescendants(Expr* aStep, const txXPathNode& aNode,
|
||||
|
||||
resNodes->addAndTransfer(newSet);
|
||||
|
||||
bool filterWS = aContext->isStripSpaceAllowed(aNode);
|
||||
bool filterWS = aContext->isStripSpaceAllowed(eContext.getContextNode());
|
||||
|
||||
txXPathTreeWalker walker(aNode);
|
||||
txXPathTreeWalker walker(eContext.getContextNode());
|
||||
if (!walker.moveToFirstChild()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user