Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: Source/core/dom/Document.cpp

Issue 101193002: Send AX focus changed events for modal dialog open/close (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: refactoring Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 5721682d37bbe6c898fe8031d0ab2fa09ba1da97..6fc5cadadbd44343b9d652b914079680ef08a4f7 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3410,10 +3410,10 @@ bool Document::setFocusedElement(PassRefPtr<Element> prpNewFocusedElement, Focus
}
}
- if (!focusChangeBlocked && m_focusedElement) {
+ if (m_focusedElement != oldFocusedElement) {
dmazzoni 2013/12/10 08:07:53 Did you mean to get rid of the test for !focusChan
falken 2013/12/10 12:19:57 Hum, I remember needing to get rid of it (and thin
// Create the AXObject cache in a focus change because Chromium relies on it.
if (AXObjectCache* cache = axObjectCache())
- cache->handleFocusedUIElementChanged(oldFocusedElement.get(), newFocusedElement.get());
+ cache->handleFocusedUIElementChanged(*this);
}
if (!focusChangeBlocked && page())

Powered by Google App Engine
This is Rietveld 408576698