mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Let MIP properties apply to context node for entire repeat row. Bug 292725, r=smaug+doronr, a=mkaply, NPOTB
This commit is contained in:
parent
6a34dd9123
commit
d7f85e1518
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user