зеркало из https://github.com/mozilla/gecko-dev.git
updates to sync with nsString2 api
This commit is contained in:
Родитель
cfc730e62c
Коммит
837318b35a
|
@ -809,7 +809,7 @@ nsGenericDOMDataNode::SplitText(PRUint32 aOffset, nsIDOMText** aReturn)
|
|||
if (NS_OK == result) {
|
||||
result = newNode->QueryInterface(kITextContentIID, (void**)&text);
|
||||
if (NS_OK == result) {
|
||||
text->SetText(cutText, cutText.Length(), PR_FALSE);
|
||||
text->SetText(cutText.GetUnicode(), cutText.Length(), PR_FALSE);
|
||||
// Find the parent of the current node and insert the
|
||||
// new text node as a child after the current node
|
||||
GetParent(parentNode);
|
||||
|
|
|
@ -1207,10 +1207,10 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext,
|
|||
|
||||
// Now pass on absolute url to the click handler
|
||||
if (aClick) {
|
||||
handler->OnLinkClick(mContent, aVerb, absURLSpec, aTargetSpec);
|
||||
handler->OnLinkClick(mContent, aVerb, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
|
||||
}
|
||||
else {
|
||||
handler->OnOverLink(mContent, absURLSpec, aTargetSpec);
|
||||
handler->OnOverLink(mContent, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
|
||||
}
|
||||
NS_RELEASE(handler);
|
||||
}
|
||||
|
|
|
@ -809,7 +809,7 @@ nsGenericDOMDataNode::SplitText(PRUint32 aOffset, nsIDOMText** aReturn)
|
|||
if (NS_OK == result) {
|
||||
result = newNode->QueryInterface(kITextContentIID, (void**)&text);
|
||||
if (NS_OK == result) {
|
||||
text->SetText(cutText, cutText.Length(), PR_FALSE);
|
||||
text->SetText(cutText.GetUnicode(), cutText.Length(), PR_FALSE);
|
||||
// Find the parent of the current node and insert the
|
||||
// new text node as a child after the current node
|
||||
GetParent(parentNode);
|
||||
|
|
|
@ -1207,10 +1207,10 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext,
|
|||
|
||||
// Now pass on absolute url to the click handler
|
||||
if (aClick) {
|
||||
handler->OnLinkClick(mContent, aVerb, absURLSpec, aTargetSpec);
|
||||
handler->OnLinkClick(mContent, aVerb, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
|
||||
}
|
||||
else {
|
||||
handler->OnOverLink(mContent, absURLSpec, aTargetSpec);
|
||||
handler->OnOverLink(mContent, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
|
||||
}
|
||||
NS_RELEASE(handler);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче