Bug 917598 - ISimpleDOMNode::innerHTML does not work on math elements, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Wed, 16 Oct 2013 23:10:55 -0400
changeset 165869 fb0bfd363a0fe57117c6f99f8667cc677195181e
parent 165868 18d72b85134557a949f6392e8ec86a73aa48a83c
child 165870 ee100983f9210e21d5030bbf176a9fe075f3ac14
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs917598
milestone27.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 917598 - ISimpleDOMNode::innerHTML does not work on math elements, r=tbsaunde
accessible/src/windows/sdn/sdnAccessible.cpp
--- a/accessible/src/windows/sdn/sdnAccessible.cpp
+++ b/accessible/src/windows/sdn/sdnAccessible.cpp
@@ -461,22 +461,21 @@ sdnAccessible::get_innerHTML(BSTR __RPC_
 
   if (!aInnerHTML)
     return E_INVALIDARG;
   *aInnerHTML = nullptr;
 
   if (IsDefunct())
     return CO_E_OBJNOTCONNECTED;
 
-  nsCOMPtr<nsIDOMHTMLElement> htmlElement = do_QueryInterface(mNode);
-  if (!htmlElement)
+  if (!mNode->IsElement())
     return S_FALSE;
 
   nsAutoString innerHTML;
-  htmlElement->GetInnerHTML(innerHTML);
+  mNode->AsElement()->GetInnerHTML(innerHTML);
   if (innerHTML.IsEmpty())
     return S_FALSE;
 
   *aInnerHTML = ::SysAllocStringLen(innerHTML.get(), innerHTML.Length());
   if (!*aInnerHTML)
     return E_OUTOFMEMORY;
 
   return S_OK;