Fixing bug 239953. Remove duplicated code in nsContentUtils. r=jonas@sicking.cc, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@154766 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -117,6 +117,7 @@
|
||||
#include "nsICharsetAlias.h"
|
||||
#include "nsIPref.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsJSUtils.h"
|
||||
#include "nsIDocumentCharsetInfo.h"
|
||||
#include "nsIDocumentEncoder.h" //for outputting selection
|
||||
#include "nsICharsetResolver.h"
|
||||
@@ -998,7 +999,7 @@ nsHTMLDocument::EndLoad()
|
||||
stack->Peek(&cx);
|
||||
|
||||
if (cx) {
|
||||
nsIScriptContext *scx = nsContentUtils::GetDynamicScriptContext(cx);
|
||||
nsIScriptContext *scx = nsJSUtils::GetDynamicScriptContext(cx);
|
||||
|
||||
if (scx) {
|
||||
// The load of the document was terminated while we're
|
||||
|
||||
Reference in New Issue
Block a user