Index: Source/core/svg/SVGURIReference.h |
diff --git a/Source/core/svg/SVGURIReference.h b/Source/core/svg/SVGURIReference.h |
index de25107110a0e72aa0378db7b20ec7afe4dda15b..e6901e66bcd0955637682f2306191f25ad3bbf37 100644 |
--- a/Source/core/svg/SVGURIReference.h |
+++ b/Source/core/svg/SVGURIReference.h |
@@ -36,19 +36,18 @@ public: |
bool isKnownAttribute(const QualifiedName&); |
void addSupportedAttributes(HashSet<QualifiedName>&); |
- static String fragmentIdentifierFromIRIString(const String&, Document*); |
- static Element* targetElementFromIRIString(const String&, Document*, String* = 0, Document* = 0); |
+ static String fragmentIdentifierFromIRIString(const String&, const Document&); |
+ static Element* targetElementFromIRIString(const String&, const Document&, String* = 0, Document* = 0); |
- static inline bool isExternalURIReference(const String& uri, Document* document) |
+ static inline bool isExternalURIReference(const String& uri, const Document& document) |
{ |
// Fragment-only URIs are always internal |
if (uri.startsWith('#')) |
return false; |
// If the URI matches our documents URL, we're dealing with a local reference. |
- ASSERT(document); |
- KURL url = document->completeURL(uri); |
- return !equalIgnoringFragmentIdentifier(url, document->url()); |
+ KURL url = document.completeURL(uri); |
+ return !equalIgnoringFragmentIdentifier(url, document.url()); |
} |
protected: |