diff --git a/accessible/src/base/AccEvent.cpp b/accessible/src/base/AccEvent.cpp index 67eb59b309e3..31043b65d9f1 100644 --- a/accessible/src/base/AccEvent.cpp +++ b/accessible/src/base/AccEvent.cpp @@ -103,7 +103,7 @@ AccEvent::GetDocAccessible() { nsINode *node = GetNode(); if (node) - return GetAccService()->GetDocAccessible(node->GetOwnerDoc()); + return GetAccService()->GetDocAccessible(node->OwnerDoc()); return nsnull; } diff --git a/accessible/src/base/AccIterator.cpp b/accessible/src/base/AccIterator.cpp index ceb118f9ada1..c65be1e1f264 100644 --- a/accessible/src/base/AccIterator.cpp +++ b/accessible/src/base/AccIterator.cpp @@ -278,10 +278,10 @@ IDRefsIterator::IDRefsIterator(nsIContent* aContent, nsIAtom* aIDRefsAttr) : return; if (aContent->IsInAnonymousSubtree()) { - mXBLDocument = do_QueryInterface(aContent->GetOwnerDoc()); + mXBLDocument = do_QueryInterface(aContent->OwnerDoc()); mBindingParent = do_QueryInterface(aContent->GetBindingParent()); } else { - mDocument = aContent->GetOwnerDoc(); + mDocument = aContent->OwnerDoc(); } } diff --git a/accessible/src/base/FocusManager.cpp b/accessible/src/base/FocusManager.cpp index c4195802d27b..11439299c6fa 100644 --- a/accessible/src/base/FocusManager.cpp +++ b/accessible/src/base/FocusManager.cpp @@ -81,7 +81,7 @@ FocusManager::IsFocused(const nsAccessible* aAccessible) const // peculiarity we would end up with plain implementation based on // FocusedAccessible() method call. Make sure this issue is fixed in // bug 638465. - if (focusedNode->GetOwnerDoc() == aAccessible->GetNode()->GetOwnerDoc()) { + if (focusedNode->OwnerDoc() == aAccessible->GetNode()->OwnerDoc()) { return aAccessible == GetAccService()->GetAccessibleOrContainer(focusedNode, nsnull); } @@ -145,7 +145,7 @@ FocusManager::NotifyOfDOMFocus(nsISupports* aTarget) nsCOMPtr targetNode(do_QueryInterface(aTarget)); if (targetNode) { nsDocAccessible* document = - GetAccService()->GetDocAccessible(targetNode->GetOwnerDoc()); + GetAccService()->GetDocAccessible(targetNode->OwnerDoc()); if (document) { // Set selection listener for focused element. if (targetNode->IsElement()) { @@ -171,8 +171,8 @@ FocusManager::NotifyOfDOMBlur(nsISupports* aTarget) // If DOM document stays focused then fire accessible focus event to process // the case when no element within this DOM document will be focused. nsCOMPtr targetNode(do_QueryInterface(aTarget)); - if (targetNode && targetNode->GetOwnerDoc() == FocusedDOMDocument()) { - nsIDocument* DOMDoc = targetNode->GetOwnerDoc(); + if (targetNode && targetNode->OwnerDoc() == FocusedDOMDocument()) { + nsIDocument* DOMDoc = targetNode->OwnerDoc(); nsDocAccessible* document = GetAccService()->GetDocAccessible(DOMDoc); if (document) { @@ -216,7 +216,7 @@ FocusManager::ForceFocusEvent() nsINode* focusedNode = FocusedDOMNode(); if (focusedNode) { nsDocAccessible* document = - GetAccService()->GetDocAccessible(focusedNode->GetOwnerDoc()); + GetAccService()->GetDocAccessible(focusedNode->OwnerDoc()); if (document) { document->HandleNotification (this, &FocusManager::ProcessDOMFocus, focusedNode); @@ -246,7 +246,7 @@ FocusManager::ProcessDOMFocus(nsINode* aTarget) "Notification target", aTarget) nsDocAccessible* document = - GetAccService()->GetDocAccessible(aTarget->GetOwnerDoc()); + GetAccService()->GetDocAccessible(aTarget->OwnerDoc()); nsAccessible* target = document->GetAccessibleOrContainer(aTarget); if (target) { diff --git a/accessible/src/base/NotificationController.cpp b/accessible/src/base/NotificationController.cpp index fdd82653baf0..d903de8b75da 100644 --- a/accessible/src/base/NotificationController.cpp +++ b/accessible/src/base/NotificationController.cpp @@ -380,7 +380,7 @@ NotificationController::CoalesceEvents() // is supported. Ignore events from different documents since we don't // coalesce them. if (!thisEvent->mNode || - thisEvent->mNode->GetOwnerDoc() != tailEvent->mNode->GetOwnerDoc()) + thisEvent->mNode->OwnerDoc() != tailEvent->mNode->OwnerDoc()) continue; // Coalesce earlier event for the same target. diff --git a/accessible/src/base/nsAccessNode.cpp b/accessible/src/base/nsAccessNode.cpp index 88ecc7247183..9289a79595d1 100644 --- a/accessible/src/base/nsAccessNode.cpp +++ b/accessible/src/base/nsAccessNode.cpp @@ -262,7 +262,7 @@ nsDocAccessible * nsAccessNode::GetDocAccessible() const { return mContent ? - GetAccService()->GetDocAccessible(mContent->GetOwnerDoc()) : nsnull; + GetAccService()->GetDocAccessible(mContent->OwnerDoc()) : nsnull; } nsRootAccessible* @@ -465,7 +465,7 @@ nsAccessNode::GetLanguage(nsAString& aLanguage) nsCoreUtils::GetLanguageFor(mContent, nsnull, aLanguage); if (aLanguage.IsEmpty()) { // Nothing found, so use document's language - nsIDocument *doc = mContent->GetOwnerDoc(); + nsIDocument *doc = mContent->OwnerDoc(); if (doc) { doc->GetHeaderData(nsGkAtoms::headerContentLanguage, aLanguage); } diff --git a/accessible/src/base/nsAccessNode.h b/accessible/src/base/nsAccessNode.h index 2e75291b299b..585c7d8dd17f 100644 --- a/accessible/src/base/nsAccessNode.h +++ b/accessible/src/base/nsAccessNode.h @@ -152,7 +152,7 @@ public: virtual nsINode* GetNode() const { return mContent; } nsIContent* GetContent() const { return mContent; } virtual nsIDocument* GetDocumentNode() const - { return mContent ? mContent->GetOwnerDoc() : nsnull; } + { return mContent ? mContent->OwnerDoc() : nsnull; } /** * Return node type information of DOM node associated with the accessible. diff --git a/accessible/src/base/nsAccessibilityService.cpp b/accessible/src/base/nsAccessibilityService.cpp index b50618f3f7f5..3e3921c3dcb1 100644 --- a/accessible/src/base/nsAccessibilityService.cpp +++ b/accessible/src/base/nsAccessibilityService.cpp @@ -864,7 +864,7 @@ nsAccessibilityService::GetAccessible(nsINode* aNode) { NS_PRECONDITION(aNode, "Getting an accessible for null node! Crash."); - nsDocAccessible* document = GetDocAccessible(aNode->GetOwnerDoc()); + nsDocAccessible* document = GetDocAccessible(aNode->OwnerDoc()); return document ? document->GetAccessible(aNode) : nsnull; } @@ -876,7 +876,7 @@ nsAccessibilityService::GetAccessibleOrContainer(nsINode* aNode, return nsnull; // XXX: weak shell is ignored until multiple shell documents are supported. - nsDocAccessible* document = GetDocAccessible(aNode->GetOwnerDoc()); + nsDocAccessible* document = GetDocAccessible(aNode->OwnerDoc()); return document ? document->GetAccessibleOrContainer(aNode) : nsnull; } @@ -936,7 +936,7 @@ nsAccessibilityService::GetOrCreateAccessible(nsINode* aNode, return nsnull; } - if (aNode->GetOwnerDoc() != aPresShell->GetDocument()) { + if (aNode->OwnerDoc() != aPresShell->GetDocument()) { NS_ERROR("Creating accessible for wrong pres shell"); return nsnull; } @@ -983,7 +983,7 @@ nsAccessibilityService::GetOrCreateAccessible(nsINode* aNode, #endif nsDocAccessible* docAcc = - GetAccService()->GetDocAccessible(aNode->GetOwnerDoc()); + GetAccService()->GetDocAccessible(aNode->OwnerDoc()); if (!docAcc) { NS_NOTREACHED("Node has no host document accessible!"); return nsnull; diff --git a/accessible/src/base/nsAccessible.cpp b/accessible/src/base/nsAccessible.cpp index abe3a9b68fd0..074cc8c0adcb 100644 --- a/accessible/src/base/nsAccessible.cpp +++ b/accessible/src/base/nsAccessible.cpp @@ -2101,7 +2101,7 @@ nsAccessible::RelationByType(PRUint32 aType) } else { // In XUL, use first