diff options
Diffstat (limited to 'WebCore/xml')
-rw-r--r-- | WebCore/xml/DOMParser.h | 3 | ||||
-rw-r--r-- | WebCore/xml/XMLHttpRequest.h | 2 | ||||
-rw-r--r-- | WebCore/xml/XMLHttpRequestUpload.h | 2 | ||||
-rw-r--r-- | WebCore/xml/XPathEvaluator.h | 2 | ||||
-rw-r--r-- | WebCore/xml/XPathExpression.h | 2 | ||||
-rw-r--r-- | WebCore/xml/XPathNSResolver.h | 3 | ||||
-rw-r--r-- | WebCore/xml/XPathResult.h | 2 | ||||
-rw-r--r-- | WebCore/xml/XPathUtil.h | 2 | ||||
-rw-r--r-- | WebCore/xml/XSLTProcessor.cpp | 2 |
9 files changed, 9 insertions, 11 deletions
diff --git a/WebCore/xml/DOMParser.h b/WebCore/xml/DOMParser.h index 5036d22..744bae8 100644 --- a/WebCore/xml/DOMParser.h +++ b/WebCore/xml/DOMParser.h @@ -19,13 +19,12 @@ #ifndef DOMParser_h #define DOMParser_h +#include <wtf/Forward.h> #include <wtf/RefCounted.h> #include "Document.h" namespace WebCore { - class String; - class DOMParser : public RefCounted<DOMParser> { public: static PassRefPtr<DOMParser> create() { return adoptRef(new DOMParser); } diff --git a/WebCore/xml/XMLHttpRequest.h b/WebCore/xml/XMLHttpRequest.h index ca308cc..363fdf8 100644 --- a/WebCore/xml/XMLHttpRequest.h +++ b/WebCore/xml/XMLHttpRequest.h @@ -164,7 +164,7 @@ private: RefPtr<TextResourceDecoder> m_decoder; - // Unlike most strings in the DOM, we keep this as a ScriptString, not a WebCore::String. + // Unlike most strings in the DOM, we keep this as a ScriptString, not a WTF::String. // That's because these strings can easily get huge (they are filled from the network with // no parsing) and because JS can easily observe many intermediate states, so it's very useful // to be able to share the buffer with JavaScript versions of the whole or partial string. diff --git a/WebCore/xml/XMLHttpRequestUpload.h b/WebCore/xml/XMLHttpRequestUpload.h index 7640643..7a605fb 100644 --- a/WebCore/xml/XMLHttpRequestUpload.h +++ b/WebCore/xml/XMLHttpRequestUpload.h @@ -30,6 +30,7 @@ #include "EventListener.h" #include "EventNames.h" #include "EventTarget.h" +#include <wtf/Forward.h> #include <wtf/HashMap.h> #include <wtf/RefCounted.h> #include <wtf/RefPtr.h> @@ -38,7 +39,6 @@ namespace WebCore { - class AtomicStringImpl; class ScriptExecutionContext; class XMLHttpRequest; diff --git a/WebCore/xml/XPathEvaluator.h b/WebCore/xml/XPathEvaluator.h index c8e456e..70322a4 100644 --- a/WebCore/xml/XPathEvaluator.h +++ b/WebCore/xml/XPathEvaluator.h @@ -29,6 +29,7 @@ #if ENABLE(XPATH) +#include <wtf/Forward.h> #include <wtf/RefCounted.h> #include <wtf/PassRefPtr.h> @@ -37,7 +38,6 @@ namespace WebCore { typedef int ExceptionCode; class Node; - class String; class XPathExpression; class XPathNSResolver; class XPathResult; diff --git a/WebCore/xml/XPathExpression.h b/WebCore/xml/XPathExpression.h index a2b75d7..633ec80 100644 --- a/WebCore/xml/XPathExpression.h +++ b/WebCore/xml/XPathExpression.h @@ -29,6 +29,7 @@ #if ENABLE(XPATH) +#include <wtf/Forward.h> #include <wtf/RefCounted.h> #include <wtf/PassRefPtr.h> @@ -37,7 +38,6 @@ namespace WebCore { typedef int ExceptionCode; class Node; - class String; class XPathNSResolver; class XPathResult; diff --git a/WebCore/xml/XPathNSResolver.h b/WebCore/xml/XPathNSResolver.h index 04b5f80..7b7fd2e 100644 --- a/WebCore/xml/XPathNSResolver.h +++ b/WebCore/xml/XPathNSResolver.h @@ -29,12 +29,11 @@ #if ENABLE(XPATH) +#include <wtf/Forward.h> #include <wtf/RefCounted.h> namespace WebCore { - class String; - class XPathNSResolver : public RefCounted<XPathNSResolver> { public: virtual ~XPathNSResolver(); diff --git a/WebCore/xml/XPathResult.h b/WebCore/xml/XPathResult.h index 3b91d66..cbb51f5 100644 --- a/WebCore/xml/XPathResult.h +++ b/WebCore/xml/XPathResult.h @@ -30,6 +30,7 @@ #if ENABLE(XPATH) #include "XPathValue.h" +#include <wtf/Forward.h> #include <wtf/RefCounted.h> namespace WebCore { @@ -38,7 +39,6 @@ namespace WebCore { class Document; class Node; - class String; class XPathResult : public RefCounted<XPathResult> { public: diff --git a/WebCore/xml/XPathUtil.h b/WebCore/xml/XPathUtil.h index 30f21ae..cfb34dc 100644 --- a/WebCore/xml/XPathUtil.h +++ b/WebCore/xml/XPathUtil.h @@ -29,12 +29,12 @@ #if ENABLE(XPATH) +#include <wtf/Forward.h> #include <wtf/Vector.h> namespace WebCore { class Node; - class String; namespace XPath { diff --git a/WebCore/xml/XSLTProcessor.cpp b/WebCore/xml/XSLTProcessor.cpp index f949163..7e07ee3 100644 --- a/WebCore/xml/XSLTProcessor.cpp +++ b/WebCore/xml/XSLTProcessor.cpp @@ -100,7 +100,7 @@ static inline RefPtr<DocumentFragment> createFragmentFromSource(const String& so RefPtr<DocumentFragment> fragment = outputDoc->createDocumentFragment(); if (sourceMIMEType == "text/html") - fragment->parseHTML(sourceString); + fragment->parseHTML(sourceString, outputDoc->documentElement()); else if (sourceMIMEType == "text/plain") fragment->legacyParserAddChild(Text::create(outputDoc, sourceString)); else { |