                     cacheAsBitmap = true;
                 }
             }
-        }        
-    }
-    
-    /**
-     *  If virtualLayout is true and the layout supports
-     *  virtualization, then the layout calls this method before
-     *  changing the actual sizes and positions of the layout elements
-     *  beginning at the specified index.
-     *
-     *  The layout is responsible for computing the startIndex based on
-     *  the current vertical and horizontal scroll positions.  
-     * 
-     *  After calling this method, the layout will size and position
-     *  layout elements until the available space has been exhausted,
-     *  and then it will finish by calling endVirtualLayout().
-     * 
-     *  The origin of the "available space" is defined by
-     *  horizontalScrollPosition and verticalScrollPosition, and the
-     *  width,height is this DataGroup's with and height.
-     *
-     *  This method is intended to be overriden by subclasses that
-     *  need to handle virtualzed getLayoutElement requests specially.
-     *  
-     *  This method is called at updateDisplayList time and when
-     *  the scroll position changes.
-     * 
-     *  This method should not be called explicitly, it's called
-     *  as needed by the layout.
-     * 
-     *  @param startIndex The first layout element that will be moved into view.
-     *  @see #endVirtualLayout 
-     *  @see virtualLayout
-     *  @see verticalScrollPosition
-     *  @see horizontalScrollPosition
-     *  @see clipContent
-     *  @see layout
-     */
-    public function beginVirtualLayout(startIndex:int):void
-    {
-    }
-
-    /**
-     *  If virtualLayout is true and the layout supports
-     *  virtualization, then the layout calls this method after
-     *  updating the sizes and positions of the layout elements
-     *  in the specified range.
-     * 
-     *  This method is called at updateDisplayList time and when
-     *  the scroll position changes.
-     * 
-     *  This method is intended to be overriden by subclasses that
-     *  want to discard or recycle layout elements that fall
-     *  outside the startIndex, endIndex range.
-     * 
-     *  This method should not be called explicitly, it's called
-     *  as needed by the layout.
-     * 
-     *  @param startIndex The first layout element that was moved into view.
-     *  @param endIndex The last layout element that was moved into view.
-     * 
-     *  @see #beginVirtualLayout 
-     *  @see virtualLayout
-     *  @see verticalScrollPosition
-     *  @see horizontalScrollPosition
-     *  @see clipContent
-     *  @see layout
-     */
-    public function endVirtualLayout(startIndex:int, endIndex:int):void
-    {
-    }
-
-    /**
-     *  @private
-     */
-    override public function invalidateSize():void
-    {
-        super.invalidateSize();
-        layoutInvalidateSizeFlag = true;
-    }
-
-    /**
-     *  @private
-     */
-    override public function invalidateDisplayList():void
-    {
-        super.invalidateDisplayList();
-        layoutInvalidateDisplayListFlag = true;
-    }
-    
-    /**
-     *  @private
-     */
-    override protected function measure():void
-    {
-        if (_layout && layoutInvalidateSizeFlag)
-        {
-            super.measure();
-        
-            layoutInvalidateSizeFlag = false;
-            _layout.measure();
-        }
-    }
-
-    /**
-     *  @private
-     */
-    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        if (_resizeMode == _SCALE_UINT)
-        {
-            unscaledWidth = measuredWidth;
-            unscaledHeight = measuredHeight;
-        }  
-        
-        super.updateDisplayList(unscaledWidth, unscaledHeight);
+        }       
 
         if (layoutInvalidateDisplayListFlag)
         {

     */
    mx_internal function graphicElementSizeChanged(e:IGraphicElement):void
    {
        // TODO!!! Optimize
        // Call super so that we don't invalidate the layout
        super.invalidateSize();
    }

        {
            _maskType = value;
            maskTypeChanged = true;
            invalidateDisplayList(); 
        }
    }

