Changeset 102511 in webkit
- Timestamp:
- Dec 9, 2011 6:29:51 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r102510 r102511 1 2011-12-09 Arko Saha <arko@motorola.com> 2 3 NameNodeListCache should be invalidated when name attribute changes/modified. 4 https://bugs.webkit.org/show_bug.cgi?id=70810 5 6 Reviewed by Ryosuke Niwa. 7 8 * fast/dom/getelementsbyname-invalidation-cache-expected.txt: Added. 9 * fast/dom/getelementsbyname-invalidation-cache.html: Added. 10 1 11 2011-12-09 David Levin <levin@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r102503 r102511 1 2011-12-09 Arko Saha <arko@motorola.com> 2 3 NameNodeListCache should be invalidated when name attribute changes/modified. 4 https://bugs.webkit.org/show_bug.cgi?id=70810 5 6 Reviewed by Ryosuke Niwa. 7 8 Test: fast/dom/getelementsbyname-invalidation-cache.html 9 10 * html/HTMLAnchorElement.cpp: 11 (WebCore::HTMLAnchorElement::parseMappedAttribute): 12 * html/HTMLAppletElement.cpp: 13 (WebCore::HTMLAppletElement::parseMappedAttribute): 14 * html/HTMLElement.cpp: 15 (WebCore::HTMLElement::parseMappedAttribute): 16 * html/HTMLEmbedElement.cpp: 17 (WebCore::HTMLEmbedElement::parseMappedAttribute): 18 * html/HTMLFormElement.cpp: 19 (WebCore::HTMLFormElement::parseMappedAttribute): 20 * html/HTMLFrameElementBase.cpp: 21 (WebCore::HTMLFrameElementBase::parseMappedAttribute): 22 * html/HTMLIFrameElement.cpp: 23 (WebCore::HTMLIFrameElement::parseMappedAttribute): 24 * html/HTMLImageElement.cpp: 25 (WebCore::HTMLImageElement::parseMappedAttribute): 26 * html/HTMLMapElement.cpp: 27 (WebCore::HTMLMapElement::parseMappedAttribute): 28 * html/HTMLMetaElement.cpp: 29 (WebCore::HTMLMetaElement::parseMappedAttribute): 30 * html/HTMLObjectElement.cpp: 31 (WebCore::HTMLObjectElement::parseMappedAttribute): 32 * html/HTMLParamElement.cpp: 33 (WebCore::HTMLParamElement::parseMappedAttribute): 34 1 35 2011-12-09 Anders Carlsson <andersca@apple.com> 2 36 -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r100895 r102511 222 222 } 223 223 } 224 } else if (attr->name() == nameAttr || 225 attr->name() == titleAttr) { 224 } else if (attr->name() == nameAttr) { 225 invalidateNodeListsCacheAfterAttributeChanged(); 226 } else if (attr->name() == titleAttr) { 226 227 // Do nothing. 227 228 } else if (attr->name() == relAttr) -
trunk/Source/WebCore/html/HTMLAppletElement.cpp
r99347 r102511 65 65 } 66 66 m_name = newName; 67 invalidateNodeListsCacheAfterAttributeChanged(); 67 68 } else if (isIdAttributeName(attr->name())) { 68 69 const AtomicString& newId = attr->value(); -
trunk/Source/WebCore/html/HTMLElement.cpp
r101268 r102511 211 211 } else if (equalIgnoringCase(value, "false")) 212 212 addCSSProperty(attr, CSSPropertyWebkitUserDrag, CSSValueNone); 213 } else if (attr->name() == nameAttr) { 214 invalidateNodeListsCacheAfterAttributeChanged(); 213 215 #if ENABLE(MICRODATA) 214 216 } else if (attr->name() == itempropAttr) { -
trunk/Source/WebCore/html/HTMLEmbedElement.cpp
r99742 r102511 119 119 } 120 120 m_name = value; 121 invalidateNodeListsCacheAfterAttributeChanged(); 121 122 } else 122 123 HTMLPlugInImageElement::parseMappedAttribute(attr); -
trunk/Source/WebCore/html/HTMLFormElement.cpp
r99742 r102511 393 393 } 394 394 m_name = newName; 395 invalidateNodeListsCacheAfterAttributeChanged(); 395 396 } else 396 397 HTMLElement::parseMappedAttribute(attr); -
trunk/Source/WebCore/html/HTMLFrameElementBase.cpp
r99742 r102511 142 142 } else if (attr->name() == nameAttr) { 143 143 m_frameName = attr->value(); 144 invalidateNodeListsCacheAfterAttributeChanged(); 144 145 // FIXME: If we are already attached, this doesn't actually change the frame's name. 145 146 // FIXME: If we are already attached, this doesn't check for frame name -
trunk/Source/WebCore/html/HTMLIFrameElement.cpp
r99742 r102511 85 85 } 86 86 m_name = newName; 87 invalidateNodeListsCacheAfterAttributeChanged(); 87 88 } else if (attr->name() == frameborderAttr) { 88 89 // Frame border doesn't really match the HTML4 spec definition for iframes. It simply adds -
trunk/Source/WebCore/html/HTMLImageElement.cpp
r99742 r102511 142 142 } 143 143 m_name = newName; 144 invalidateNodeListsCacheAfterAttributeChanged(); 144 145 } else if (isIdAttributeName(attr->name())) { 145 146 const AtomicString& newId = attr->value(); -
trunk/Source/WebCore/html/HTMLMapElement.cpp
r94427 r102511 120 120 if (inDocument()) 121 121 treeScope()->addImageMap(this); 122 123 if (attrName == nameAttr) 124 invalidateNodeListsCacheAfterAttributeChanged(); 122 125 return; 123 126 } -
trunk/Source/WebCore/html/HTMLMetaElement.cpp
r100895 r102511 50 50 process(); 51 51 else if (attr->name() == nameAttr) { 52 // Do nothing.52 invalidateNodeListsCacheAfterAttributeChanged(); 53 53 } else 54 54 HTMLElement::parseMappedAttribute(attr); -
trunk/Source/WebCore/html/HTMLObjectElement.cpp
r99742 r102511 123 123 } 124 124 m_name = newName; 125 invalidateNodeListsCacheAfterAttributeChanged(); 125 126 } else if (attr->name() == borderAttr) 126 127 applyBorderAttribute(attr); -
trunk/Source/WebCore/html/HTMLParamElement.cpp
r99742 r102511 58 58 } else if (attr->name() == nameAttr) { 59 59 m_name = attr->value(); 60 invalidateNodeListsCacheAfterAttributeChanged(); 60 61 } else if (attr->name() == valueAttr) { 61 62 m_value = attr->value();
Note: See TracChangeset
for help on using the changeset viewer.