Let MIP properties apply to context node for entire repeat row. Bug 292725, r=smaug+doronr, a=mkaply, NPOTB

This commit is contained in:
allan%beaufour.dk 2005-05-05 07:14:30 +00:00
parent 6a34dd9123
commit d7f85e1518

View File

@ -244,6 +244,19 @@ NS_IMETHODIMP
nsXFormsContextContainer::SetContextNode(nsIDOMNode *aContextNode)
{
mBoundNode = aContextNode;
// Remove from old model (if any)
if (mModel) {
mModel->RemoveFormControl(this);
}
// Add to new model
mModel = nsXFormsUtils::GetModel(mElement);
if (mModel) {
mModel->AddFormControl(this);
mModel->SetStates(this, mBoundNode);
}
return NS_OK;
}