diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index 68af3067500..3bf49fa1a11 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -222,7 +222,7 @@ nsFileControlFrame::ScrollIntoView(nsIPresContext* aPresContext) nsCOMPtr presShell; aPresContext->GetShell(getter_AddRefs(presShell)); presShell->ScrollFrameIntoView(this, - NS_PRESSHELL_SCROLL_ANYWHERE,NS_PRESSHELL_SCROLL_ANYWHERE); + NS_PRESSHELL_SCROLL_IF_NOT_VISIBLE,NS_PRESSHELL_SCROLL_IF_NOT_VISIBLE); } } @@ -467,11 +467,10 @@ nsFileControlFrame::GetFormContent(nsIContent*& aContent) const } NS_IMETHODIMP -nsFileControlFrame::GetFont(nsIPresContext* aPresContext, - nsFont& aFont) +nsFileControlFrame::GetFont(nsIPresContext* aPresContext, + const nsFont*& aFont) { - nsFormControlHelper::GetFont(this, aPresContext, mStyleContext, aFont); - return NS_OK; + return nsFormControlHelper::GetFont(this, aPresContext, mStyleContext, aFont); } nscoord nsFileControlFrame::GetVerticalInsidePadding(nsIPresContext* aPresContext, diff --git a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp index 68af3067500..3bf49fa1a11 100644 --- a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp @@ -222,7 +222,7 @@ nsFileControlFrame::ScrollIntoView(nsIPresContext* aPresContext) nsCOMPtr presShell; aPresContext->GetShell(getter_AddRefs(presShell)); presShell->ScrollFrameIntoView(this, - NS_PRESSHELL_SCROLL_ANYWHERE,NS_PRESSHELL_SCROLL_ANYWHERE); + NS_PRESSHELL_SCROLL_IF_NOT_VISIBLE,NS_PRESSHELL_SCROLL_IF_NOT_VISIBLE); } } @@ -467,11 +467,10 @@ nsFileControlFrame::GetFormContent(nsIContent*& aContent) const } NS_IMETHODIMP -nsFileControlFrame::GetFont(nsIPresContext* aPresContext, - nsFont& aFont) +nsFileControlFrame::GetFont(nsIPresContext* aPresContext, + const nsFont*& aFont) { - nsFormControlHelper::GetFont(this, aPresContext, mStyleContext, aFont); - return NS_OK; + return nsFormControlHelper::GetFont(this, aPresContext, mStyleContext, aFont); } nscoord nsFileControlFrame::GetVerticalInsidePadding(nsIPresContext* aPresContext,