Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1729)

Unified Diff: Source/core/rendering/HitTestResult.cpp

Issue 530913003: Remove unnecessary codes (associated with save image feature) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/HitTestResult.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/rendering/HitTestResult.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698