Bug 1236258 part 3. Remove the unused aNsAware argument of nsDOMAttributeMap::GetAttribute. r=smaug

This commit is contained in:
Boris Zbarsky 2016-01-11 13:01:33 -05:00
parent 7e42a2ebd1
commit b076f167b8
2 changed files with 7 additions and 7 deletions

View File

@ -149,7 +149,7 @@ nsDOMAttributeMap::DropAttribute(int32_t aNamespaceID, nsIAtom* aLocalName)
}
Attr*
nsDOMAttributeMap::GetAttribute(mozilla::dom::NodeInfo* aNodeInfo, bool aNsAware)
nsDOMAttributeMap::GetAttribute(mozilla::dom::NodeInfo* aNodeInfo)
{
NS_ASSERTION(aNodeInfo, "GetAttribute() called with aNodeInfo == nullptr!");
@ -179,7 +179,7 @@ nsDOMAttributeMap::NamedGetter(const nsAString& aAttrName, bool& aFound)
}
aFound = true;
return GetAttribute(ni, false);
return GetAttribute(ni);
}
bool
@ -305,7 +305,7 @@ nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr, ErrorResult& aError)
RefPtr<Attr> attr;
if (oldNi) {
RefPtr<Attr> oldAttr = GetAttribute(oldNi, true);
RefPtr<Attr> oldAttr = GetAttribute(oldNi);
if (oldAttr == &aAttr) {
return oldAttr.forget();
@ -361,7 +361,7 @@ nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr, ErrorResult& aError)
already_AddRefed<Attr>
nsDOMAttributeMap::RemoveNamedItem(NodeInfo* aNodeInfo, ErrorResult& aError)
{
RefPtr<Attr> attribute = GetAttribute(aNodeInfo, true);
RefPtr<Attr> attribute = GetAttribute(aNodeInfo);
// This removes the attribute node from the attribute map.
aError = mContent->UnsetAttr(aNodeInfo->NamespaceID(), aNodeInfo->NameAtom(), true);
return attribute.forget();
@ -411,7 +411,7 @@ nsDOMAttributeMap::IndexedGetter(uint32_t aIndex, bool& aFound)
RefPtr<mozilla::dom::NodeInfo> ni = mContent->NodeInfo()->NodeInfoManager()->
GetNodeInfo(name->LocalName(), name->GetPrefix(), name->NamespaceID(),
nsIDOMNode::ATTRIBUTE_NODE);
return GetAttribute(ni, true);
return GetAttribute(ni);
}
Attr*
@ -462,7 +462,7 @@ nsDOMAttributeMap::GetNamedItemNS(const nsAString& aNamespaceURI,
return nullptr;
}
return GetAttribute(ni, true);
return GetAttribute(ni);
}
already_AddRefed<mozilla::dom::NodeInfo>

View File

@ -178,7 +178,7 @@ private:
GetAttrNodeInfo(const nsAString& aNamespaceURI,
const nsAString& aLocalName);
Attr* GetAttribute(mozilla::dom::NodeInfo* aNodeInfo, bool aNsAware);
Attr* GetAttribute(mozilla::dom::NodeInfo* aNodeInfo);
};
// XXX khuey yes this is crazy. The bindings code needs to see this include,