Bug 86975, synchronise ScrollToRef() code between HTML and XML content sinks. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@100126 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3921,7 +3921,7 @@ HTMLContentSink::StartLayout()
|
||||
}
|
||||
|
||||
// Convert the ref from document charset to unicode.
|
||||
static nsresult CharsetConvRef(const nsString& aDocCharset, const nsCString& aRefInDocCharset, nsString& aRefInUnicode)
|
||||
nsresult CharsetConvRef(const nsString& aDocCharset, const nsCString& aRefInDocCharset, nsString& aRefInUnicode)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
@@ -3962,6 +3962,8 @@ static nsresult CharsetConvRef(const nsString& aDocCharset, const nsCString& aRe
|
||||
void
|
||||
HTMLContentSink::ScrollToRef()
|
||||
{
|
||||
// XXX Duplicate code in nsXMLContentSink.
|
||||
// XXX Be sure to change both places if you make changes here.
|
||||
if (!mRef.IsEmpty()) {
|
||||
char* tmpstr = mRef.ToNewCString();
|
||||
if(! tmpstr)
|
||||
|
||||
Reference in New Issue
Block a user