bug 1172523 - Allow getting the modified text from an AccTextChangeEvent without copying r=lsocks
☠☠ backed out by 8376812621b2 ☠ ☠
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Fri, 05 Jun 2015 14:41:32 -0400
changeset 248348 cda3d99ef134446dfd0a5117f5cb413f008eb2a4
parent 248347 37297b333f42a240edb53dcb6d53c106179b917e
child 248349 d6096f9659f7f5d6c7f961d2d8362fbee6ecad56
push id28893
push userkwierso@gmail.com
push dateFri, 12 Jun 2015 00:02:58 +0000
treeherderautoland@8cf9d3e497f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsocks
bugs1172523
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1172523 - Allow getting the modified text from an AccTextChangeEvent without copying r=lsocks
accessible/base/AccEvent.h
--- a/accessible/base/AccEvent.h
+++ b/accessible/base/AccEvent.h
@@ -189,16 +189,17 @@ public:
   }
 
   // AccTextChangeEvent
   int32_t GetStartOffset() const { return mStart; }
   uint32_t GetLength() const { return mModifiedText.Length(); }
   bool IsTextInserted() const { return mIsInserted; }
   void GetModifiedText(nsAString& aModifiedText)
     { aModifiedText = mModifiedText; }
+  const nsString& ModifiedText() const { return mModifiedText; }
 
 private:
   int32_t mStart;
   bool mIsInserted;
   nsString mModifiedText;
 
   friend class EventQueue;
   friend class AccReorderEvent;