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:
@@ -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'
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user