diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-18 13:39:37 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-12 10:01:04 +0100 |
commit | ea44e60b7ed5f674b6de65fad669ac43a45438cc (patch) | |
tree | 38b4e34c1859e6881c428f962cf47a1cc52cbd5b /dom/base/Element.cpp | |
parent | 6be9e507077bfdd2b8c82c203cf70f010ecce086 (diff) | |
download | UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar.gz UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar.lz UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar.xz UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.zip |
HTML - implement the labels attribute (follow up)
Diffstat (limited to 'dom/base/Element.cpp')
-rw-r--r-- | dom/base/Element.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 886acc670..9ced64c0d 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -165,10 +165,9 @@ nsIContent::DoGetID() const } const nsAttrValue* -nsIContent::DoGetClasses() const +Element::DoGetClasses() const { MOZ_ASSERT(HasFlag(NODE_MAY_HAVE_CLASS), "Unexpected call"); - MOZ_ASSERT(IsElement(), "Only elements can have classes"); if (IsSVGElement()) { const nsAttrValue* animClass = @@ -178,7 +177,7 @@ nsIContent::DoGetClasses() const } } - return AsElement()->GetParsedAttr(nsGkAtoms::_class); + return GetParsedAttr(nsGkAtoms::_class); } NS_IMETHODIMP |