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

Unified Diff: Source/core/xml/XSLStyleSheet.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/XSLImportRule.cpp ('k') | Source/core/xml/XSLStyleSheetLibxslt.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XSLStyleSheet.h
diff --git a/Source/core/xml/XSLStyleSheet.h b/Source/core/xml/XSLStyleSheet.h
index d708a3cbc92f663a659733d8086a61116c6e9125..6f3cd30167ebaec653f1e92b6dacb6711775c3aa 100644
--- a/Source/core/xml/XSLStyleSheet.h
+++ b/Source/core/xml/XSLStyleSheet.h
@@ -56,10 +56,10 @@ public:
// Taking an arbitrary node is unsafe, because owner node pointer can become
// stale. XSLTProcessor ensures that the stylesheet doesn't outlive its
// parent, in part by not exposing it to JavaScript.
- static PassRefPtrWillBeRawPtr<XSLStyleSheet> createForXSLTProcessor(Node* parentNode, const String& originalURL, const KURL& finalURL)
+ static PassRefPtrWillBeRawPtr<XSLStyleSheet> createForXSLTProcessor(Document* document, Node* stylesheetRootNode, const String& originalURL, const KURL& finalURL)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLStyleSheet(parentNode, originalURL, finalURL, false));
+ return adoptRefWillBeNoop(new XSLStyleSheet(document, stylesheetRootNode, originalURL, finalURL, false));
}
virtual ~XSLStyleSheet();
@@ -103,6 +103,7 @@ public:
private:
XSLStyleSheet(Node* parentNode, const String& originalURL, const KURL& finalURL, bool embedded);
+ XSLStyleSheet(Document* ownerDocument, Node* styleSheetRootNode, const String& originalURL, const KURL& finalURL, bool embedded);
XSLStyleSheet(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL);
RawPtrWillBeMember<Node> m_ownerNode;
@@ -120,6 +121,7 @@ private:
bool m_compilationFailed;
RawPtrWillBeMember<XSLStyleSheet> m_parentStyleSheet;
+ RefPtrWillBeMember<Document> m_ownerDocument;
};
DEFINE_TYPE_CASTS(XSLStyleSheet, StyleSheet, sheet, !sheet->isCSSStyleSheet(), !sheet.isCSSStyleSheet());
« no previous file with comments | « Source/core/xml/XSLImportRule.cpp ('k') | Source/core/xml/XSLStyleSheetLibxslt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698