Changeset 154991 in webkit
- Timestamp:
- Sep 3, 2013, 11:30:08 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r154982 r154991 1 2013-09-03 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r154881. 4 http://trac.webkit.org/changeset/154881 5 https://bugs.webkit.org/show_bug.cgi?id=120643 6 7 Crashes on macworld.com (Requested by kling on #webkit). 8 9 * fast/dom/Element/setAttributeNode-for-existing-attribute-expected.txt: Removed. 10 * fast/dom/Element/setAttributeNode-for-existing-attribute.html: Removed. 11 1 12 2013-09-03 Mihnea Ovidenie <mihnea@adobe.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r154988 r154991 1 2013-09-03 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r154881. 4 http://trac.webkit.org/changeset/154881 5 https://bugs.webkit.org/show_bug.cgi?id=120643 6 7 Crashes on macworld.com (Requested by kling on #webkit). 8 9 * dom/Element.cpp: 10 (WebCore::Element::setAttributeInternal): 11 1 12 2013-09-03 Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk> 2 13 -
trunk/Source/WebCore/dom/Element.cpp
r154957 r154991 964 964 } 965 965 966 bool valueChanged = newValue != attributeAt(index).value();967 const QualifiedName& attributeName = (!inSynchronizationOfLazyAttribute || valueChanged) ? attributeAt(index).name() : name;968 969 966 if (!inSynchronizationOfLazyAttribute) 970 willModifyAttribute( attributeName, attributeAt(index).value(), newValue);971 972 if ( valueChanged) {967 willModifyAttribute(name, attributeAt(index).value(), newValue); 968 969 if (newValue != attributeAt(index).value()) { 973 970 // If there is an Attr node hooked to this attribute, the Attr::setValue() call below 974 971 // will write into the ElementData. 975 972 // FIXME: Refactor this so it makes some sense. 976 if (RefPtr<Attr> attrNode = inSynchronizationOfLazyAttribute ? 0 : attrIfExists( attributeName))973 if (RefPtr<Attr> attrNode = inSynchronizationOfLazyAttribute ? 0 : attrIfExists(name)) 977 974 attrNode->setValue(newValue); 978 975 else … … 981 978 982 979 if (!inSynchronizationOfLazyAttribute) 983 didModifyAttribute( attributeName, newValue);980 didModifyAttribute(name, newValue); 984 981 } 985 982
Note:
See TracChangeset
for help on using the changeset viewer.