Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1903)

Unified Diff: Source/core/xml/XSLTProcessor.h

Issue 507583002: XSLImportRule should not be ResourceClient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use UTF8Encoding().decode() Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/xml/XSLStyleSheetLibxslt.cpp ('k') | Source/core/xml/XSLTProcessor.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XSLTProcessor.h
diff --git a/Source/core/xml/XSLTProcessor.h b/Source/core/xml/XSLTProcessor.h
index 456d2c65b2dc2fab2141db03749fec28a61299c5..1a9b32c1e883f2ffa0ff867b8b9080d40ca719bd 100644
--- a/Source/core/xml/XSLTProcessor.h
+++ b/Source/core/xml/XSLTProcessor.h
@@ -42,10 +42,10 @@ class DocumentFragment;
class XSLTProcessor : public RefCountedWillBeGarbageCollectedFinalized<XSLTProcessor>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<XSLTProcessor> create()
+ static PassRefPtrWillBeRawPtr<XSLTProcessor> create(Document& document)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLTProcessor);
+ return adoptRefWillBeNoop(new XSLTProcessor(document));
}
~XSLTProcessor();
@@ -80,10 +80,13 @@ public:
void trace(Visitor*);
private:
- XSLTProcessor() { }
+ XSLTProcessor(Document& document)
+ : m_document(&document)
+ { }
RefPtrWillBeMember<XSLStyleSheet> m_stylesheet;
RefPtrWillBeMember<Node> m_stylesheetRootNode;
+ RefPtrWillBeMember<Document> m_document;
ParameterMap m_parameters;
};
« no previous file with comments | « Source/core/xml/XSLStyleSheetLibxslt.cpp ('k') | Source/core/xml/XSLTProcessor.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698