diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/xml/XMLTreeViewer.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/xml/XMLTreeViewer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/core/xml/XMLTreeViewer.cpp b/chromium/third_party/WebKit/Source/core/xml/XMLTreeViewer.cpp index 04bfa132fb7..287f32d2054 100644 --- a/chromium/third_party/WebKit/Source/core/xml/XMLTreeViewer.cpp +++ b/chromium/third_party/WebKit/Source/core/xml/XMLTreeViewer.cpp @@ -37,7 +37,7 @@ #include "core/dom/Document.h" #include "core/dom/Element.h" #include "core/dom/Text.h" -#include "core/page/Frame.h" +#include "core/frame/Frame.h" using namespace std; @@ -52,9 +52,9 @@ void XMLTreeViewer::transformDocumentToTreeView() { m_document->setIsViewSource(true); String scriptString(reinterpret_cast<const char*>(XMLViewer_js), sizeof(XMLViewer_js)); - m_document->frame()->script()->executeScriptInMainWorld(ScriptSourceCode(scriptString)); + m_document->frame()->script().executeScriptInMainWorld(scriptString, ScriptController::ExecuteScriptWhenScriptsDisabled); String noStyleMessage("This XML file does not appear to have any style information associated with it. The document tree is shown below."); - m_document->frame()->script()->executeScriptInMainWorld(ScriptSourceCode("prepareWebKitXMLViewer('" + noStyleMessage + "');")); + m_document->frame()->script().executeScriptInMainWorld("prepareWebKitXMLViewer('" + noStyleMessage + "');", ScriptController::ExecuteScriptWhenScriptsDisabled); String cssString(reinterpret_cast<const char*>(XMLViewer_css), sizeof(XMLViewer_css)); RefPtr<Text> text = m_document->createTextNode(cssString); |