bug 1192330 - update text change data for proxied text change events r=surkov
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Fri, 07 Aug 2015 15:02:10 -0400
changeset 258437 2f76881caf22b2a2a88422bfc11f50831b40f81b
parent 258436 1409d0fcea5d0478499480a04b234841d3939323
child 258438 8730856a0615d936e314943ebcd878d4e43dd96a
push id63913
push usertrev.saunders@gmail.com
push dateWed, 19 Aug 2015 16:48:42 +0000
treeherdermozilla-inbound@2f76881caf22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs1192330
milestone43.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 1192330 - update text change data for proxied text change events r=surkov
accessible/windows/msaa/Platform.cpp
--- a/accessible/windows/msaa/Platform.cpp
+++ b/accessible/windows/msaa/Platform.cpp
@@ -67,12 +67,17 @@ a11y::ProxyStateChangeEvent(ProxyAccessi
 }
 
 void
 a11y::ProxyCaretMoveEvent(ProxyAccessible* aTarget, int32_t aOffset)
 {
 }
 
 void
-a11y::ProxyTextChangeEvent(ProxyAccessible*, const nsString&, int32_t, uint32_t,
-                     bool, bool)
+a11y::ProxyTextChangeEvent(ProxyAccessible* aText, const nsString& aStr,
+                           int32_t aStart, uint32_t aLen, bool aInsert, bool)
 {
+  AccessibleWrap* wrapper = WrapperFor(aText);
+  auto text = static_cast<HyperTextAccessibleWrap*>(wrapper->AsHyperText());
+  if (text) {
+    ia2AccessibleText::UpdateTextChangeData(text, aInsert, aStr, aStart, aLen);
+  }
 }