From 95d239947510f694f33a1b3a8abe924589596c1d Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Thu, 13 Jul 2000 23:19:21 +0000 Subject: [PATCH] removing unnecessary ifdef --- layout/forms/nsFileControlFrame.cpp | 9 --------- layout/html/forms/src/nsFileControlFrame.cpp | 9 --------- 2 files changed, 18 deletions(-) diff --git a/layout/forms/nsFileControlFrame.cpp b/layout/forms/nsFileControlFrame.cpp index 0bd04cbc721b..862a428160bc 100644 --- a/layout/forms/nsFileControlFrame.cpp +++ b/layout/forms/nsFileControlFrame.cpp @@ -244,22 +244,13 @@ nsFileControlFrame::ScrollIntoView(nsIPresContext* aPresContext) nsresult nsFileControlFrame::MouseClick(nsIDOMEvent* aMouseEvent) { - nsIView* textView; nsIView* parentView; nsresult result = NS_OK; -#ifdef ENDER_LITE nsIFrame *parentWithView; if (NS_SUCCEEDED(mTextFrame->GetParentWithView(mPresContext, &parentWithView)) && parentWithView) { parentWithView->GetView(mPresContext,&parentView); } -#else - mTextFrame->GetView(mPresContext, &textView); - if (nsnull == textView) { - return NS_OK; - } - textView->GetParent(parentView); -#endif nsIWidget* parentWidget = GetWindowTemp(parentView); diff --git a/layout/html/forms/src/nsFileControlFrame.cpp b/layout/html/forms/src/nsFileControlFrame.cpp index 0bd04cbc721b..862a428160bc 100644 --- a/layout/html/forms/src/nsFileControlFrame.cpp +++ b/layout/html/forms/src/nsFileControlFrame.cpp @@ -244,22 +244,13 @@ nsFileControlFrame::ScrollIntoView(nsIPresContext* aPresContext) nsresult nsFileControlFrame::MouseClick(nsIDOMEvent* aMouseEvent) { - nsIView* textView; nsIView* parentView; nsresult result = NS_OK; -#ifdef ENDER_LITE nsIFrame *parentWithView; if (NS_SUCCEEDED(mTextFrame->GetParentWithView(mPresContext, &parentWithView)) && parentWithView) { parentWithView->GetView(mPresContext,&parentView); } -#else - mTextFrame->GetView(mPresContext, &textView); - if (nsnull == textView) { - return NS_OK; - } - textView->GetParent(parentView); -#endif nsIWidget* parentWidget = GetWindowTemp(parentView);