Commit 4c5c29c6 authored by cfleizach@apple.com's avatar cfleizach@apple.com

Bug 27633 - AXLoadComplete can be fired off to frequently

https://bugs.webkit.org/show_bug.cgi?id=27633



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0395090d
2009-07-23 Chris Fleizach <cfleizach@apple.com>
Reviewed by Darin Adler.
Bug 27633 - AXLoadComplete can be fired off to frequently
https://bugs.webkit.org/show_bug.cgi?id=27633
An integration issue left out some curly braces.
* dom/Document.cpp:
(WebCore::Document::implicitClose):
2009-07-23 Darin Adler <darin@apple.com> 2009-07-23 Darin Adler <darin@apple.com>
Reviewed by Brady Eidson. Reviewed by Brady Eidson.
......
...@@ -1681,13 +1681,14 @@ void Document::implicitClose() ...@@ -1681,13 +1681,14 @@ void Document::implicitClose()
} }
#if PLATFORM(MAC) #if PLATFORM(MAC)
if (f && renderObject && this == topDocument() && AXObjectCache::accessibilityEnabled()) if (f && renderObject && this == topDocument() && AXObjectCache::accessibilityEnabled()) {
// The AX cache may have been cleared at this point, but we need to make sure it contains an // The AX cache may have been cleared at this point, but we need to make sure it contains an
// AX object to send the notification to. getOrCreate will make sure that an valid AX object // AX object to send the notification to. getOrCreate will make sure that an valid AX object
// exists in the cache (we ignore the return value because we don't need it here). This is // exists in the cache (we ignore the return value because we don't need it here). This is
// only safe to call when a layout is not in progress, so it can not be used in postNotification. // only safe to call when a layout is not in progress, so it can not be used in postNotification.
axObjectCache()->getOrCreate(renderObject); axObjectCache()->getOrCreate(renderObject);
axObjectCache()->postNotification(renderObject, "AXLoadComplete", true); axObjectCache()->postNotification(renderObject, "AXLoadComplete", true);
}
#endif #endif
#if ENABLE(SVG) #if ENABLE(SVG)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment