Changeset 96127 in webkit


Ignore:
Timestamp:
Sep 27, 2011 10:29:46 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

AXObjectCache cleared unnecessarily when non-top Document is detached.
https://bugs.webkit.org/show_bug.cgi?id=68636

Patch by Dominic Mazzoni <dmazzoni@google.com> on 2011-09-27
Reviewed by Chris Fleizach.

Source/WebCore:

Test: accessibility/deleting-iframe-destroys-axcache.html

  • dom/Document.cpp:

(WebCore::Document::attach):
(WebCore::Document::detach):

LayoutTests:

  • accessibility/deleting-iframe-destroys-axcache.html: Added.
  • platform/mac/accessibility/deleting-iframe-destroys-axcache-expected.txt: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r96125 r96127  
     12011-09-27  Dominic Mazzoni  <dmazzoni@google.com>
     2
     3        AXObjectCache cleared unnecessarily when non-top Document is detached.
     4        https://bugs.webkit.org/show_bug.cgi?id=68636
     5
     6        Reviewed by Chris Fleizach.
     7
     8        * accessibility/deleting-iframe-destroys-axcache.html: Added.
     9        * platform/mac/accessibility/deleting-iframe-destroys-axcache-expected.txt: Added.
     10
    1112011-09-26  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r96126 r96127  
     12011-09-27  Dominic Mazzoni  <dmazzoni@google.com>
     2
     3        AXObjectCache cleared unnecessarily when non-top Document is detached.
     4        https://bugs.webkit.org/show_bug.cgi?id=68636
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Test: accessibility/deleting-iframe-destroys-axcache.html
     9
     10        * dom/Document.cpp:
     11        (WebCore::Document::attach):
     12        (WebCore::Document::detach):
     13
    1142011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WebCore/dom/Document.cpp

    r95959 r96127  
    18021802    ASSERT(!attached());
    18031803    ASSERT(!m_inPageCache);
    1804     ASSERT(!m_axObjectCache);
     1804    ASSERT(!m_axObjectCache || this != topDocument());
    18051805
    18061806    if (!m_renderArena)
     
    18281828    ASSERT(!m_inPageCache);
    18291829
    1830     clearAXObjectCache();
     1830    if (this == topDocument())
     1831        clearAXObjectCache();
     1832
    18311833    stopActiveDOMObjects();
    18321834    m_eventQueue->close();
Note: See TracChangeset for help on using the changeset viewer.