зеркало из https://github.com/mozilla/pjs.git
Bug 219389 - ViewSource highlighting broken (from bug 179834) r=pike sr=darin
This commit is contained in:
Родитель
ee0542b3be
Коммит
da9e036fe8
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -44,7 +44,7 @@ var gTargetNode = null;
|
|||
|
||||
var gEntityConverter = null;
|
||||
var gWrapLongLines = false;
|
||||
const gViewSourceCSS = 'resource:///res/viewsource.css';
|
||||
const gViewSourceCSS = 'resource://gre/res/viewsource.css';
|
||||
const NS_XHTML = 'http://www.w3.org/1999/xhtml';
|
||||
|
||||
// These are markers used to delimit the selection during processing. They
|
||||
|
|
Загрузка…
Ссылка в новой задаче