зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431964 part 6. Remove nsIDOMMozNamedAttrMap::GetLength. r=mccr8
MozReview-Commit-ID: 9GJmiVSI0bs
This commit is contained in:
Родитель
ac46271e7c
Коммит
0ba39c7972
|
@ -383,14 +383,6 @@ nsDOMAttributeMap::Length() const
|
|||
return mContent->GetAttrCount();
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsDOMAttributeMap::GetLength(uint32_t *aLength)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aLength);
|
||||
*aLength = Length();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Attr*
|
||||
nsDOMAttributeMap::GetNamedItemNS(const nsAString& aNamespaceURI,
|
||||
const nsAString& aLocalName)
|
||||
|
|
|
@ -17,7 +17,6 @@ interface nsIDOMMozNamedAttrMap : nsISupports
|
|||
raises(DOMException);
|
||||
nsIDOMAttr removeNamedItem(in DOMString name)
|
||||
raises(DOMException);
|
||||
readonly attribute unsigned long length;
|
||||
// Introduced in DOM Level 2:
|
||||
nsIDOMAttr setNamedItemNS(in nsIDOMAttr arg)
|
||||
raises(DOMException);
|
||||
|
|
|
@ -674,10 +674,7 @@ inDOMView::AttributeChanged(nsIDocument* aDocument, dom::Element* aElement,
|
|||
return;
|
||||
}
|
||||
// get the number of attributes on this content node
|
||||
nsCOMPtr<nsIDOMMozNamedAttrMap> attrs;
|
||||
el->GetAttributes(getter_AddRefs(attrs));
|
||||
uint32_t attrCount;
|
||||
attrs->GetLength(&attrCount);
|
||||
uint32_t attrCount = aElement->GetAttrCount();
|
||||
|
||||
inDOMViewNode* contentNode = nullptr;
|
||||
int32_t contentRow;
|
||||
|
|
Загрузка…
Ссылка в новой задаче