From a036d642ca5fbb3c4109fac27c3e1382d84a3d45 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Mon, 5 Sep 2016 14:52:12 -0400 Subject: [PATCH] bug 1270916 - make TreeMutation track if it should be queueing events r=davidb Soon we will want to know if events should be emitted independt of EventTrees. --- accessible/base/EventTree.cpp | 3 ++- accessible/base/EventTree.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/accessible/base/EventTree.cpp b/accessible/base/EventTree.cpp index 596f1125d8ee..d1d00487adba 100644 --- a/accessible/base/EventTree.cpp +++ b/accessible/base/EventTree.cpp @@ -25,7 +25,8 @@ EventTree* const TreeMutation::kNoEventTree = reinterpret_cast(-1); TreeMutation::TreeMutation(Accessible* aParent, bool aNoEvents) : mParent(aParent), mStartIdx(UINT32_MAX), mStateFlagsCopy(mParent->mStateFlags), - mEventTree(aNoEvents ? kNoEventTree : nullptr) + mEventTree(aNoEvents ? kNoEventTree : nullptr), + mQueueEvents(!aNoEvents) { #ifdef DEBUG mIsDone = false; diff --git a/accessible/base/EventTree.h b/accessible/base/EventTree.h index a6ae8b1a1c55..d0c8024527a1 100644 --- a/accessible/base/EventTree.h +++ b/accessible/base/EventTree.h @@ -49,6 +49,11 @@ private: uint32_t mStateFlagsCopy; EventTree* mEventTree; + /* + * True if mutation events should be queued. + */ + bool mQueueEvents; + #ifdef DEBUG bool mIsDone; #endif