diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index b0c8ee6ce1e..3bbcace5649 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -3572,12 +3572,7 @@ nsCSSFrameConstructor::AdjustParentFrame(nsFrameConstructorState& aState, (!IsTableRelated(aChildStyle->GetStyleDisplay()->mDisplay, PR_TRUE) || // Also need to create a pseudo-parent if the child is going to end up // with a frame based on something other than display. - IsSpecialContent(aChildContent, aTag, aNameSpaceID, aChildStyle)) && - // XXXbz evil hack for HTML forms.... see similar in - // nsCSSFrameConstructor::TableProcessChild. It should just go away. - (!aChildContent->IsNodeOfType(nsINode::eHTML) || - !aChildContent->NodeInfo()->Equals(nsHTMLAtoms::form, - kNameSpaceID_None))) { + IsSpecialContent(aChildContent, aTag, aNameSpaceID, aChildStyle))) { nsTableCreator tableCreator(aState.mPresShell); nsresult rv = GetPseudoCellFrame(tableCreator, aState, *aParentFrame); if (NS_FAILED(rv)) { @@ -4331,27 +4326,6 @@ nsCSSFrameConstructor::TableProcessChild(nsFrameConstructorState& aState, default: { - - // if