fix for 187955: improvements to html fragment sink and paste code. Fixes problems seen with "Create table From Selection" and also with CF_HTML paste.

r=brade; sr=kin


git-svn-id: svn://10.0.0.236/trunk@140108 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
2003-03-23 20:45:47 +00:00
parent 659bddd1ca
commit 0965f05259
3 changed files with 83 additions and 13 deletions

View File

@@ -163,8 +163,6 @@ class nsHTMLFragmentContentSink2 : public nsHTMLFragmentContentSink
public:
nsHTMLFragmentContentSink2() { mHitSentinel = PR_TRUE; mSeenBody = PR_FALSE;}
virtual ~nsHTMLFragmentContentSink2() {}
NS_IMETHODIMP OpenHead(const nsIParserNode& aNode) { return OpenContainer(aNode); }
NS_IMETHODIMP CloseHead() { return CloseContainer(eHTMLTag_head); }
};
nsresult
@@ -389,13 +387,13 @@ nsHTMLFragmentContentSink::CloseHTML()
NS_IMETHODIMP
nsHTMLFragmentContentSink::OpenHead(const nsIParserNode& aNode)
{
return NS_OK;
return OpenContainer(aNode);
}
NS_IMETHODIMP
nsHTMLFragmentContentSink::CloseHead()
{
return NS_OK;
return CloseContainer(eHTMLTag_head);
}
NS_IMETHODIMP