Remove unnecessary #includes. b=462203 r+sr=roc
authorMats Palmgren <mats.palmgren@bredband.net>
Thu, 19 Feb 2009 21:18:49 +0100
changeset 25236 9274a021ee67f7b7dbfa28afa78b9bba9d6e8f98
parent 25235 31689184423ec6f1cbf24e148ebae48d5c53b904
child 25237 d5aae349d1187b9476beba6dd0a923a14f241d39
push id1
push usersledru@mozilla.com
push dateThu, 04 Dec 2014 17:57:20 +0000
bugs462203
milestone1.9.2a1pre
Remove unnecessary #includes. b=462203 r+sr=roc
layout/forms/nsLegendFrame.cpp
layout/forms/nsLegendFrame.h
--- a/layout/forms/nsLegendFrame.cpp
+++ b/layout/forms/nsLegendFrame.cpp
@@ -30,31 +30,23 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-// YY need to pass isMultiple before create called
-
 #include "nsLegendFrame.h"
-#include "nsIDOMNode.h"
-#include "nsIDOMHTMLLegendElement.h"
-#include "nsCSSRendering.h"
 #include "nsIContent.h"
-#include "nsIFrame.h"
-#include "nsISupports.h"
 #include "nsIAtom.h"
 #include "nsGenericHTMLElement.h"
 #include "nsHTMLParts.h"
 #include "nsGkAtoms.h"
 #include "nsStyleConsts.h"
-#include "nsFont.h"
 #include "nsFormControlFrame.h"
 
 nsIFrame*
 NS_NewLegendFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
 {
 #ifdef DEBUG
   const nsStyleDisplay* disp = aContext->GetStyleDisplay();
   NS_ASSERTION(!disp->IsAbsolutelyPositioned() && !disp->IsFloating(),
--- a/layout/forms/nsLegendFrame.h
+++ b/layout/forms/nsLegendFrame.h
@@ -34,35 +34,26 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 #ifndef nsLegendFrame_h___
 #define nsLegendFrame_h___
 
 #include "nsBlockFrame.h"
-#include "nsPresContext.h"
-#include "nsCOMPtr.h"
-
-class  nsIContent;
-class  nsIFrame;
-class  nsPresContext;
-struct nsHTMLReflowMetrics;
-class  nsIRenderingContext;
-struct nsRect;
 
 class nsLegendFrame : public nsBlockFrame {
 public:
   NS_DECLARE_FRAME_ACCESSOR(nsLegendFrame)
 
   nsLegendFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {}
 
   NS_DECL_QUERYFRAME
 
-  NS_IMETHOD Reflow(nsPresContext*          aPresContext,
+  NS_IMETHOD Reflow(nsPresContext*           aPresContext,
                     nsHTMLReflowMetrics&     aDesiredSize,
                     const nsHTMLReflowState& aReflowState,
                     nsReflowStatus&          aStatus);
 
   virtual void Destroy();
 
   virtual nsIAtom* GetType() const;