Bug 1454238: Remove nsINode::eMEDIA. r=bz

MozReview-Commit-ID: LPutL6PlrgG
This commit is contained in:
Emilio Cobos Álvarez
2018-04-15 12:29:46 +02:00
parent 2dbe99a0b4
commit a22d605d3a
5 changed files with 5 additions and 14 deletions

View File

@@ -8,6 +8,7 @@
#include "mozilla/dom/HTMLSourceElementBinding.h"
#include "mozilla/dom/HTMLImageElement.h"
#include "mozilla/dom/HTMLMediaElement.h"
#include "mozilla/dom/ResponsiveImageSelector.h"
#include "mozilla/dom/MediaList.h"
#include "mozilla/dom/MediaSource.h"
@@ -152,8 +153,7 @@ HTMLSourceElement::BindToTree(nsIDocument *aDocument,
aCompileEventHandlers);
NS_ENSURE_SUCCESS(rv, rv);
if (aParent && aParent->IsNodeOfType(nsINode::eMEDIA)) {
HTMLMediaElement* media = static_cast<HTMLMediaElement*>(aParent);
if (auto* media = HTMLMediaElement::FromNodeOrNull(aParent)) {
media->NotifyAddedSource();
}