Bug 81667 - FigureCanvas computeSize() causes FlowPage to be validated multiple times
Summary: FigureCanvas computeSize() causes FlowPage to be validated multiple times
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 13:51 EST by Randy Hudson CLA
Modified: 2011-01-05 17:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2004-12-20 13:51:09 EST
Asking a flowpage for its preferred size (before an update begins) causes it to 
add itself to the invalid figures.  Then, the FigureCanvas gets sized, which 
adds the root figure to the invalid figures. Next, the FlowPage restores its 
old recommended width first, then the root gets resized, and the flowpage must 
layout again.  It's pretty wasteful.

Possible fixes:
- don't use updatemanager's invalid figures or
- sort invalid figures prior to processing them. Partial ordering would be if 
a.contains(b), then a < b.