Changeset 154991 in webkit


Ignore:
Timestamp:
Sep 3, 2013, 11:30:08 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r154881.
http://trac.webkit.org/changeset/154881
https://bugs.webkit.org/show_bug.cgi?id=120643

Crashes on macworld.com (Requested by kling on #webkit).

Source/WebCore:

  • dom/Element.cpp:

(WebCore::Element::setAttributeInternal):

LayoutTests:

  • fast/dom/Element/setAttributeNode-for-existing-attribute-expected.txt: Removed.
  • fast/dom/Element/setAttributeNode-for-existing-attribute.html: Removed.
Location:
trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r154982 r154991  
     12013-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
    1122013-09-03  Mihnea Ovidenie  <mihnea@adobe.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r154988 r154991  
     12013-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
    1122013-09-03  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
    213
  • trunk/Source/WebCore/dom/Element.cpp

    r154957 r154991  
    964964    }
    965965
    966     bool valueChanged = newValue != attributeAt(index).value();
    967     const QualifiedName& attributeName = (!inSynchronizationOfLazyAttribute || valueChanged) ? attributeAt(index).name() : name;
    968 
    969966    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()) {
    973970        // If there is an Attr node hooked to this attribute, the Attr::setValue() call below
    974971        // will write into the ElementData.
    975972        // 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))
    977974            attrNode->setValue(newValue);
    978975        else
     
    981978
    982979    if (!inSynchronizationOfLazyAttribute)
    983         didModifyAttribute(attributeName, newValue);
     980        didModifyAttribute(name, newValue);
    984981}
    985982
Note: See TracChangeset for help on using the changeset viewer.