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 279119 cda3d99ef134446dfd0a5117f5cb413f008eb2a4
parent 279118 37297b333f42a240edb53dcb6d53c106179b917e
child 279120 d6096f9659f7f5d6c7f961d2d8362fbee6ecad56
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [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;