Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz

MozReview-Commit-ID: 8JZuS6O8f8W
This commit is contained in:
Emilio Cobos Álvarez
2017-12-07 19:13:50 +01:00
parent fda174ec22
commit b3956b6171
175 changed files with 1710 additions and 1399 deletions

View File

@@ -155,7 +155,7 @@ HTMLAreaAccessible::NativeName(nsString& aName)
if (!aName.IsEmpty())
return nameFlag;
if (!mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::alt, aName))
if (!mContent->AsElement()->GetAttr(kNameSpaceID_None, nsGkAtoms::alt, aName))
Value(aName);
return eNameOK;
@@ -167,7 +167,8 @@ HTMLAreaAccessible::Description(nsString& aDescription)
aDescription.Truncate();
// Still to do - follow IE's standard here
RefPtr<HTMLAreaElement> area = HTMLAreaElement::FromContentOrNull(mContent);
RefPtr<dom::HTMLAreaElement> area =
dom::HTMLAreaElement::FromContentOrNull(mContent);
if (area)
area->GetShape(aDescription);
}