NS_IMETHODIMP nsXFormsItemSetElement::Bind(PRBool *aContextChanged) { NS_ENSURE_ARG(aContextChanged); *aContextChanged = PR_FALSE; return BindToModel(); }
NS_IMETHODIMP nsXFormsContextContainer::SetContext(nsIDOMNode *aContextNode, PRInt32 aContextPosition, PRInt32 aContextSize) { mContextIsDirty = (mContextIsDirty || mBoundNode != aContextNode || mContextPosition != aContextPosition || mContextSize != aContextSize); if (mContextIsDirty) { mBoundNode = aContextNode; mContextPosition = aContextPosition; mContextSize = aContextSize; } return BindToModel(); }
NS_IMETHODIMP nsXFormsRepeatElement::Bind(PRBool *aContextChanged) { #ifdef DEBUG_XF_REPEAT printf("nsXFormsRepeatElement::Bind()\n"); #endif NS_ENSURE_ARG(aContextChanged); if (!nsXFormsUtils::IsDocumentReadyForBind(mElement)) { nsXFormsModelElement::DeferElementBind(this); *aContextChanged = PR_FALSE; return NS_OK_XFORMS_DEFERRED; } nsresult rv = BindToModel(); NS_ENSURE_SUCCESS(rv, rv); *aContextChanged = PR_TRUE; return NS_OK; }