Index: Source/WebCore/css/StyleResolver.cpp |
=================================================================== |
--- Source/WebCore/css/StyleResolver.cpp (revision 132835) |
+++ Source/WebCore/css/StyleResolver.cpp (working copy) |
@@ -139,6 +139,7 @@ |
#if ENABLE(SVG) |
#include "CachedSVGDocument.h" |
+#include "CachedSVGDocumentReference.h" |
#include "SVGDocument.h" |
#include "SVGElement.h" |
#include "SVGNames.h" |
@@ -5198,7 +5199,7 @@ |
continue; |
// Stash the CachedSVGDocument on the reference filter. |
- referenceFilter->setData(cachedDocument); |
+ referenceFilter->setData(adoptPtr(new CachedSVGDocumentReference(cachedDocument))); |
} |
} |
m_pendingSVGDocuments.clear(); |
@@ -5533,7 +5534,7 @@ |
if (!svgDocumentValue->loadRequested()) |
m_pendingSVGDocuments.set(operation.get(), svgDocumentValue); |
else |
- operation->setData(svgDocumentValue->cachedSVGDocument()); |
+ operation->setData(adoptPtr(new CachedSVGDocumentReference(svgDocumentValue->cachedSVGDocument()))); |
} |
operations.operations().append(operation); |
#endif |