Closed Bug 279059 Opened 20 years ago Closed 20 years ago

Need to seperate out refreshing code from revalidate

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronr, Assigned: allan)

Details

Attachments

(1 file, 1 obsolete file)

Placeholder bug. In order to make handling of xforms-refresh and function call to refresh to work, we need to seperate out refresh code from revalidate code inside nsXFormsModelElement.cpp.
(In reply to comment #0) > Placeholder bug. In order to make handling of xforms-refresh and function call > to refresh to work, we need to seperate out refresh code from revalidate code > inside nsXFormsModelElement.cpp. Check. nsXFormsModelElement::Revalidate() just needs to save the controls needing a refresh in a member array, so nsXFormsModelElement::Refresh() can go through them.
Assignee: aaronr → allan
Attached patch Fix (obsolete) — Splinter Review
Attachment #173006 - Flags: superreview?(bryner)
Attachment #173006 - Flags: review?(aaronr)
Status: NEW → ASSIGNED
Comment on attachment 173006 [details] [diff] [review] Fix Would it be possible for controls to be removed from the document between the call to Revalidate and the call to Refresh()? If so, this will call through a dangling pointer. We either need to notice when controls are removed and remove them from mControlsNeedingRefresh, or make it a nsCOMArray that can hold a strong reference.
Attachment #173006 - Flags: review?(aaronr) → review+
crap, I didn't even think of that when I reviewed it. Probably could be removed from this list during RemoveFromModelList(). Maybe change the name to RemoveFromModelLists().
sorry, I meant maybe it should be added to: nsXFormsModelElement::RemoveFormControl().
Attachment #173006 - Flags: superreview?(bryner)
Attachment #173006 - Attachment is obsolete: true
Attachment #173070 - Flags: superreview?(bryner)
Attachment #173070 - Flags: superreview?(bryner) → superreview+
Check in by bryner
Status: ASSIGNED → RESOLVED
Closed: 20 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: