[XForms] Disabled controls should match more than :disabled. Bug 313118, r=doronr+smaug

git-svn-id: svn://10.0.0.236/trunk@194669 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
allan%beaufour.dk
2006-04-19 08:22:28 +00:00
parent c9d543a606
commit 8ad7f46a00
11 changed files with 242 additions and 238 deletions

View File

@@ -110,6 +110,9 @@ nsXFormsDelegateStub::Refresh()
return NS_OK_XFORMS_NOREFRESH;
}
nsresult rv = nsXFormsBindableControlStub::Refresh();
NS_ENSURE_SUCCESS(rv, rv);
SetMozTypeAttribute();
nsCOMPtr<nsIXFormsUIWidget> widget = do_QueryInterface(mElement);
@@ -193,7 +196,7 @@ nsXFormsDelegateStub::WidgetAttached()
if (UpdateRepeatState() == eType_Template)
return NS_OK;
if (mBindAttrsCount) {
if (HasBindingAttribute()) {
// If control is bounded to instance data then we should ask for refresh
// only when model is loaded entirely. The reason is control is refreshed
// by model when it get loaded.