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

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: 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
Index: Source/core/xml/XSLTProcessor.h
diff --git a/Source/core/xml/XSLTProcessor.h b/Source/core/xml/XSLTProcessor.h
index 954a692370b4125af96ab32afbf91936c7f9f66f..d3784f271c54340460ab832c7216f37e2164d189 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,13 +80,15 @@ public:
void trace(Visitor*);
private:
- XSLTProcessor()
+ XSLTProcessor(Document& document)
+ : m_document(&document)
{
ScriptWrappable::init(this);
}
RefPtrWillBeMember<XSLStyleSheet> m_stylesheet;
RefPtrWillBeMember<Node> m_stylesheetRootNode;
+ RefPtrWillBeMember<Document> m_document;
ParameterMap m_parameters;
};

Powered by Google App Engine
This is Rietveld 408576698