зеркало из https://github.com/mozilla/pjs.git
sync with nsString2
This commit is contained in:
Родитель
6c3e2e06c8
Коммит
cc64c0dc7a
|
@ -48,7 +48,7 @@ PRBool nsTextEditRules::NodeIsType(nsIDOMNode *aNode, nsIAtom *aTag)
|
|||
{
|
||||
nsAutoString tag;
|
||||
element->GetTagName(tag);
|
||||
if (tag.Equals(aTag))
|
||||
if (tag.Equals(aTag->GetUnicode()))
|
||||
{
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
|
@ -1806,7 +1806,7 @@ NS_IMETHODIMP nsTextEditor::RemoveTextPropertiesForNode(nsIDOMNode *aNode,
|
|||
if (gNoisy) { printf("* parent has tag %s\n", tag.ToNewCString()); } // XXX leak!
|
||||
if (NS_SUCCEEDED(result))
|
||||
{
|
||||
if (PR_FALSE==tag.Equals(aPropName))
|
||||
if (PR_FALSE==tag.Equals(aPropName->GetUnicode()))
|
||||
{
|
||||
PRInt32 offsetInParent;
|
||||
result = nsIEditorSupport::GetChildOffset(newMiddleNode, parent, offsetInParent);
|
||||
|
|
|
@ -48,7 +48,7 @@ PRBool nsTextEditRules::NodeIsType(nsIDOMNode *aNode, nsIAtom *aTag)
|
|||
{
|
||||
nsAutoString tag;
|
||||
element->GetTagName(tag);
|
||||
if (tag.Equals(aTag))
|
||||
if (tag.Equals(aTag->GetUnicode()))
|
||||
{
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче