Index: Source/core/rendering/svg/SVGResources.cpp |
diff --git a/Source/core/rendering/svg/SVGResources.cpp b/Source/core/rendering/svg/SVGResources.cpp |
index 22059f2c7bf5de597baa324c4c8ccb86d82e0c14..2ffeee1c35fb9610b518c9697d7f12ada807f7bd 100644 |
--- a/Source/core/rendering/svg/SVGResources.cpp |
+++ b/Source/core/rendering/svg/SVGResources.cpp |
@@ -186,10 +186,10 @@ static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(Document& |
return container; |
} |
-static inline void registerPendingResource(SVGDocumentExtensions* extensions, const AtomicString& id, SVGElement* element) |
+static inline void registerPendingResource(SVGDocumentExtensions& extensions, const AtomicString& id, SVGElement* element) |
{ |
ASSERT(element); |
- extensions->addPendingResource(id, element); |
+ extensions.addPendingResource(id, element); |
} |
bool SVGResources::hasResourceData() const |
@@ -223,8 +223,7 @@ PassOwnPtr<SVGResources> SVGResources::buildResources(const RenderObject* object |
Document& document = object->document(); |
- SVGDocumentExtensions* extensions = document.accessSVGExtensions(); |
- ASSERT(extensions); |
+ SVGDocumentExtensions& extensions = document.accessSVGExtensions(); |
const AtomicString& tagName = element->localName(); |
if (tagName.isNull()) |