Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
This commit is contained in:
@@ -814,7 +814,7 @@ static bool HasSourceChildren(nsIContent* aElement)
|
||||
for (nsIContent* child = aElement->GetFirstChild();
|
||||
child;
|
||||
child = child->GetNextSibling()) {
|
||||
if (child->IsHTML(nsGkAtoms::source))
|
||||
if (child->IsHTMLElement(nsGkAtoms::source))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -3952,7 +3952,7 @@ nsIContent* HTMLMediaElement::GetNextSource()
|
||||
nsIContent* child = GetChildAt(startOffset);
|
||||
|
||||
// If child is a <source> element, it is the next candidate.
|
||||
if (child && child->IsHTML(nsGkAtoms::source)) {
|
||||
if (child && child->IsHTMLElement(nsGkAtoms::source)) {
|
||||
mSourceLoadCandidate = child;
|
||||
return child;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user