зеркало из https://github.com/mozilla/gecko-dev.git
bug 62811 - ensure that <form>s are always display:block, sr=attinasi, r=pollmann
This commit is contained in:
Родитель
6abe824b39
Коммит
ea686d7396
|
@ -50,6 +50,7 @@
|
|||
#include "nsIPresShell.h"
|
||||
#include "nsIPresContext.h"
|
||||
#include "nsIStyleContext.h"
|
||||
#include "nsIMutableStyleContext.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsHTMLIIDs.h"
|
||||
#include "nsDebug.h"
|
||||
|
@ -166,6 +167,16 @@ nsFormFrame::~nsFormFrame()
|
|||
}
|
||||
}
|
||||
|
||||
NS_METHOD nsFormFrame::DidSetStyleContext(nsIPresContext* aPresContext)
|
||||
{
|
||||
// we can't yet support anything but display:block on a form,
|
||||
// so make sure that the display is block
|
||||
nsMutableStyleDisplay displayData(mStyleContext);
|
||||
displayData->mDisplay = NS_STYLE_DISPLAY_BLOCK;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsFormFrame::CanSubmit(nsIFormControlFrame *aFrame)
|
||||
{
|
||||
|
|
|
@ -102,6 +102,7 @@ public:
|
|||
protected:
|
||||
NS_IMETHOD_(nsrefcnt) AddRef(void);
|
||||
NS_IMETHOD_(nsrefcnt) Release(void);
|
||||
NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext);
|
||||
void RemoveRadioGroups();
|
||||
|
||||
void DoDefaultSelection(nsIPresContext* aPresContext,
|
||||
|
|
Загрузка…
Ссылка в новой задаче