I checked in a bad fix. This is correct. I have had Chris K. check it over.

Migrains will do that to you. for bug 18039
This commit is contained in:
rods%netscape.com 1999-11-09 23:49:37 +00:00
parent 43788c85b9
commit 88270c56e5
2 changed files with 4 additions and 4 deletions

View File

@ -5406,8 +5406,8 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
// WipeContainingBlock because it will throw away the entire selct frame and
// start over which is something we do not want to do
//
nsCOMPtr<nsIDOMHTMLSelectElement> selectContent(do_QueryInterface(blockContent));
if (selectContent) {
nsCOMPtr<nsIDOMHTMLSelectElement> selectContent(do_QueryInterface(aContainer));
if (!selectContent) {
if (WipeContainingBlock(aPresContext, state, blockContent, adjustedParentFrame,
frameItems.childList)) {
return NS_OK;

View File

@ -5406,8 +5406,8 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
// WipeContainingBlock because it will throw away the entire selct frame and
// start over which is something we do not want to do
//
nsCOMPtr<nsIDOMHTMLSelectElement> selectContent(do_QueryInterface(blockContent));
if (selectContent) {
nsCOMPtr<nsIDOMHTMLSelectElement> selectContent(do_QueryInterface(aContainer));
if (!selectContent) {
if (WipeContainingBlock(aPresContext, state, blockContent, adjustedParentFrame,
frameItems.childList)) {
return NS_OK;