| Index: third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.cpp b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| index 194ae8edd4119b95a938aabbbbe35ac2f52ceda0..c42cae0493a52ab83c46423723777e980dc5974d 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| @@ -141,13 +141,11 @@ static NodeListInvalidationType invalidationTypeExcludingIdAndNameAttributes(Col
|
| // FIXME: We can do better some day.
|
| return InvalidateOnAnyAttrChange;
|
| case DocAnchors:
|
| - return InvalidateOnNameAttrChange;
|
| - case DocLinks:
|
| - return InvalidateOnHRefAttrChange;
|
| - case WindowNamedItems:
|
| - return InvalidateOnIdNameAttrChange;
|
| case DocumentNamedItems:
|
| + case WindowNamedItems:
|
| return InvalidateOnIdNameAttrChange;
|
| + case DocLinks:
|
| + return InvalidateOnHRefAttrChange;
|
| case FormControls:
|
| return InvalidateForFormControls;
|
| case ClassCollectionType:
|
| @@ -233,7 +231,7 @@ static inline bool isMatchingHTMLElement(const HTMLCollection& htmlCollection, c
|
| case DocLinks:
|
| return (element.hasTagName(aTag) || element.hasTagName(areaTag)) && element.fastHasAttribute(hrefAttr);
|
| case DocAnchors:
|
| - return element.hasTagName(aTag) && element.fastHasAttribute(nameAttr);
|
| + return element.hasTagName(aTag) && (element.fastHasAttribute(nameAttr) || element.fastHasAttribute(idAttr));
|
| case ClassCollectionType:
|
| case TagCollectionType:
|
| case HTMLTagCollectionType:
|
|
|