Remove direct access to MDG in nsIModelElementPrivate and save pointer to model in nsXFormsControlStub. Bug 278370, r=smaug, sr=bryner

git-svn-id: svn://10.0.0.236/trunk@168509 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
allan%beaufour.dk
2005-01-29 20:36:09 +00:00
parent 4b7279557c
commit 5048f26177
10 changed files with 67 additions and 77 deletions

View File

@@ -104,13 +104,8 @@ nsXFormsSetValueElement::HandleAction(nsIDOMEvent* aEvent,
n3->GetTextContent(value);
}
nsXFormsMDGEngine* MDG;
modelPriv->GetMDG(&MDG);
if (!MDG)
return NS_ERROR_FAILURE;
PRBool changed;
rv = MDG->SetNodeValue(singleNode, value, PR_TRUE, &changed);
rv = modelPriv->SetNodeValue(singleNode, value, &changed);
NS_ENSURE_SUCCESS(rv, rv);
if (changed) {