Changeset 79810 in webkit


Ignore:
Timestamp:
Feb 26, 2011 2:40:36 PM (13 years ago)
Author:
jschuh@chromium.org
Message:

2011-02-26 Justin Schuh <jschuh@chromium.org>

Reviewed by Darin Adler.

Delay firing of mutation events while setting attribute values
https://bugs.webkit.org/show_bug.cgi?id=55199

  • fast/dom/attribute-change-on-mutate-expected.txt: Added.
  • fast/dom/attribute-change-on-mutate.html: Added.

2011-02-26 Justin Schuh <jschuh@chromium.org>

Reviewed by Darin Adler.

Delay firing of mutation events while setting attribute values
https://bugs.webkit.org/show_bug.cgi?id=55199

Test: fast/dom/attribute-change-on-mutate.html

  • dom/Attr.cpp: (WebCore::Attr::setValue):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r79808 r79810  
     12011-02-26  Justin Schuh  <jschuh@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Delay firing of mutation events while setting attribute values
     6        https://bugs.webkit.org/show_bug.cgi?id=55199
     7
     8        * fast/dom/attribute-change-on-mutate-expected.txt: Added.
     9        * fast/dom/attribute-change-on-mutate.html: Added.
     10
    1112011-02-25  Abhishek Arya  <inferno@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r79809 r79810  
     12011-02-26  Justin Schuh  <jschuh@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Delay firing of mutation events while setting attribute values
     6        https://bugs.webkit.org/show_bug.cgi?id=55199
     7
     8        Test: fast/dom/attribute-change-on-mutate.html
     9
     10        * dom/Attr.cpp:
     11        (WebCore::Attr::setValue):
     12
    1132011-02-26  Yi Shen  <yi.4.shen@nokia.com>
    214
  • trunk/Source/WebCore/dom/Attr.cpp

    r68096 r79810  
    2727#include "ExceptionCode.h"
    2828#include "HTMLNames.h"
     29#include "ScopedEventQueue.h"
    2930#include "Text.h"
    3031#include "XMLNSNames.h"
     
    120121void Attr::setValue(const AtomicString& value)
    121122{
     123    EventQueueScope scope;
    122124    m_ignoreChildrenChanged++;
    123125    removeChildren();
Note: See TracChangeset for help on using the changeset viewer.