diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/WebCore/xml/parser/XMLTreeBuilder.cpp | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/WebCore/xml/parser/XMLTreeBuilder.cpp')
-rw-r--r-- | Source/WebCore/xml/parser/XMLTreeBuilder.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/WebCore/xml/parser/XMLTreeBuilder.cpp b/Source/WebCore/xml/parser/XMLTreeBuilder.cpp index 4cd3ac970..cc0d722d5 100644 --- a/Source/WebCore/xml/parser/XMLTreeBuilder.cpp +++ b/Source/WebCore/xml/parser/XMLTreeBuilder.cpp @@ -32,6 +32,7 @@ #include "Document.h" #include "DocumentFragment.h" #include "DocumentType.h" +#include "Element.h" #include "Frame.h" // FIXME: Why are we including HTML entity information in the XML parser? #include "HTMLEntitySearch.h" @@ -334,11 +335,11 @@ void XMLTreeBuilder::processXMLEntity(const AtomicXMLToken& token) DEFINE_STATIC_LOCAL(AtomicString, gt, ("gt")); DEFINE_STATIC_LOCAL(AtomicString, lt, ("lt")); DEFINE_STATIC_LOCAL(AtomicString, quot, ("quot")); - DEFINE_STATIC_LOCAL(String, ampS, ("&")); - DEFINE_STATIC_LOCAL(String, aposS, ("'")); - DEFINE_STATIC_LOCAL(String, gtS, (">")); - DEFINE_STATIC_LOCAL(String, ltS, ("<")); - DEFINE_STATIC_LOCAL(String, quotS, ("\"")); + DEFINE_STATIC_LOCAL(String, ampS, (ASCIILiteral("&"))); + DEFINE_STATIC_LOCAL(String, aposS, (ASCIILiteral("'"))); + DEFINE_STATIC_LOCAL(String, gtS, (ASCIILiteral(">"))); + DEFINE_STATIC_LOCAL(String, ltS, (ASCIILiteral("<"))); + DEFINE_STATIC_LOCAL(String, quotS, (ASCIILiteral("\""))); if (token.name() == amp) appendToText(ampS.characters(), 1); |