Index: Source/core/rendering/HitTestResult.cpp |
diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp |
index 9b2108525740f9d8d961cd611a7ccc1fc3a503fc..921448cb147c49778d173584eb3f12e6a5196feb 100644 |
--- a/Source/core/rendering/HitTestResult.cpp |
+++ b/Source/core/rendering/HitTestResult.cpp |
@@ -284,26 +284,15 @@ IntRect HitTestResult::imageRect() const |
KURL HitTestResult::absoluteImageURL() const |
{ |
- return absoluteImageURLInternal(false); |
-} |
- |
-KURL HitTestResult::absoluteImageURLIncludingCanvasDataURL() const |
-{ |
- return absoluteImageURLInternal(true); |
-} |
- |
-KURL HitTestResult::absoluteImageURLInternal(bool allowCanvas) const |
-{ |
if (!m_innerNonSharedNode) |
return KURL(); |
RenderObject* renderer = m_innerNonSharedNode->renderer(); |
- if (!(renderer && (renderer->isImage() || renderer->isCanvas()))) |
+ if (!(renderer && renderer->isImage())) |
return KURL(); |
AtomicString urlString; |
- if ((allowCanvas && isHTMLCanvasElement(*m_innerNonSharedNode)) |
- || isHTMLEmbedElement(*m_innerNonSharedNode) |
+ if (isHTMLEmbedElement(*m_innerNonSharedNode) |
|| isHTMLImageElement(*m_innerNonSharedNode) |
|| isHTMLInputElement(*m_innerNonSharedNode) |
|| isHTMLObjectElement(*m_innerNonSharedNode) |