Changeset 89609 in webkit


Ignore:
Timestamp:
Jun 23, 2011 1:24:55 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r89591 and r89593.
http://trac.webkit.org/changeset/89591
http://trac.webkit.org/changeset/89593
https://bugs.webkit.org/show_bug.cgi?id=63279

Caused test crashes in SL and Chromium (Requested by dimich_
on #webkit).

  • platform/mac/accessibility/aria-liveregion-without-element-access-expected.txt: Removed.
  • platform/mac/accessibility/aria-liveregion-without-element-access.html: Removed.

2011-06-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r89591 and r89593.
http://trac.webkit.org/changeset/89591
http://trac.webkit.org/changeset/89593
https://bugs.webkit.org/show_bug.cgi?id=63279

Caused test crashes in SL and Chromium (Requested by dimich_
on #webkit).

  • accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::AXObjectCache): (WebCore::AXObjectCache::remove): (WebCore::AXObjectCache::childrenChanged):
  • accessibility/AXObjectCache.h:
  • accessibility/AccessibilityMenuList.cpp: (WebCore::AccessibilityMenuList::childrenChanged):
  • accessibility/AccessibilityMenuList.h:
  • accessibility/AccessibilityMenuListPopup.cpp: (WebCore::AccessibilityMenuListPopup::childrenChanged):
  • accessibility/AccessibilityMenuListPopup.h:
  • accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::childrenChanged):
  • accessibility/AccessibilityRenderObject.cpp: (WebCore::startOfContinuations): (WebCore::AccessibilityRenderObject::updateAccessibilityRole): (WebCore::AccessibilityRenderObject::childrenChanged):
  • accessibility/AccessibilityRenderObject.h:
Location:
trunk
Files:
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r89608 r89609  
     12011-06-23  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r89591 and r89593.
     4        http://trac.webkit.org/changeset/89591
     5        http://trac.webkit.org/changeset/89593
     6        https://bugs.webkit.org/show_bug.cgi?id=63279
     7
     8        Caused test crashes in SL and Chromium (Requested by dimich_
     9        on #webkit).
     10
     11        * platform/mac/accessibility/aria-liveregion-without-element-access-expected.txt: Removed.
     12        * platform/mac/accessibility/aria-liveregion-without-element-access.html: Removed.
     13
    1142011-06-23  Eric Carlson  <eric.carlson@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r89606 r89609  
     12011-06-23  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r89591 and r89593.
     4        http://trac.webkit.org/changeset/89591
     5        http://trac.webkit.org/changeset/89593
     6        https://bugs.webkit.org/show_bug.cgi?id=63279
     7
     8        Caused test crashes in SL and Chromium (Requested by dimich_
     9        on #webkit).
     10
     11        * accessibility/AXObjectCache.cpp:
     12        (WebCore::AXObjectCache::AXObjectCache):
     13        (WebCore::AXObjectCache::remove):
     14        (WebCore::AXObjectCache::childrenChanged):
     15        * accessibility/AXObjectCache.h:
     16        * accessibility/AccessibilityMenuList.cpp:
     17        (WebCore::AccessibilityMenuList::childrenChanged):
     18        * accessibility/AccessibilityMenuList.h:
     19        * accessibility/AccessibilityMenuListPopup.cpp:
     20        (WebCore::AccessibilityMenuListPopup::childrenChanged):
     21        * accessibility/AccessibilityMenuListPopup.h:
     22        * accessibility/AccessibilityObject.h:
     23        (WebCore::AccessibilityObject::childrenChanged):
     24        * accessibility/AccessibilityRenderObject.cpp:
     25        (WebCore::startOfContinuations):
     26        (WebCore::AccessibilityRenderObject::updateAccessibilityRole):
     27        (WebCore::AccessibilityRenderObject::childrenChanged):
     28        * accessibility/AccessibilityRenderObject.h:
     29
    1302011-06-23  Andreas Kling  <kling@webkit.org>
    231
  • trunk/Source/WebCore/accessibility/AXObjectCache.cpp

    r89591 r89609  
    8383AXObjectCache::AXObjectCache(const Document* doc)
    8484    : m_notificationPostTimer(this, &AXObjectCache::notificationPostTimerFired)
    85     , m_childrenUpdateTimer(this, &AXObjectCache::childrenUpdateTimerFired)
    8685{
    8786    m_document = const_cast<Document*>(doc);
     
    369368    remove(axID);
    370369    m_renderObjectMapping.remove(renderer);
    371     m_childrenToUpdate.remove(renderer);
    372370}
    373371
     
    439437}
    440438#endif
    441    
    442 void AXObjectCache::childrenUpdateTimerFired(Timer<AXObjectCache>*)
    443 {
    444     if (m_childrenToUpdate.isEmpty())
    445         return;
    446    
    447     // Make a local copy in case childrenChanged() alters m_childrenToUpdate
    448     // (which might happen if the client asks to update the render tree).
    449     HashSet<RenderObject*> updateChildren;
    450     m_childrenToUpdate.swap(updateChildren);
    451     m_childrenToUpdate.clear();
    452    
    453     HashSet<RenderObject*>::iterator end = updateChildren.end();
    454     for (HashSet<RenderObject*>::iterator it = updateChildren.begin(); it != end; ++it) {
    455         if (AccessibilityObject* object = getOrCreate(*it))
    456             object->childrenChanged(AccessibilityObject::CreateParentObjects);
    457     }   
    458 }
    459439
    460440void AXObjectCache::childrenChanged(RenderObject* renderer)
     
    464444 
    465445    AXID axID = m_renderObjectMapping.get(renderer);
    466     if (!axID) {
    467         // If there's no AX object, creating one right now can be dangerous (because we're in the middle of adding/destroying a tree).
    468         // Instead the update should be postponed and updated later.
    469         m_childrenToUpdate.add(renderer);
    470         if (!m_childrenUpdateTimer.isActive())
    471             m_childrenUpdateTimer.startOneShot(0);
    472     } else {
    473         if (AccessibilityObject* object = m_objects.get(axID).get())
    474             object->childrenChanged(AccessibilityObject::DoNotCreateParentObjects);
    475     }
     446    if (!axID)
     447        return;
     448   
     449    AccessibilityObject* obj = m_objects.get(axID).get();
     450    if (obj)
     451        obj->childrenChanged();
    476452}
    477453   
  • trunk/Source/WebCore/accessibility/AXObjectCache.h

    r89591 r89609  
    167167    Vector<pair<RefPtr<AccessibilityObject>, AXNotification> > m_notificationsToPost;
    168168    void notificationPostTimerFired(Timer<AXObjectCache>*);
    169 
    170     Timer<AXObjectCache> m_childrenUpdateTimer;
    171     HashSet<RenderObject*> m_childrenToUpdate;
    172     void childrenUpdateTimerFired(Timer<AXObjectCache>*);
    173 
     169   
    174170    static AccessibilityObject* focusedImageMapUIElement(HTMLAreaElement*);
    175171   
  • trunk/Source/WebCore/accessibility/AccessibilityMenuList.cpp

    r89591 r89609  
    6969}
    7070
    71 void AccessibilityMenuList::childrenChanged(ChildrenChangeOptions options)
     71void AccessibilityMenuList::childrenChanged()
    7272{
    7373    if (m_children.isEmpty())
     
    7575
    7676    ASSERT(m_children.size() == 1);
    77     m_children[0]->childrenChanged(options);
     77    m_children[0]->childrenChanged();
    7878}
    7979
  • trunk/Source/WebCore/accessibility/AccessibilityMenuList.h

    r89591 r89609  
    5252
    5353    virtual void addChildren();
    54     virtual void childrenChanged(ChildrenChangeOptions);
     54    virtual void childrenChanged();
    5555};
    5656
  • trunk/Source/WebCore/accessibility/AccessibilityMenuListPopup.cpp

    r89591 r89609  
    106106}
    107107
    108 void AccessibilityMenuListPopup::childrenChanged(ChildrenChangeOptions)
     108void AccessibilityMenuListPopup::childrenChanged()
    109109{
    110110    for (size_t i = m_children.size(); i > 0 ; --i) {
  • trunk/Source/WebCore/accessibility/AccessibilityMenuListPopup.h

    r89591 r89609  
    5757    virtual bool press() const;
    5858    virtual void addChildren();
    59     virtual void childrenChanged(ChildrenChangeOptions);
     59    virtual void childrenChanged();
    6060
    6161    AccessibilityMenuListOption* menuListOptionAccessibilityObject(HTMLElement*) const;
  • trunk/Source/WebCore/accessibility/AccessibilityObject.h

    r89591 r89609  
    465465    virtual void decrement() { }
    466466
    467     enum ChildrenChangeOptions { DoNotCreateParentObjects, CreateParentObjects };
    468     virtual void childrenChanged(ChildrenChangeOptions) { }
     467    virtual void childrenChanged() { }
    469468    virtual void contentChanged() { }
    470469    virtual const AccessibilityChildrenVector& children() { return m_children; }
  • trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp

    r89591 r89609  
    223223static inline RenderInline* startOfContinuations(RenderObject* r)
    224224{
    225     if (r->isInlineElementContinuation() && r->node()->renderer() && r->isRenderInline())
     225    if (r->isInlineElementContinuation())
    226226        return toRenderInline(r->node()->renderer());
    227227
     
    30313031    // The AX hierarchy only needs to be updated if the ignored status of an element has changed.
    30323032    if (ignoredStatus != accessibilityIsIgnored())
    3033         childrenChanged(DoNotCreateParentObjects);
     3033        childrenChanged();
    30343034}
    30353035   
     
    33083308}
    33093309   
    3310 void AccessibilityRenderObject::childrenChanged(ChildrenChangeOptions options)
     3310void AccessibilityRenderObject::childrenChanged()
    33113311{
    33123312    // This method is meant as a quick way of marking a portion of the accessibility tree dirty.
     
    33203320    // If AX elements are created now, they could interrogate the render tree while it's in a funky state.
    33213321    // At the same time, process ARIA live region changes.
    3322     for (AccessibilityObject* parent = this; parent; parent = (options == CreateParentObjects) ? parent->parentObject() : parent->parentObjectIfExists()) {
     3322    for (AccessibilityObject* parent = this; parent; parent = parent->parentObjectIfExists()) {
    33233323        if (!parent->isAccessibilityRenderObject())
    33243324            continue;
  • trunk/Source/WebCore/accessibility/AccessibilityRenderObject.h

    r89591 r89609  
    208208   
    209209    virtual void detach();
    210     virtual void childrenChanged(ChildrenChangeOptions);
     210    virtual void childrenChanged();
    211211    virtual void contentChanged();
    212212    virtual void addChildren();
Note: See TracChangeset for help on using the changeset viewer.