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

Unified Diff: sky/engine/core/rendering/HitTestResult.cpp

Issue 689373003: Remove most of the media stack. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/rendering/HitTestResult.h ('k') | sky/engine/core/rendering/RenderMedia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/HitTestResult.cpp
diff --git a/sky/engine/core/rendering/HitTestResult.cpp b/sky/engine/core/rendering/HitTestResult.cpp
index 9537660c2f74fcd536a14ec4d12f3c6c00e9274e..ddfa5a80685c5392eacd615dbc040eaea24cdcf9 100644
--- a/sky/engine/core/rendering/HitTestResult.cpp
+++ b/sky/engine/core/rendering/HitTestResult.cpp
@@ -31,7 +31,6 @@
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLAnchorElement.h"
#include "core/html/HTMLImageElement.h"
-#include "core/html/HTMLMediaElement.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "core/rendering/RenderImage.h"
#include "platform/scroll/Scrollbar.h"
@@ -269,26 +268,6 @@ KURL HitTestResult::absoluteImageURLInternal(bool allowCanvas) const
return m_innerNonSharedNode->document().completeURL(stripLeadingAndTrailingHTMLSpaces(urlString));
}
-KURL HitTestResult::absoluteMediaURL() const
-{
- if (HTMLMediaElement* mediaElt = mediaElement())
- return mediaElt->currentSrc();
- return KURL();
-}
-
-HTMLMediaElement* HitTestResult::mediaElement() const
-{
- if (!m_innerNonSharedNode)
- return 0;
-
- if (!(m_innerNonSharedNode->renderer() && m_innerNonSharedNode->renderer()->isMedia()))
- return 0;
-
- if (isHTMLMediaElement(*m_innerNonSharedNode))
- return toHTMLMediaElement(m_innerNonSharedNode);
- return 0;
-}
-
KURL HitTestResult::absoluteLinkURL() const
{
if (!m_innerURLElement)
« no previous file with comments | « sky/engine/core/rendering/HitTestResult.h ('k') | sky/engine/core/rendering/RenderMedia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698