From c2fcef4d7059dcce418c97b8d64a8a1f53adc34b Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Thu, 14 Oct 2004 18:48:42 +0000 Subject: [PATCH] no bug - remove unused header includes, and remove an unused local variable. r+sr=bz git-svn-id: svn://10.0.0.236/trunk@163753 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsHTMLButtonControlFrame.h | 12 ++---------- .../layout/html/forms/src/nsHTMLButtonControlFrame.h | 12 ++---------- mozilla/layout/xul/base/src/nsBox.cpp | 1 - 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/mozilla/layout/forms/nsHTMLButtonControlFrame.h b/mozilla/layout/forms/nsHTMLButtonControlFrame.h index 03db3c0968c..e773b4bab26 100644 --- a/mozilla/layout/forms/nsHTMLButtonControlFrame.h +++ b/mozilla/layout/forms/nsHTMLButtonControlFrame.h @@ -43,27 +43,19 @@ #include "nsFormControlHelper.h" #include "nsIFormControlFrame.h" #include "nsHTMLParts.h" -#include "nsIFormControl.h" -#include "nsIRenderingContext.h" #include "nsPresContext.h" #include "nsIPresShell.h" #include "nsStyleContext.h" #include "nsLeafFrame.h" #include "nsCSSRendering.h" #include "nsISupports.h" -#include "nsHTMLAtoms.h" -#include "nsIImage.h" #include "nsStyleConsts.h" -#include "nsIWidget.h" #include "nsIComponentManager.h" -#include "nsIView.h" -#include "nsIViewManager.h" -#include "nsViewsCID.h" -#include "nsColor.h" -#include "nsIDocument.h" #include "nsButtonFrameRenderer.h" +class nsIRenderingContext; + class nsHTMLButtonControlFrame : public nsHTMLContainerFrame, public nsIFormControlFrame { diff --git a/mozilla/layout/html/forms/src/nsHTMLButtonControlFrame.h b/mozilla/layout/html/forms/src/nsHTMLButtonControlFrame.h index 03db3c0968c..e773b4bab26 100644 --- a/mozilla/layout/html/forms/src/nsHTMLButtonControlFrame.h +++ b/mozilla/layout/html/forms/src/nsHTMLButtonControlFrame.h @@ -43,27 +43,19 @@ #include "nsFormControlHelper.h" #include "nsIFormControlFrame.h" #include "nsHTMLParts.h" -#include "nsIFormControl.h" -#include "nsIRenderingContext.h" #include "nsPresContext.h" #include "nsIPresShell.h" #include "nsStyleContext.h" #include "nsLeafFrame.h" #include "nsCSSRendering.h" #include "nsISupports.h" -#include "nsHTMLAtoms.h" -#include "nsIImage.h" #include "nsStyleConsts.h" -#include "nsIWidget.h" #include "nsIComponentManager.h" -#include "nsIView.h" -#include "nsIViewManager.h" -#include "nsViewsCID.h" -#include "nsColor.h" -#include "nsIDocument.h" #include "nsButtonFrameRenderer.h" +class nsIRenderingContext; + class nsHTMLButtonControlFrame : public nsHTMLContainerFrame, public nsIFormControlFrame { diff --git a/mozilla/layout/xul/base/src/nsBox.cpp b/mozilla/layout/xul/base/src/nsBox.cpp index fd1314d7f52..8a47ee6e1ea 100644 --- a/mozilla/layout/xul/base/src/nsBox.cpp +++ b/mozilla/layout/xul/base/src/nsBox.cpp @@ -893,7 +893,6 @@ nsIFrame::Redraw(nsBoxLayoutState& aState, if (aState.PaintingDisabled()) return NS_OK; - nsPresContext* presContext = aState.PresContext(); const nsHTMLReflowState* s = aState.GetReflowState(); if (s) { if (s->reason != eReflowReason_Incremental)