Log Message: |
Transferred from the Adobe Open Source Subversion Repository
Revision: 4137
Author: egeorgie@adobe.com
Date: 2008-11-19T01:53:32.903090Z
Log Message:
-----------
Optimize Group layout invalidation.
This change adds two Boolean flags to track if Group’s layout is invalidated. This way whenever a GraphicElement’s invalidateDisplayList() is called, the Group won’t redo the layout, but only validate that particular GraphicElement’s display list. Similar for size. Also I removed unconditional updateDisplayList() while assigning GraphicElement display objects and instead invalidate only the GraphicElements that have their sharedDisplayObject reassigned (we were already invalidating when the exclusive display object is assigned).
Additionally I added a small check in the stroke property change event handler to make sure we invalidate parent size & layout only when the stroke weight is changed, which minimizes layout passes for skin state changes, where states would change stroke color/settings.
QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Glenn
tests: checkintests, mustella (gumbo/core, gumbo/layout, graphictags, gumbo/filters)
Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
|