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