bug 1196460 - make IsDoc() return true for wrappers of proxied documents r=surkov
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Tue, 11 Aug 2015 15:53:43 -0400
changeset 262411 2da419f8a7910fc95a6d51fb2fc377f18a96845d
parent 262410 d9be94b01f90dc573b008a58b1b3839cb2cc2904
child 262412 2b75e52881e93dbd465c4d362e789d91b45d4f00
push id15180
push userkwierso@gmail.com
push dateTue, 15 Sep 2015 00:28:33 +0000
treeherderfx-team@e543c88468c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs1196460
milestone43.0a1
bug 1196460 - make IsDoc() return true for wrappers of proxied documents r=surkov
accessible/windows/ProxyWrappers.h
--- a/accessible/windows/ProxyWrappers.h
+++ b/accessible/windows/ProxyWrappers.h
@@ -41,17 +41,18 @@ public:
 
   virtual void Shutdown() override { mBits.proxy = nullptr; }
 };
 
 class DocProxyAccessibleWrap : public HyperTextProxyAccessibleWrap
 {
 public:
   DocProxyAccessibleWrap(ProxyAccessible* aProxy) :
-    HyperTextProxyAccessibleWrap(aProxy) {}
+    HyperTextProxyAccessibleWrap(aProxy)
+  { mGenericTypes |= eDocument; }
 };
 
 template<typename T>
 inline ProxyAccessible*
 HyperTextProxyFor(T* aWrapper)
 {
   static_assert(mozilla::IsBaseOf<IUnknown, T>::value, "only IAccessible* should be passed in");
   auto wrapper = static_cast<HyperTextProxyAccessibleWrap*>(aWrapper);