Rename GetInstanceNode to FindInstanceNode, to indicate that it's not particularly cheap to call.

git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163101 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2004-10-01 19:08:47 +00:00
parent c843e98a5f
commit 58b80d908a
3 changed files with 3 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ nsXFormsControl::GetModelAndBind(nsIDOMElement **aBindElement)
}
already_AddRefed<nsIDOMNode>
nsXFormsControl::GetInstanceNode()
nsXFormsControl::FindInstanceNode()
{
// A control may be attached to a model by either using the 'bind'
// attribute to give the id of a bind element, or using the 'model'

View File

@@ -54,7 +54,7 @@ class nsXFormsControl : public nsXFormsElement
{
public:
NS_HIDDEN_(nsXFormsModelElement*) GetModelAndBind(nsIDOMElement **aBindElement);
NS_HIDDEN_(already_AddRefed<nsIDOMNode>) GetInstanceNode();
NS_HIDDEN_(already_AddRefed<nsIDOMNode>) FindInstanceNode();
protected:
nsCOMPtr<nsIXTFXMLVisualWrapper> mWrapper;

View File

@@ -142,7 +142,7 @@ nsXFormsInputElement::DocumentChanged(nsISupports *aNewDocument)
// - check for a "type" model item property on the result node
// - construct appropriate UI for xsd:boolean, xsd:date, etc
mInstanceNode = GetInstanceNode();
mInstanceNode = FindInstanceNode();
nsCOMPtr<nsIDOMElement> node;
mWrapper->GetElementNode(getter_AddRefs(node));