From 19096b92361024c388c96e130d8bf1953537101d Mon Sep 17 00:00:00 2001 From: Robert Longson Date: Sat, 9 Jan 2016 11:12:58 +0000 Subject: [PATCH] Bug 1230267 - Inconsistent display of SVG title as tooltip when multi-process is enabled. r=jst --- embedding/browser/nsDocShellTreeOwner.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/embedding/browser/nsDocShellTreeOwner.cpp b/embedding/browser/nsDocShellTreeOwner.cpp index 33ef30897ac..8fa7cf94c82 100644 --- a/embedding/browser/nsDocShellTreeOwner.cpp +++ b/embedding/browser/nsDocShellTreeOwner.cpp @@ -1139,8 +1139,7 @@ DefaultTooltipTextProvider::GetNodeText(nsIDOMNode* aNode, char16_t** aText, nsCOMPtr uri(linkContent->GetURIExternal()); if (uri) { currElement->GetAttributeNS( - NS_LITERAL_STRING("http://www.w3.org/1999/xlink"), - NS_LITERAL_STRING("title"), outText); + xlinkNS, NS_LITERAL_STRING("title"), outText); if (outText.Length()) { found = true; } @@ -1150,7 +1149,7 @@ DefaultTooltipTextProvider::GetNodeText(nsIDOMNode* aNode, char16_t** aText, lookingForSVGTitle = UseSVGTitle(currElement); } if (lookingForSVGTitle) { - nsINodeList* childNodes = node->ChildNodes(); + nsINodeList* childNodes = content->ChildNodes(); uint32_t childNodeCount = childNodes->Length(); for (uint32_t i = 0; i < childNodeCount; i++) { nsIContent* child = childNodes->Item(i);