mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
fixed nested listing bug, and prep work for new logparse system
This commit is contained in:
parent
6b16ccfd7f
commit
68750d1591
@ -669,8 +669,8 @@ eHTMLTags FindAutoCloseTargetForStartTag(eHTMLTags aCurrentTag,nsTagStack& aTagS
|
||||
eHTMLTags aPrevTag=aTagStack.mTags[theTopIndex-1];
|
||||
|
||||
if(nsHTMLElement::IsContainer(aCurrentTag)){
|
||||
if((aPrevTag==aCurrentTag) && (!gHTMLElements[aCurrentTag].CanSelfContain())){
|
||||
return aCurrentTag;
|
||||
if(aPrevTag==aCurrentTag) {
|
||||
return (gHTMLElements[aCurrentTag].CanSelfContain()) ? eHTMLTag_unknown: aCurrentTag;
|
||||
}
|
||||
if(nsHTMLElement::IsBlockCloser(aCurrentTag)) {
|
||||
|
||||
@ -740,9 +740,9 @@ nsresult CNavDTD::HandleDefaultStartToken(CToken* aToken,eHTMLTags aChildTag,nsI
|
||||
if(eHTMLTag_unknown!=theTarget){
|
||||
result=CloseContainersTo(theTarget,PR_TRUE);
|
||||
theParentTag=mBodyContext->Last();
|
||||
theCanContainResult=CanContain(theParentTag,aChildTag);
|
||||
}
|
||||
|
||||
|
||||
if(PR_FALSE==theCanContainResult){
|
||||
if(CanPropagate(theParentTag,aChildTag))
|
||||
result=CreateContextStackFor(aChildTag);
|
||||
|
@ -360,6 +360,8 @@ public:
|
||||
gHTMLElements[gStyleTags[index]].mSelfContained=PR_TRUE;
|
||||
}
|
||||
gHTMLElements[eHTMLTag_frameset].mSelfContained=PR_TRUE;
|
||||
gHTMLElements[eHTMLTag_ol].mSelfContained=PR_TRUE;
|
||||
gHTMLElements[eHTMLTag_ul].mSelfContained=PR_TRUE;
|
||||
}
|
||||
};
|
||||
CTableInitializer gTableInitializer;
|
||||
|
@ -669,8 +669,8 @@ eHTMLTags FindAutoCloseTargetForStartTag(eHTMLTags aCurrentTag,nsTagStack& aTagS
|
||||
eHTMLTags aPrevTag=aTagStack.mTags[theTopIndex-1];
|
||||
|
||||
if(nsHTMLElement::IsContainer(aCurrentTag)){
|
||||
if((aPrevTag==aCurrentTag) && (!gHTMLElements[aCurrentTag].CanSelfContain())){
|
||||
return aCurrentTag;
|
||||
if(aPrevTag==aCurrentTag) {
|
||||
return (gHTMLElements[aCurrentTag].CanSelfContain()) ? eHTMLTag_unknown: aCurrentTag;
|
||||
}
|
||||
if(nsHTMLElement::IsBlockCloser(aCurrentTag)) {
|
||||
|
||||
@ -740,9 +740,9 @@ nsresult CNavDTD::HandleDefaultStartToken(CToken* aToken,eHTMLTags aChildTag,nsI
|
||||
if(eHTMLTag_unknown!=theTarget){
|
||||
result=CloseContainersTo(theTarget,PR_TRUE);
|
||||
theParentTag=mBodyContext->Last();
|
||||
theCanContainResult=CanContain(theParentTag,aChildTag);
|
||||
}
|
||||
|
||||
|
||||
if(PR_FALSE==theCanContainResult){
|
||||
if(CanPropagate(theParentTag,aChildTag))
|
||||
result=CreateContextStackFor(aChildTag);
|
||||
|
@ -360,6 +360,8 @@ public:
|
||||
gHTMLElements[gStyleTags[index]].mSelfContained=PR_TRUE;
|
||||
}
|
||||
gHTMLElements[eHTMLTag_frameset].mSelfContained=PR_TRUE;
|
||||
gHTMLElements[eHTMLTag_ol].mSelfContained=PR_TRUE;
|
||||
gHTMLElements[eHTMLTag_ul].mSelfContained=PR_TRUE;
|
||||
}
|
||||
};
|
||||
CTableInitializer gTableInitializer;
|
||||
|
Loading…
Reference in New Issue
Block a user