Date: 2009-08-04 16:11:37 -0700 (Tue, 04 Aug 2009)
Fix bug http://bugs.adobe.com/jira/browse/SDK-22181 LayoutBoundsHeight and LayoutBoundWidth has rounding errors for rotated paths + optimizations
Fix: Path used to draw into a shape to determine the bounds, which had rounding error to the 1/20th of the pixel. Calculate the bounds directly by going through the segments instead - this yields full double precision.
1. Reduce the number of dynamic Points allocated
2. Remove the CloseSegment and replace it with a LineSegment
3. Optimize the bounds() code to look at each line segment's points only once
Additional changes bring 10% speed improvement in path layout over the trunk baseline for a test case of 5,000 star paths in a TileLayout (each with 9 line segments and 1 close segment).
QE notes: None
Doc notes: None
Tests run: checkintests, gumbo/layout, graphicTags, gumbo/core/Group
Is noteworthy for integration: Yes, bug SDK-22181 came from the Thermo team