Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me

This commit is contained in:
Emilio Cobos Álvarez
2017-12-25 12:55:45 +01:00
parent b3956b6171
commit ecd202d763
175 changed files with 1398 additions and 1709 deletions

View File

@@ -2361,7 +2361,7 @@ void HTMLMediaElement::LoadFromSourceChildren()
AddMutationObserverUnlessExists(this);
while (true) {
Element* child = GetNextSource();
nsIContent* child = GetNextSource();
if (!child) {
// Exhausted candidates, wait for more candidates to be appended to
// the media element.
@@ -6769,8 +6769,7 @@ void HTMLMediaElement::NotifyAddedSource()
}
}
Element*
HTMLMediaElement::GetNextSource()
nsIContent* HTMLMediaElement::GetNextSource()
{
mSourceLoadCandidate = nullptr;
@@ -6789,7 +6788,7 @@ HTMLMediaElement::GetNextSource()
// If child is a <source> element, it is the next candidate.
if (child && child->IsHTMLElement(nsGkAtoms::source)) {
mSourceLoadCandidate = child;
return child->AsElement();
return child;
}
}
NS_NOTREACHED("Execution should not reach here!");