зеркало из https://github.com/mozilla/gecko-dev.git
added back in the code that hook it up to the form for submission
r=kmcclusk bug 19546
This commit is contained in:
Родитель
6044c6f90a
Коммит
ca9ac3ad84
|
@ -313,6 +313,9 @@ nsGfxButtonControlFrame::Reflow(nsIPresContext* aPresContext,
|
|||
{
|
||||
// The mFormFrame is set in the initial reflow within nsHTMLButtonControlFrame
|
||||
nsresult rv = NS_OK;
|
||||
if (!mFormFrame && (eReflowReason_Initial == aReflowState.reason)) {
|
||||
nsFormFrame::AddFormControlFrame(aPresContext, *NS_STATIC_CAST(nsIFrame*, this));
|
||||
}
|
||||
|
||||
if ((kSuggestedNotSet != mSuggestedWidth) ||
|
||||
(kSuggestedNotSet != mSuggestedHeight)) {
|
||||
|
|
|
@ -313,6 +313,9 @@ nsGfxButtonControlFrame::Reflow(nsIPresContext* aPresContext,
|
|||
{
|
||||
// The mFormFrame is set in the initial reflow within nsHTMLButtonControlFrame
|
||||
nsresult rv = NS_OK;
|
||||
if (!mFormFrame && (eReflowReason_Initial == aReflowState.reason)) {
|
||||
nsFormFrame::AddFormControlFrame(aPresContext, *NS_STATIC_CAST(nsIFrame*, this));
|
||||
}
|
||||
|
||||
if ((kSuggestedNotSet != mSuggestedWidth) ||
|
||||
(kSuggestedNotSet != mSuggestedHeight)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче