mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
removing unnecessary ifdef
This commit is contained in:
parent
829408eddb
commit
95d2399475
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user