New NameEquals method on nsIDocShellTreeItem to reduce unnecessary strdup'ing as FindChildWithName walks through its children looking for a matching item. b=102576 r=radha@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@105881 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -39,6 +39,15 @@ interface nsIDocShellTreeItem : nsISupports
|
||||
*/
|
||||
attribute wstring name;
|
||||
|
||||
/**
|
||||
* Compares the provided name against the item's name and
|
||||
* returns the appropriate result.
|
||||
*
|
||||
* @return <CODE>PR_TRUE</CODE> if names match;
|
||||
* <CODE>PR_FALSE</CODE> otherwise.
|
||||
*/
|
||||
boolean nameEquals(in wstring name);
|
||||
|
||||
/*
|
||||
Definitions for the item types.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user