From e64a8e34d4fe3a1c2d686118e126f2c39fe37cc8 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 25 Jan 2005 21:15:21 +0000 Subject: [PATCH] Fixing some bustage from bug 269566 -- I got the order of args to nsINodeInfo::Equals() wrong. r=sicking --- layout/base/nsCSSFrameConstructor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 6859a2f1403..a15888bf2e6 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -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();