diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp
index 6f0a7200a38..d5496c6fc92 100644
--- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp
+++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp
@@ -42,6 +42,10 @@
#include "nsRepository.h"
+#include "nsIScrollableView.h"
+#include "nsHTMLAtoms.h"
+#include "nsIFrame.h"
+
#include "nsIWebShell.h"
extern nsresult NS_NewHTMLIFrame(nsIHTMLContent** aInstancePtrResult,
nsIAtom* aTag, nsIWebShell* aWebShell); // XXX move
@@ -92,6 +96,7 @@ static PRLogModuleInfo* gSinkLogModuleInfo;
//----------------------------------------------------------------------
+static NS_DEFINE_IID(kIScrollableViewIID, NS_ISCROLLABLEVIEW_IID);
static NS_DEFINE_IID(kIHTMLContentSinkIID, NS_IHTML_CONTENT_SINK_IID);
static NS_DEFINE_IID(kIFormControlIID, NS_IFORMCONTROL_IID);
@@ -218,6 +223,8 @@ protected:
nsresult LoadStyleSheet(nsIURL* aURL,
nsIUnicharInputStream* aUIN);
+ void ScrollToRef();
+
nsIDocument* mDocument;
nsIURL* mDocumentURL;
@@ -245,6 +252,11 @@ protected:
PRInt32 mInMonolithicContainer;
nsIWebShell* mWebShell;
+ nsString* mRef;
+ nsScrollPreference mOriginalScrollPreference;
+ PRBool mNotAtRef;
+ nsIHTMLContent* mRefContent;
+
// XXX The parser needs to keep track of body tags and frameset tags
// and tell the content sink if they are to be ignored. For example, in nav4
//