зеркало из https://github.com/mozilla/gecko-dev.git
textareas are also special cases where some data is added in create anonymous frames
This commit is contained in:
Родитель
6939611619
Коммит
6c96b883c7
|
@ -117,6 +117,11 @@
|
|||
#include "nsPolygonFrame.h"
|
||||
#include "nsPolylineFrame.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_mjudge
|
||||
#define DEBUG_NEWFRAME 1
|
||||
#endif
|
||||
|
||||
nsresult
|
||||
NS_NewSVGContainerFrame ( nsIPresShell* aPresShell, nsIFrame** aNewFrame, PRBool aIsRoot );
|
||||
|
||||
|
@ -3854,7 +3859,11 @@ nsCSSFrameConstructor::ConstructTextControlFrame(nsIPresShell* aPresShell
|
|||
aNewFrame = nsnull;
|
||||
}
|
||||
if (aNewFrame)
|
||||
{
|
||||
#ifndef DEBUG_NEWFRAME
|
||||
((nsGfxTextControlFrame*)aNewFrame)->SetFrameConstructor(this);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (!aNewFrame)
|
||||
{
|
||||
|
@ -5176,6 +5185,7 @@ nsCSSFrameConstructor::CreateAnonymousFrames(nsIPresShell* aPresShell,
|
|||
// only these tags types can have anonymous content. We do this check for performance
|
||||
// reasons. If we did a query interface on every tag it would be very inefficient.
|
||||
if (aTag != nsHTMLAtoms::input &&
|
||||
aTag != nsHTMLAtoms::textarea &&
|
||||
aTag != nsHTMLAtoms::combobox &&
|
||||
aTag != nsXULAtoms::slider &&
|
||||
aTag != nsXULAtoms::splitter &&
|
||||
|
|
|
@ -117,6 +117,11 @@
|
|||
#include "nsPolygonFrame.h"
|
||||
#include "nsPolylineFrame.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_mjudge
|
||||
#define DEBUG_NEWFRAME 1
|
||||
#endif
|
||||
|
||||
nsresult
|
||||
NS_NewSVGContainerFrame ( nsIPresShell* aPresShell, nsIFrame** aNewFrame, PRBool aIsRoot );
|
||||
|
||||
|
@ -3854,7 +3859,11 @@ nsCSSFrameConstructor::ConstructTextControlFrame(nsIPresShell* aPresShell
|
|||
aNewFrame = nsnull;
|
||||
}
|
||||
if (aNewFrame)
|
||||
{
|
||||
#ifndef DEBUG_NEWFRAME
|
||||
((nsGfxTextControlFrame*)aNewFrame)->SetFrameConstructor(this);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (!aNewFrame)
|
||||
{
|
||||
|
@ -5176,6 +5185,7 @@ nsCSSFrameConstructor::CreateAnonymousFrames(nsIPresShell* aPresShell,
|
|||
// only these tags types can have anonymous content. We do this check for performance
|
||||
// reasons. If we did a query interface on every tag it would be very inefficient.
|
||||
if (aTag != nsHTMLAtoms::input &&
|
||||
aTag != nsHTMLAtoms::textarea &&
|
||||
aTag != nsHTMLAtoms::combobox &&
|
||||
aTag != nsXULAtoms::slider &&
|
||||
aTag != nsXULAtoms::splitter &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче