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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h

Issue 2328683003: Use per-frame WebTaskRunner with makeCancellable in AXObjectCacheImpl
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h
index 7a40d61b60c3a9490e6c9615259ae6f3eb8db18e..0417f9d5d8c44c7870db152d3ae4cd3df4384b01 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h
@@ -36,6 +36,7 @@
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
#include "wtf/HashSet.h"
+#include "wtf/MakeCancellable.h"
#include <memory>
namespace blink {
@@ -230,9 +231,9 @@ private:
// its ID, we can quickly determine if it affects an aria-owns relationship.
HashMap<String, std::unique_ptr<HashSet<AXID>>> m_idToAriaOwnersMapping;
- Timer<AXObjectCacheImpl> m_notificationPostTimer;
+ WTF::ScopedFunctionCanceller m_notificationPostCanceller;
HeapVector<std::pair<Member<AXObject>, AXNotification>> m_notificationsToPost;
- void notificationPostTimerFired(TimerBase*);
+ void postNotificationsNow();
AXObject* focusedImageMapUIElement(HTMLAreaElement*);
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698