icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -592,7 +592,8 @@ Element* nsContentList::NamedItem(const nsAString& aName, bool aDoFlush) {
|
|||
return mNamedItemsCache->Get(name);
|
||||
}
|
||||
|
||||
void nsContentList::GetSupportedNames(nsTArray<nsString>& aNames) {
|
||||
void nsContentList::GetSupportedNames(nsTArray<nsString>& aNames,
|
||||
FilterElementWithName aFilter) {
|
||||
BringSelfUpToDate(true);
|
||||
|
||||
AutoTArray<nsAtom*, 8> atoms;
|
||||
|
|
@ -606,14 +607,14 @@ void nsContentList::GetSupportedNames(nsTArray<nsString>& aNames) {
|
|||
}
|
||||
}
|
||||
|
||||
nsGenericHTMLElement* el = nsGenericHTMLElement::FromNode(content);
|
||||
if (el) {
|
||||
if (nsGenericHTMLElement* el = nsGenericHTMLElement::FromNode(content)) {
|
||||
// XXXbz should we be checking for particular tags here? How
|
||||
// stable is this part of the spec?
|
||||
// Note: nsINode::HasName means the name is exposed on the document,
|
||||
// which is false for options, so we don't check it here.
|
||||
const nsAttrValue* val = el->GetParsedAttr(nsGkAtoms::name);
|
||||
if (val && val->Type() == nsAttrValue::eAtom) {
|
||||
if (val && val->Type() == nsAttrValue::eAtom &&
|
||||
(!aFilter || aFilter(el))) {
|
||||
nsAtom* name = val->GetAtomValue();
|
||||
MOZ_ASSERT(name != nsGkAtoms::_empty, "Empty names don't get atomized");
|
||||
if (!atoms.Contains(name)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue