mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 12:13:22 +00:00
Bug 1230267 - Inconsistent display of SVG title as tooltip when multi-process is enabled. r=jst
This commit is contained in:
parent
cc0ba97a71
commit
495196598b
@ -1139,8 +1139,7 @@ DefaultTooltipTextProvider::GetNodeText(nsIDOMNode* aNode, char16_t** aText,
|
||||
nsCOMPtr<nsIURI> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user