Closed Bug 300586 Opened 19 years ago Closed 19 years ago

Move event dispatching from revalidate to refresh

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: allan)

References

()

Details

Attachments

(2 files)

The errata moves the dispatching of xforms-readonly/xforms-readwrite, etc. from
xforms-revalidate to xforms-refresh. This means changing the SetStatesInternal()
call from nsXFormsModel::Revalidate() to nsXFormsModel::Refresh(), and possibly
getting rid of mControlsNeedingRefresh.
Blocks: 300591
Attached file Testcase
Attached patch PatchSplinter Review
Attachment #189758 - Flags: review?(aaronr)
Status: NEW → ASSIGNED
Comment on attachment 189758 [details] [diff] [review]
Patch

looks ok to me.  r=me
Attachment #189758 - Flags: review?(aaronr) → review+
Attachment #189758 - Flags: review?(doronr)
Comment on attachment 189758 [details] [diff] [review]
Patch

>diff -X patch-excludes -uprN -U8 xforms/nsXFormsModelElement.cpp xforms.newseq/nsXFormsModelElement.cpp
>--- xforms/nsXFormsModelElement.cpp	2005-07-19 14:16:28.000000000 +0200
>+++ xforms.newseq/nsXFormsModelElement.cpp	2005-07-19 14:17:18.000000000 +0200
>@@ -524,20 +524,16 @@ nsXFormsModelElement::GetInstanceDocumen
>     // Copy the form control list as it stands right now.
>@@ -665,16 +661,28 @@ nsXFormsModelElement::Revalidate()
>            NS_ConvertUCS2toUTF8(name).get(),
>            (void*) node);
>   }
> #endif
> 
>   // Revalidate nodes
>   mMDG.Revalidate(&mChangedNodes);
> 
>+return NS_OK;
>+}

The return should be indented by 2 spaces :)

>+
>+NS_IMETHODIMP
>+nsXFormsModelElement::Refresh()
>+{
>+#ifdef DEBUG
>+  printf("nsXFormsModelElement::Refresh()\n");
>+#endif
>+  nsPostRefresh postRefresh = nsPostRefresh();
>+
>+

nit: Why 2 spaces?
Attachment #189758 - Flags: review?(doronr) → review+
Fixed Doron's two nits, and checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: