From fab52a77e75ab0f403e4832c4e95e57d0effa3aa Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 11 Jul 2003 20:07:21 +0000 Subject: [PATCH] Bug 212346 nsCSSFrameConstructor.cpp:4182: warning: unused variable `class nsIView * listView' r=bz sr=bz git-svn-id: svn://10.0.0.236/trunk@144725 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 5 ++--- mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index fe6735f765f..6f71429ec10 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -4179,9 +4179,8 @@ nsCSSFrameConstructor::ConstructSelectFrame(nsIPresShell* aPresShell, // Set flag so the events go to the listFrame not child frames. // XXX: We should replace this with a real widget manager similar // to how the nsFormControlFrame works. Re-directing events is a temporary Kludge. - nsIView *listView = listFrame->GetView(); - NS_ASSERTION(listView, "ListFrame's view is nsnull"); - //listView->SetViewFlags(NS_VIEW_PUBLIC_FLAG_DONT_CHECK_CHILDREN); + NS_ASSERTION(listFrame->GetView(), "ListFrame's view is nsnull"); + //listFrame->GetView()->SetViewFlags(NS_VIEW_PUBLIC_FLAG_DONT_CHECK_CHILDREN); // Create display and button frames from the combobox's anonymous content. // The anonymous content is appended to existing anonymous content for this diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index fe6735f765f..6f71429ec10 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -4179,9 +4179,8 @@ nsCSSFrameConstructor::ConstructSelectFrame(nsIPresShell* aPresShell, // Set flag so the events go to the listFrame not child frames. // XXX: We should replace this with a real widget manager similar // to how the nsFormControlFrame works. Re-directing events is a temporary Kludge. - nsIView *listView = listFrame->GetView(); - NS_ASSERTION(listView, "ListFrame's view is nsnull"); - //listView->SetViewFlags(NS_VIEW_PUBLIC_FLAG_DONT_CHECK_CHILDREN); + NS_ASSERTION(listFrame->GetView(), "ListFrame's view is nsnull"); + //listFrame->GetView()->SetViewFlags(NS_VIEW_PUBLIC_FLAG_DONT_CHECK_CHILDREN); // Create display and button frames from the combobox's anonymous content. // The anonymous content is appended to existing anonymous content for this