Bug 219389 - ViewSource highlighting broken (from bug 179834) r=pike sr=darin
git-svn-id: svn://10.0.0.236/trunk@146991 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -495,7 +495,7 @@ nsresult CViewSourceHTML::WillBuildModel(const CParserContext& aParserContext,
|
||||
fprintf(gDumpFile, "Source of: ");
|
||||
fputs(NS_ConvertUCS2toUTF8(mFilename).get(), gDumpFile);
|
||||
fprintf(gDumpFile, "</title>\n");
|
||||
fprintf(gDumpFile, "<link rel=\"stylesheet\" type=\"text/css\" href=\"resource:/res/viewsource.css\">\n");
|
||||
fprintf(gDumpFile, "<link rel=\"stylesheet\" type=\"text/css\" href=\"resource://gre/res/viewsource.css\">\n");
|
||||
fprintf(gDumpFile, "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
|
||||
fprintf(gDumpFile, "</head>\n");
|
||||
fprintf(gDumpFile, "<body id=\"viewsource\">\n");
|
||||
@@ -575,7 +575,7 @@ NS_IMETHODIMP CViewSourceHTML::BuildModel(nsIParser* aParser,nsITokenizer* aToke
|
||||
|
||||
AddAttrToNode(theNode, theAllocator,
|
||||
NS_LITERAL_STRING("href"),
|
||||
NS_LITERAL_STRING("resource:/res/viewsource.css"));
|
||||
NS_LITERAL_STRING("resource://gre/res/viewsource.css"));
|
||||
|
||||
result = mSink->AddLeaf(theNode);
|
||||
didBlock = result == NS_ERROR_HTMLPARSER_BLOCK;
|
||||
|
||||
Reference in New Issue
Block a user