summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/XMLTreeViewer.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/xml/XMLTreeViewer.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/xml/XMLTreeViewer.cpp')
-rw-r--r--Source/WebCore/xml/XMLTreeViewer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/xml/XMLTreeViewer.cpp b/Source/WebCore/xml/XMLTreeViewer.cpp
index 5f137ad2f..1a85dc7c2 100644
--- a/Source/WebCore/xml/XMLTreeViewer.cpp
+++ b/Source/WebCore/xml/XMLTreeViewer.cpp
@@ -39,7 +39,6 @@
#include "ScriptController.h"
#include "ScriptSourceCode.h"
#include "SecurityOrigin.h"
-#include "SecurityOriginPolicy.h"
#include "Text.h"
#include "XMLViewerCSS.h"
#include "XMLViewerJS.h"
@@ -54,15 +53,16 @@ XMLTreeViewer::XMLTreeViewer(Document& document)
void XMLTreeViewer::transformDocumentToTreeView()
{
- m_document.setSecurityOriginPolicy(SecurityOriginPolicy::create(SecurityOrigin::createUnique()));
+ m_document.setSecurityOrigin(SecurityOrigin::createUnique());
String scriptString = StringImpl::createWithoutCopying(XMLViewer_js, sizeof(XMLViewer_js));
m_document.frame()->script().evaluate(ScriptSourceCode(scriptString));
- m_document.frame()->script().evaluate(ScriptSourceCode(AtomicString("prepareWebKitXMLViewer('This XML file does not appear to have any style information associated with it. The document tree is shown below.');")));
+ 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().evaluate(ScriptSourceCode("prepareWebKitXMLViewer('" + noStyleMessage + "');"));
String cssString = StringImpl::createWithoutCopying(XMLViewer_css, sizeof(XMLViewer_css));
- Ref<Text> text = m_document.createTextNode(cssString);
- m_document.getElementById(String(ASCIILiteral("xml-viewer-style")))->appendChild(WTFMove(text), IGNORE_EXCEPTION);
+ RefPtr<Text> text = m_document.createTextNode(cssString);
+ m_document.getElementById("xml-viewer-style")->appendChild(text, IGNORE_EXCEPTION);
m_document.styleResolverChanged(RecalcStyleImmediately);
}