Fixing some bustage from bug 269566 -- I got the order of args to

nsINodeInfo::Equals() wrong. r=sicking
This commit is contained in:
bzbarsky%mit.edu 2005-01-25 21:15:21 +00:00
Родитель 98623bdc4d
Коммит e64a8e34d4
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -3045,8 +3045,8 @@ nsCSSFrameConstructor::AdjustParentFrame(nsIContent* aChildContent,
// XXXbz evil hack for HTML forms.... see similar in
// nsCSSFrameConstructor::TableProcessChild. It should just go away.
(!aChildContent->IsContentOfType(nsIContent::eHTML) ||
!aChildContent->GetNodeInfo()->Equals(kNameSpaceID_None,
nsHTMLAtoms::form))) {
!aChildContent->GetNodeInfo()->Equals(nsHTMLAtoms::form,
kNameSpaceID_None))) {
nsTableCreator tableCreator(aState.mPresShell);
nsresult rv = GetPseudoCellFrame(aState.mPresShell, aState.mPresContext,
tableCreator, aState, *aParentFrame);
@ -3819,7 +3819,7 @@ nsCSSFrameConstructor::TableProcessChild(nsIPresShell* aPresShell,
aChildContent->IsContentOfType(nsIContent::eTEXT),
"Non-#text nodes should have a nodeinfo here!");
if (aChildContent->IsContentOfType(nsIContent::eHTML) &&
childNodeInfo->Equals(kNameSpaceID_None, nsHTMLAtoms::form) &&
childNodeInfo->Equals(nsHTMLAtoms::form, kNameSpaceID_None) &&
aParentContent->IsContentOfType(nsIContent::eHTML)) {
nsINodeInfo *parentNodeInfo = aParentContent->GetNodeInfo();