Bug 1467503 - Make it compile with --disable-accessibility again. r=surkov
authorMats Palmgren <mats@mozilla.com>
Thu, 07 Jun 2018 18:43:06 +0200
changeset 478544 9e717c6aaa70daa363832215d3a78ffa605f92bb
parent 478543 cb38aa5ce628b86603c8466abfeed0aacec4ca08
child 478545 5bbe892524aaa83997768c9dc9cb7a237e314a88
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs1467503
milestone62.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 1467503 - Make it compile with --disable-accessibility again. r=surkov
dom/base/nsINode.cpp
--- a/dom/base/nsINode.cpp
+++ b/dom/base/nsINode.cpp
@@ -1229,21 +1229,23 @@ nsINode::Traverse(nsINode *tmp, nsCycleC
     nsCOMArray<nsISupports>* objects =
       static_cast<nsCOMArray<nsISupports>*>(tmp->GetProperty(nsGkAtoms::keepobjectsalive));
     if (objects) {
       for (int32_t i = 0; i < objects->Count(); ++i) {
          cb.NoteXPCOMChild(objects->ObjectAt(i));
       }
     }
 
+#ifdef ACCESSIBILITY
     AccessibleNode* anode =
       static_cast<AccessibleNode*>(tmp->GetProperty(nsGkAtoms::accessiblenode));
     if (anode) {
       cb.NoteXPCOMChild(anode);
     }
+#endif
   }
 
   if (tmp->NodeType() != DOCUMENT_NODE &&
       tmp->HasFlag(NODE_HAS_LISTENERMANAGER)) {
     nsContentUtils::TraverseListenerManager(tmp, cb);
   }
 
   return true;