mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[DOM XSLT] Add fallback value conversions if not converted beforehand.
This commit is contained in:
parent
7cd8d79670
commit
bf80b78247
1 changed files with 7 additions and 1 deletions
|
|
@ -250,7 +250,13 @@ public:
|
|||
}
|
||||
nsresult getValue(txAExprResult** aValue)
|
||||
{
|
||||
NS_ASSERTION(mTxValue, "variablevalue is null");
|
||||
if (!mTxValue) {
|
||||
// XXX: This should not happen as we normally convert values before
|
||||
// we call this function. For corner cases where this isn't true, we
|
||||
// perform the conversion here.
|
||||
nsresult rv = Convert(mValue, getter_AddRefs(mTxValue));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
*aValue = mTxValue;
|
||||
NS_ADDREF(*aValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue