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

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, 4 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 7d7bda10e4976a54fc1af891ac94b075eccb7c8e..b43b901ef1d334d0dbc5494fedcd3d0cc810a117 100644
--- a/Source/core/xml/XSLTProcessor.h
+++ b/Source/core/xml/XSLTProcessor.h
@@ -41,10 +41,10 @@ class DocumentFragment;
class XSLTProcessor : public RefCountedWillBeGarbageCollectedFinalized<XSLTProcessor>, public ScriptWrappable {
public:
- static PassRefPtrWillBeRawPtr<XSLTProcessor> create()
+ static PassRefPtrWillBeRawPtr<XSLTProcessor> create(Document& document)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLTProcessor);
+ return adoptRefWillBeNoop(new XSLTProcessor(document));
}
~XSLTProcessor();
@@ -79,13 +79,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