Bug 538014 - Handlers in txStylesheetCompileHandlers.cpp should be static, r=jonas

This commit is contained in:
Taras Glek 2010-01-05 18:31:58 -05:00
Родитель c31e04d956
Коммит 4bccc453d1
1 изменённых файлов: 108 добавлений и 108 удалений

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

@ -67,14 +67,14 @@ txHandlerTable* gTxImportHandler = 0;
txHandlerTable* gTxAttributeSetHandler = 0;
txHandlerTable* gTxFallbackHandler = 0;
nsresult
static nsresult
txFnStartLRE(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
txStylesheetCompilerState& aState);
nsresult
static nsresult
txFnEndLRE(txStylesheetCompilerState& aState);
@ -87,7 +87,7 @@ txFnEndLRE(txStylesheetCompilerState& aState);
} while(0)
nsresult
static nsresult
getStyleAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
PRInt32 aNamespace,
@ -116,7 +116,7 @@ getStyleAttr(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
parseUseAttrSets(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
PRBool aInXSLTNS,
@ -148,7 +148,7 @@ parseUseAttrSets(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
parseExcludeResultPrefixes(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
PRInt32 aNamespaceID)
@ -166,7 +166,7 @@ parseExcludeResultPrefixes(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
getQNameAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -192,7 +192,7 @@ getQNameAttr(txStylesheetAttr* aAttributes,
return rv;
}
nsresult
static nsresult
getExprAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -229,7 +229,7 @@ getExprAttr(txStylesheetAttr* aAttributes,
return rv;
}
nsresult
static nsresult
getAVTAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -266,7 +266,7 @@ getAVTAttr(txStylesheetAttr* aAttributes,
return rv;
}
nsresult
static nsresult
getPatternAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -291,7 +291,7 @@ getPatternAttr(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
getNumberAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -316,7 +316,7 @@ getNumberAttr(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
getAtomAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -338,7 +338,7 @@ getAtomAttr(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
getYesNoAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -368,7 +368,7 @@ getYesNoAttr(txStylesheetAttr* aAttributes,
return NS_OK;
}
nsresult
static nsresult
getCharAttr(txStylesheetAttr* aAttributes,
PRInt32 aAttrCount,
nsIAtom* aName,
@ -399,13 +399,13 @@ getCharAttr(txStylesheetAttr* aAttributes,
/**
* Ignore and error handlers
*/
nsresult
static nsresult
txFnTextIgnore(const nsAString& aStr, txStylesheetCompilerState& aState)
{
return NS_OK;
}
nsresult
static nsresult
txFnTextError(const nsAString& aStr, txStylesheetCompilerState& aState)
{
TX_RETURN_IF_WHITESPACE(aStr, aState);
@ -423,7 +423,7 @@ clearAttributes(txStylesheetAttr* aAttributes,
}
}
nsresult
static nsresult
txFnStartElementIgnore(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -438,13 +438,13 @@ txFnStartElementIgnore(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndElementIgnore(txStylesheetCompilerState& aState)
{
return NS_OK;
}
nsresult
static nsresult
txFnStartElementSetIgnore(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -459,14 +459,14 @@ txFnStartElementSetIgnore(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndElementSetIgnore(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
return NS_OK;
}
nsresult
static nsresult
txFnStartElementError(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -477,7 +477,7 @@ txFnStartElementError(PRInt32 aNamespaceID,
return NS_ERROR_XSLT_PARSE_FAILURE;
}
nsresult
static nsresult
txFnEndElementError(txStylesheetCompilerState& aState)
{
NS_ERROR("txFnEndElementError shouldn't be called");
@ -488,7 +488,7 @@ txFnEndElementError(txStylesheetCompilerState& aState)
/**
* Root handlers
*/
nsresult
static nsresult
txFnStartStylesheet(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -514,14 +514,14 @@ txFnStartStylesheet(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxImportHandler);
}
nsresult
static nsresult
txFnEndStylesheet(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
return NS_OK;
}
nsresult
static nsresult
txFnStartElementContinueTopLevel(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -534,7 +534,7 @@ txFnStartElementContinueTopLevel(PRInt32 aNamespaceID,
return NS_XSLT_GET_NEW_HANDLER;
}
nsresult
static nsresult
txFnStartLREStylesheet(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -570,7 +570,7 @@ txFnStartLREStylesheet(PRInt32 aNamespaceID,
aAttrCount, aState);
}
nsresult
static nsresult
txFnEndLREStylesheet(txStylesheetCompilerState& aState)
{
nsresult rv = txFnEndLRE(aState);
@ -589,7 +589,7 @@ txFnEndLREStylesheet(txStylesheetCompilerState& aState)
return NS_OK;
}
nsresult
static nsresult
txFnStartEmbed(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -609,7 +609,7 @@ txFnStartEmbed(PRInt32 aNamespaceID,
aAttributes, aAttrCount, aState);
}
nsresult
static nsresult
txFnEndEmbed(txStylesheetCompilerState& aState)
{
if (!aState.handleEmbeddedSheet()) {
@ -624,7 +624,7 @@ txFnEndEmbed(txStylesheetCompilerState& aState)
/**
* Top handlers
*/
nsresult
static nsresult
txFnStartOtherTop(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -640,7 +640,7 @@ txFnStartOtherTop(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndOtherTop(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -649,7 +649,7 @@ txFnEndOtherTop(txStylesheetCompilerState& aState)
// xsl:attribute-set
nsresult
static nsresult
txFnStartAttributeSet(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -679,7 +679,7 @@ txFnStartAttributeSet(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxAttributeSetHandler);
}
nsresult
static nsresult
txFnEndAttributeSet(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -697,7 +697,7 @@ txFnEndAttributeSet(txStylesheetCompilerState& aState)
// xsl:decimal-format
nsresult
static nsresult
txFnStartDecimalFormat(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -769,7 +769,7 @@ txFnStartDecimalFormat(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndDecimalFormat(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -778,7 +778,7 @@ txFnEndDecimalFormat(txStylesheetCompilerState& aState)
}
// xsl:import
nsresult
static nsresult
txFnStartImport(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -811,7 +811,7 @@ txFnStartImport(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndImport(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -820,7 +820,7 @@ txFnEndImport(txStylesheetCompilerState& aState)
}
// xsl:include
nsresult
static nsresult
txFnStartInclude(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -842,7 +842,7 @@ txFnStartInclude(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndInclude(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -851,7 +851,7 @@ txFnEndInclude(txStylesheetCompilerState& aState)
}
// xsl:key
nsresult
static nsresult
txFnStartKey(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -881,7 +881,7 @@ txFnStartKey(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndKey(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -890,7 +890,7 @@ txFnEndKey(txStylesheetCompilerState& aState)
}
// xsl:namespace-alias
nsresult
static nsresult
txFnStartNamespaceAlias(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -912,7 +912,7 @@ txFnStartNamespaceAlias(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndNamespaceAlias(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -921,7 +921,7 @@ txFnEndNamespaceAlias(txStylesheetCompilerState& aState)
}
// xsl:output
nsresult
static nsresult
txFnStartOutput(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1029,7 +1029,7 @@ txFnStartOutput(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndOutput(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1038,7 +1038,7 @@ txFnEndOutput(txStylesheetCompilerState& aState)
}
// xsl:strip-space/xsl:preserve-space
nsresult
static nsresult
txFnStartStripSpace(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1112,7 +1112,7 @@ txFnStartStripSpace(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndStripSpace(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1121,7 +1121,7 @@ txFnEndStripSpace(txStylesheetCompilerState& aState)
}
// xsl:template
nsresult
static nsresult
txFnStartTemplate(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1162,7 +1162,7 @@ txFnStartTemplate(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxParamHandler);
}
nsresult
static nsresult
txFnEndTemplate(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1179,7 +1179,7 @@ txFnEndTemplate(txStylesheetCompilerState& aState)
}
// xsl:variable, xsl:param
nsresult
static nsresult
txFnStartTopVariable(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1224,7 +1224,7 @@ txFnStartTopVariable(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndTopVariable(txStylesheetCompilerState& aState)
{
txHandlerTable* prev = aState.mHandlerTable;
@ -1252,7 +1252,7 @@ txFnEndTopVariable(txStylesheetCompilerState& aState)
return NS_OK;
}
nsresult
static nsresult
txFnStartElementStartTopVar(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1265,7 +1265,7 @@ txFnStartElementStartTopVar(PRInt32 aNamespaceID,
return NS_XSLT_GET_NEW_HANDLER;
}
nsresult
static nsresult
txFnTextStartTopVar(const nsAString& aStr, txStylesheetCompilerState& aState)
{
TX_RETURN_IF_WHITESPACE(aStr, aState);
@ -1288,7 +1288,7 @@ txFnTextStartTopVar(const nsAString& aStr, txStylesheetCompilerState& aState)
[children]
txEndElement
*/
nsresult
static nsresult
txFnStartLRE(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1340,7 +1340,7 @@ txFnStartLRE(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndLRE(txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(new txEndElement);
@ -1357,7 +1357,7 @@ txFnEndLRE(txStylesheetCompilerState& aState)
txText
*/
nsresult
static nsresult
txFnText(const nsAString& aStr, txStylesheetCompilerState& aState)
{
TX_RETURN_IF_WHITESPACE(aStr, aState);
@ -1377,7 +1377,7 @@ txFnText(const nsAString& aStr, txStylesheetCompilerState& aState)
txApplyImportsStart
txApplyImportsEnd
*/
nsresult
static nsresult
txFnStartApplyImports(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1402,7 +1402,7 @@ txFnStartApplyImports(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndApplyImports(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1420,7 +1420,7 @@ txFnEndApplyImports(txStylesheetCompilerState& aState)
txLoopNodeSet -+ |
txPopParams <-+
*/
nsresult
static nsresult
txFnStartApplyTemplates(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1479,7 +1479,7 @@ txFnStartApplyTemplates(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxApplyTemplatesHandler);
}
nsresult
static nsresult
txFnEndApplyTemplates(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1520,7 +1520,7 @@ txFnEndApplyTemplates(txStylesheetCompilerState& aState)
[children]
txAttribute
*/
nsresult
static nsresult
txFnStartAttribute(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1559,7 +1559,7 @@ txFnStartAttribute(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxTemplateHandler);
}
nsresult
static nsresult
txFnEndAttribute(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1579,7 +1579,7 @@ txFnEndAttribute(txStylesheetCompilerState& aState)
txCallTemplate
txPopParams
*/
nsresult
static nsresult
txFnStartCallTemplate(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1611,7 +1611,7 @@ txFnStartCallTemplate(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxCallTemplateHandler);
}
nsresult
static nsresult
txFnEndCallTemplate(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1644,7 +1644,7 @@ txFnEndCallTemplate(txStylesheetCompilerState& aState)
[children] | <-+ for the xsl:otherwise, if there is one
<-+
*/
nsresult
static nsresult
txFnStartChoose(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1658,7 +1658,7 @@ txFnStartChoose(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxChooseHandler);
}
nsresult
static nsresult
txFnEndChoose(txStylesheetCompilerState& aState)
{
nsresult rv = NS_OK;
@ -1682,7 +1682,7 @@ txFnEndChoose(txStylesheetCompilerState& aState)
[children]
txComment
*/
nsresult
static nsresult
txFnStartComment(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1699,7 +1699,7 @@ txFnStartComment(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndComment(txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(new txComment);
@ -1720,7 +1720,7 @@ txFnEndComment(txStylesheetCompilerState& aState)
txEndElement |
<-+
*/
nsresult
static nsresult
txFnStartCopy(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1744,7 +1744,7 @@ txFnStartCopy(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndCopy(txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(new txEndElement);
@ -1765,7 +1765,7 @@ txFnEndCopy(txStylesheetCompilerState& aState)
txCopyOf
*/
nsresult
static nsresult
txFnStartCopyOf(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1789,7 +1789,7 @@ txFnStartCopyOf(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndCopyOf(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1804,7 +1804,7 @@ txFnEndCopyOf(txStylesheetCompilerState& aState)
[children]
txEndElement
*/
nsresult
static nsresult
txFnStartElement(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1837,7 +1837,7 @@ txFnStartElement(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndElement(txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(new txEndElement);
@ -1854,7 +1854,7 @@ txFnEndElement(txStylesheetCompilerState& aState)
[children]
*/
nsresult
static nsresult
txFnStartFallback(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1867,7 +1867,7 @@ txFnStartFallback(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxTemplateHandler);
}
nsresult
static nsresult
txFnEndFallback(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1886,7 +1886,7 @@ txFnEndFallback(txStylesheetCompilerState& aState)
txLoopNodeSet -+ |
<-+
*/
nsresult
static nsresult
txFnStartForEach(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1926,7 +1926,7 @@ txFnStartForEach(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxForEachHandler);
}
nsresult
static nsresult
txFnEndForEach(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -1947,7 +1947,7 @@ txFnEndForEach(txStylesheetCompilerState& aState)
return NS_OK;
}
nsresult
static nsresult
txFnStartElementContinueTemplate(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -1960,7 +1960,7 @@ txFnStartElementContinueTemplate(PRInt32 aNamespaceID,
return NS_XSLT_GET_NEW_HANDLER;
}
nsresult
static nsresult
txFnTextContinueTemplate(const nsAString& aStr,
txStylesheetCompilerState& aState)
{
@ -1978,7 +1978,7 @@ txFnTextContinueTemplate(const nsAString& aStr,
[children] |
<-+
*/
nsresult
static nsresult
txFnStartIf(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2006,7 +2006,7 @@ txFnStartIf(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndIf(txStylesheetCompilerState& aState)
{
txConditionalGoto* condGoto =
@ -2021,7 +2021,7 @@ txFnEndIf(txStylesheetCompilerState& aState)
[children]
txMessage
*/
nsresult
static nsresult
txFnStartMessage(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2051,7 +2051,7 @@ txFnStartMessage(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndMessage(txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(static_cast<txInstruction*>(aState.popObject()));
@ -2066,7 +2066,7 @@ txFnEndMessage(txStylesheetCompilerState& aState)
txNumber
*/
nsresult
static nsresult
txFnStartNumber(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2143,7 +2143,7 @@ txFnStartNumber(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndNumber(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -2156,7 +2156,7 @@ txFnEndNumber(txStylesheetCompilerState& aState)
(see xsl:choose)
*/
nsresult
static nsresult
txFnStartOtherwise(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2167,7 +2167,7 @@ txFnStartOtherwise(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxTemplateHandler);
}
nsresult
static nsresult
txFnEndOtherwise(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -2185,7 +2185,7 @@ txFnEndOtherwise(txStylesheetCompilerState& aState)
txSetVariable |
<-+
*/
nsresult
static nsresult
txFnStartParam(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2236,7 +2236,7 @@ txFnStartParam(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndParam(txStylesheetCompilerState& aState)
{
nsAutoPtr<txSetVariable> var(static_cast<txSetVariable*>
@ -2272,7 +2272,7 @@ txFnEndParam(txStylesheetCompilerState& aState)
[children]
txProcessingInstruction
*/
nsresult
static nsresult
txFnStartPI(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2302,7 +2302,7 @@ txFnStartPI(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndPI(txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(static_cast<txInstruction*>
@ -2318,7 +2318,7 @@ txFnEndPI(txStylesheetCompilerState& aState)
(no instructions)
*/
nsresult
static nsresult
txFnStartSort(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2370,7 +2370,7 @@ txFnStartSort(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndSort(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -2383,7 +2383,7 @@ txFnEndSort(txStylesheetCompilerState& aState)
[children] (only txText)
*/
nsresult
static nsresult
txFnStartText(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2405,7 +2405,7 @@ txFnStartText(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxTextHandler);
}
nsresult
static nsresult
txFnEndText(txStylesheetCompilerState& aState)
{
aState.mDOE = MB_FALSE;
@ -2413,7 +2413,7 @@ txFnEndText(txStylesheetCompilerState& aState)
return NS_OK;
}
nsresult
static nsresult
txFnTextText(const nsAString& aStr, txStylesheetCompilerState& aState)
{
nsAutoPtr<txInstruction> instr(new txText(aStr, aState.mDOE));
@ -2430,7 +2430,7 @@ txFnTextText(const nsAString& aStr, txStylesheetCompilerState& aState)
txValueOf
*/
nsresult
static nsresult
txFnStartValueOf(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2460,7 +2460,7 @@ txFnStartValueOf(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxIgnoreHandler);
}
nsresult
static nsresult
txFnEndValueOf(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -2474,7 +2474,7 @@ txFnEndValueOf(txStylesheetCompilerState& aState)
[children] /
txSetVariable
*/
nsresult
static nsresult
txFnStartVariable(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2515,7 +2515,7 @@ txFnStartVariable(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndVariable(txStylesheetCompilerState& aState)
{
nsAutoPtr<txSetVariable> var(static_cast<txSetVariable*>
@ -2542,7 +2542,7 @@ txFnEndVariable(txStylesheetCompilerState& aState)
return NS_OK;
}
nsresult
static nsresult
txFnStartElementStartRTF(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2561,7 +2561,7 @@ txFnStartElementStartRTF(PRInt32 aNamespaceID,
return NS_XSLT_GET_NEW_HANDLER;
}
nsresult
static nsresult
txFnTextStartRTF(const nsAString& aStr, txStylesheetCompilerState& aState)
{
TX_RETURN_IF_WHITESPACE(aStr, aState);
@ -2582,7 +2582,7 @@ txFnTextStartRTF(const nsAString& aStr, txStylesheetCompilerState& aState)
(see xsl:choose)
*/
nsresult
static nsresult
txFnStartWhen(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2610,7 +2610,7 @@ txFnStartWhen(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxTemplateHandler);
}
nsresult
static nsresult
txFnEndWhen(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();
@ -2639,7 +2639,7 @@ txFnEndWhen(txStylesheetCompilerState& aState)
[children] /
txSetParam
*/
nsresult
static nsresult
txFnStartWithParam(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2680,7 +2680,7 @@ txFnStartWithParam(PRInt32 aNamespaceID,
return NS_OK;
}
nsresult
static nsresult
txFnEndWithParam(txStylesheetCompilerState& aState)
{
nsAutoPtr<txSetParam> var(static_cast<txSetParam*>(aState.popObject()));
@ -2709,7 +2709,7 @@ txFnEndWithParam(txStylesheetCompilerState& aState)
or
txErrorInstruction otherwise
*/
nsresult
static nsresult
txFnStartUnknownInstruction(PRInt32 aNamespaceID,
nsIAtom* aLocalName,
nsIAtom* aPrefix,
@ -2729,7 +2729,7 @@ txFnStartUnknownInstruction(PRInt32 aNamespaceID,
return aState.pushHandlerTable(gTxFallbackHandler);
}
nsresult
static nsresult
txFnEndUnknownInstruction(txStylesheetCompilerState& aState)
{
aState.popHandlerTable();