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)