Index: Source/core/xml/XSLStyleSheet.h |
diff --git a/Source/core/xml/XSLStyleSheet.h b/Source/core/xml/XSLStyleSheet.h |
index 2a3c9bcf53a396c941ce48c5c736ecad82993382..a2064f35bbb549a551226ee69bab25b2c335f7be 100644 |
--- a/Source/core/xml/XSLStyleSheet.h |
+++ b/Source/core/xml/XSLStyleSheet.h |
@@ -38,28 +38,28 @@ class XSLImportRule; |
class XSLStyleSheet FINAL : public StyleSheet { |
public: |
- static PassRefPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL) |
+ static PassRefPtrWillBeRawPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL) |
{ |
ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
- return adoptRef(new XSLStyleSheet(parentImport, originalURL, finalURL)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new XSLStyleSheet(parentImport, originalURL, finalURL)); |
} |
- static PassRefPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, const String& originalURL, const KURL& finalURL) |
+ static PassRefPtrWillBeRawPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, const String& originalURL, const KURL& finalURL) |
{ |
ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
- return adoptRef(new XSLStyleSheet(parentNode, originalURL, finalURL, false)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new XSLStyleSheet(parentNode, originalURL, finalURL, false)); |
} |
- static PassRefPtr<XSLStyleSheet> createEmbedded(ProcessingInstruction* parentNode, const KURL& finalURL) |
+ static PassRefPtrWillBeRawPtr<XSLStyleSheet> createEmbedded(ProcessingInstruction* parentNode, const KURL& finalURL) |
{ |
ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
- return adoptRef(new XSLStyleSheet(parentNode, finalURL.string(), finalURL, true)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new XSLStyleSheet(parentNode, finalURL.string(), finalURL, true)); |
} |
// 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 PassRefPtr<XSLStyleSheet> createForXSLTProcessor(Node* parentNode, const String& originalURL, const KURL& finalURL) |
+ static PassRefPtrWillBeRawPtr<XSLStyleSheet> createForXSLTProcessor(Node* parentNode, const String& originalURL, const KURL& finalURL) |
{ |
ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
- return adoptRef(new XSLStyleSheet(parentNode, originalURL, finalURL, false)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new XSLStyleSheet(parentNode, originalURL, finalURL, false)); |
} |
virtual ~XSLStyleSheet(); |
@@ -99,6 +99,8 @@ public: |
virtual KURL baseURL() const OVERRIDE { return m_finalURL; } |
virtual bool isLoading() const OVERRIDE; |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
private: |
XSLStyleSheet(Node* parentNode, const String& originalURL, const KURL& finalURL, bool embedded); |
XSLStyleSheet(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL); |