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

Unified Diff: sky/engine/core/html/HTMLSourceElement.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/html/HTMLMediaSource.cpp ('k') | sky/engine/core/html/MediaError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLSourceElement.cpp
diff --git a/sky/engine/core/html/HTMLSourceElement.cpp b/sky/engine/core/html/HTMLSourceElement.cpp
index ed6ee7574803c0215be43f8ad868b28d38e10cee..35e1816dce40bec72c73207bbebfb3f71bafa604 100644
--- a/sky/engine/core/html/HTMLSourceElement.cpp
+++ b/sky/engine/core/html/HTMLSourceElement.cpp
@@ -33,7 +33,6 @@
#include "core/dom/Document.h"
#include "core/events/Event.h"
#include "core/events/EventSender.h"
-#include "core/html/HTMLMediaElement.h"
#include "core/html/HTMLPictureElement.h"
#include "platform/Logging.h"
@@ -86,8 +85,6 @@ Node::InsertionNotificationRequest HTMLSourceElement::insertedInto(ContainerNode
{
HTMLElement::insertedInto(insertionPoint);
Element* parent = parentElement();
- if (isHTMLMediaElement(parent))
- toHTMLMediaElement(parent)->sourceWasAdded(this);
if (isHTMLPictureElement(parent))
toHTMLPictureElement(parent)->sourceOrMediaChanged();
return InsertionDone;
@@ -98,8 +95,6 @@ void HTMLSourceElement::removedFrom(ContainerNode* removalRoot)
Element* parent = parentElement();
if (!parent && removalRoot->isElementNode())
parent = toElement(removalRoot);
- if (isHTMLMediaElement(parent))
- toHTMLMediaElement(parent)->sourceWasRemoved(this);
if (isHTMLPictureElement(parent))
toHTMLPictureElement(parent)->sourceOrMediaChanged();
HTMLElement::removedFrom(removalRoot);
« no previous file with comments | « sky/engine/core/html/HTMLMediaSource.cpp ('k') | sky/engine/core/html/MediaError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698