Skip to content
  • commit-queue@webkit.org's avatar
    NameNodeListCache should be invalidated when name attribute changes/modified. · caca49d4
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=70810
    
    Patch by Arko Saha <arko@motorola.com> on 2011-12-09
    Reviewed by Ryosuke Niwa.
    
    Source/WebCore:
    
    Test: fast/dom/getelementsbyname-invalidation-cache.html
    
    * html/HTMLAnchorElement.cpp:
    (WebCore::HTMLAnchorElement::parseMappedAttribute):
    * html/HTMLAppletElement.cpp:
    (WebCore::HTMLAppletElement::parseMappedAttribute):
    * html/HTMLElement.cpp:
    (WebCore::HTMLElement::parseMappedAttribute):
    * html/HTMLEmbedElement.cpp:
    (WebCore::HTMLEmbedElement::parseMappedAttribute):
    * html/HTMLFormElement.cpp:
    (WebCore::HTMLFormElement::parseMappedAttribute):
    * html/HTMLFrameElementBase.cpp:
    (WebCore::HTMLFrameElementBase::parseMappedAttribute):
    * html/HTMLIFrameElement.cpp:
    (WebCore::HTMLIFrameElement::parseMappedAttribute):
    * html/HTMLImageElement.cpp:
    (WebCore::HTMLImageElement::parseMappedAttribute):
    * html/HTMLMapElement.cpp:
    (WebCore::HTMLMapElement::parseMappedAttribute):
    * html/HTMLMetaElement.cpp:
    (WebCore::HTMLMetaElement::parseMappedAttribute):
    * html/HTMLObjectElement.cpp:
    (WebCore::HTMLObjectElement::parseMappedAttribute):
    * html/HTMLParamElement.cpp:
    (WebCore::HTMLParamElement::parseMappedAttribute):
    
    LayoutTests:
    
    * fast/dom/getelementsbyname-invalidation-cache-expected.txt: Added.
    * fast/dom/getelementsbyname-invalidation-cache.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    caca49d4