Bug 838703 - Various nsFileControlFrame cleanup. r=bz

This commit is contained in:
Mounir Lamouri
2013-03-22 17:15:13 +00:00
parent ef70012ec2
commit 60b9f2aca3
2 changed files with 8 additions and 18 deletions

View File

@@ -52,9 +52,6 @@
using namespace mozilla;
#define SYNC_TEXT 0x1
#define SYNC_BUTTON 0x2
nsIFrame*
NS_NewFileControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
{
@@ -63,8 +60,8 @@ NS_NewFileControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
NS_IMPL_FRAMEARENA_HELPERS(nsFileControlFrame)
nsFileControlFrame::nsFileControlFrame(nsStyleContext* aContext):
nsBlockFrame(aContext)
nsFileControlFrame::nsFileControlFrame(nsStyleContext* aContext)
: nsBlockFrame(aContext)
{
AddStateBits(NS_BLOCK_FLOAT_MGR);
}
@@ -85,7 +82,7 @@ nsFileControlFrame::DestroyFrom(nsIFrame* aDestructRoot)
{
ENSURE_TRUE(mContent);
// Remove the drag events
// Remove the events.
if (mContent) {
mContent->RemoveSystemEventListener(NS_LITERAL_STRING("drop"),
mMouseListener, false);
@@ -306,12 +303,6 @@ nsFileControlFrame::ContentStatesChanged(nsEventStates aStates)
}
}
bool
nsFileControlFrame::IsLeaf() const
{
return true;
}
#ifdef DEBUG
NS_IMETHODIMP
nsFileControlFrame::GetFrameName(nsAString& aResult) const