bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst

git-svn-id: svn://10.0.0.236/trunk@179922 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com 2005-09-09 19:15:06 +00:00
parent 0e99342140
commit 3deda508c0
2 changed files with 14 additions and 14 deletions

View File

@ -75,10 +75,10 @@ public:
NS_DECL_ISUPPORTS
// nsIHTMLContentSink
NS_IMETHOD SetTitle(const nsString& aValue);
NS_IMETHOD OpenHTML(const nsIParserNode& aNode);
NS_IMETHOD CloseHTML();
NS_IMETHOD OpenHead(const nsIParserNode& aNode);
NS_IMETHOD OpenHead();
NS_IMETHOD CloseHead();
NS_IMETHOD OpenBody(const nsIParserNode& aNode);
NS_IMETHOD CloseBody();
@ -94,7 +94,6 @@ public:
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsHTMLTag aTag);
NS_IMETHOD CloseTopmostContainer();
NS_IMETHOD AddHeadContent(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
@ -177,11 +176,6 @@ NS_IMETHODIMP RobotSink::QueryInterface(REFNSIID aIID, void** aInstancePtr)
return NS_NOINTERFACE;
}
NS_IMETHODIMP RobotSink::SetTitle(const nsString& aValue)
{
return NS_OK;
}
NS_IMETHODIMP RobotSink::OpenHTML(const nsIParserNode& aNode)
{
return NS_OK;
@ -197,6 +191,11 @@ NS_IMETHODIMP RobotSink::OpenHead(const nsIParserNode& aNode)
return NS_OK;
}
NS_IMETHODIMP RobotSink::OpenHead()
{
return NS_OK;
}
NS_IMETHODIMP RobotSink::CloseHead()
{
return NS_OK;
@ -287,11 +286,6 @@ NS_IMETHODIMP RobotSink::CloseTopmostContainer()
return NS_OK;
}
NS_IMETHODIMP RobotSink::AddHeadContent(const nsIParserNode& aNode)
{
return NS_OK;
}
NS_IMETHODIMP RobotSink::AddLeaf(const nsIParserNode& aNode)
{
return NS_OK;

View File

@ -6,7 +6,13 @@ class nsIDocShell;
//XXXbz is this even used? There is no DebugRobot() with this
//signature in the tree!
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList, nsIDocShell * ww);
extern "C" NS_EXPORT int DebugRobot(
nsVoidArray * workList,
nsIDocShell * docShell,
int iMaxLoads,
char * verify_dir,
void (*yieldProc )(const char *)
);
int main(int argc, char **argv)
{
@ -26,6 +32,6 @@ int main(int argc, char **argv)
}
}
return DebugRobot(gWorkList, nsnull);
return DebugRobot(gWorkList, nsnull, 50, nsnull, nsnull);
}