From 24fcf27eeafd72ac97737f57da3916557144742d Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Tue, 16 May 2000 03:40:02 +0000 Subject: [PATCH] textareas are also special cases where some data is added in create anonymous frames git-svn-id: svn://10.0.0.236/trunk@69962 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 10 ++++++++++ .../layout/html/style/src/nsCSSFrameConstructor.cpp | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 0b0677b42c9..e0f98777630 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -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 && diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 0b0677b42c9..e0f98777630 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -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 &&