updates to sync with nsString2 api

This commit is contained in:
rickg%netscape.com 1999-04-21 23:12:55 +00:00
Родитель cfc730e62c
Коммит 837318b35a
4 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -809,7 +809,7 @@ nsGenericDOMDataNode::SplitText(PRUint32 aOffset, nsIDOMText** aReturn)
if (NS_OK == result) { if (NS_OK == result) {
result = newNode->QueryInterface(kITextContentIID, (void**)&text); result = newNode->QueryInterface(kITextContentIID, (void**)&text);
if (NS_OK == result) { 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 // Find the parent of the current node and insert the
// new text node as a child after the current node // new text node as a child after the current node
GetParent(parentNode); GetParent(parentNode);

Просмотреть файл

@ -1207,10 +1207,10 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext,
// Now pass on absolute url to the click handler // Now pass on absolute url to the click handler
if (aClick) { if (aClick) {
handler->OnLinkClick(mContent, aVerb, absURLSpec, aTargetSpec); handler->OnLinkClick(mContent, aVerb, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
} }
else { else {
handler->OnOverLink(mContent, absURLSpec, aTargetSpec); handler->OnOverLink(mContent, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
} }
NS_RELEASE(handler); NS_RELEASE(handler);
} }

Просмотреть файл

@ -809,7 +809,7 @@ nsGenericDOMDataNode::SplitText(PRUint32 aOffset, nsIDOMText** aReturn)
if (NS_OK == result) { if (NS_OK == result) {
result = newNode->QueryInterface(kITextContentIID, (void**)&text); result = newNode->QueryInterface(kITextContentIID, (void**)&text);
if (NS_OK == result) { 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 // Find the parent of the current node and insert the
// new text node as a child after the current node // new text node as a child after the current node
GetParent(parentNode); GetParent(parentNode);

Просмотреть файл

@ -1207,10 +1207,10 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext,
// Now pass on absolute url to the click handler // Now pass on absolute url to the click handler
if (aClick) { if (aClick) {
handler->OnLinkClick(mContent, aVerb, absURLSpec, aTargetSpec); handler->OnLinkClick(mContent, aVerb, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
} }
else { else {
handler->OnOverLink(mContent, absURLSpec, aTargetSpec); handler->OnOverLink(mContent, absURLSpec.GetUnicode(), aTargetSpec.GetUnicode());
} }
NS_RELEASE(handler); NS_RELEASE(handler);
} }