<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////


package spark.components.supportClasses
{

import spark.components.supportClasses.ScrollBar;
import spark.components.Group;
import mx.core.ILayoutElement;
import spark.core.IViewport;
import mx.core.ScrollPolicy;
import spark.layout.supportClasses.LayoutBase;
import spark.layout.supportClasses.LayoutElementFactory;
import spark.components.Scroller;
import spark.components.supportClasses.GroupBase;
import spark.components.supportClasses.Skin;

[ExcludeClass]

/**
 *  @private
 */
public class ScrollerLayout extends LayoutBase
{
    public function ScrollerLayout()    
    {
        super();
    }
    
    static private function LayoutElementFor(item:Object):ILayoutElement
    {
        return (item) ? LayoutElementFactory.getLayoutElementFor(item) : null;
    }
    
    private function getScroller():Scroller
    {
        var g:Skin = target as Skin;
        return (g) ? g.fxComponent as Scroller : null;
    }
    
    /**
     * @private
     *  Computes the union of the preferred size of the visible 
     *  scrollbars and the viewport.  
     * 
     *  This becomes the ScrollerSkin's measuredWidth,Height.
     *    
     *  The ScrollerSkin's minimum size is only big enough to 
     *  acccomodate the visible scrollbars.
     * 
     *  The viewport does not contribute to the minimum size.
     * 
     *  Note also: at updateDisplayList() time, we honor the vertical
     *  scrollbar's minimum height, and the horizontal scrollbar's 
     *  minimum width.  
     */
    override public function measure():void<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////


package spark.components.supportClasses
{

import spark.components.supportClasses.ScrollBar;
import spark.components.Group;
import mx.core.ILayoutElement;
import spark.core.IViewport;
import mx.core.ScrollPolicy;
import spark.layout.supportClasses.LayoutBase;
import spark.layout.supportClasses.LayoutElementFactory;
import spark.components.Scroller;
import spark.components.supportClasses.GroupBase;
import spark.components.supportClasses.Skin;

[ExcludeClass]

/**
 *  @private
 */
public class ScrollerLayout extends LayoutBase
{
    public function ScrollerLayout()    
    {
        super();
    }
    
    static private function LayoutElementFor(item:Object):ILayoutElement
    {
        return (item) ? LayoutElementFactory.getLayoutElementFor(item) : null;
    }
    
    private function getScroller():Scroller
    {
        var g:Skin = target as Skin;
        
        return (g && ("hostComponent" in g)) ? Object(g).hostComponent as Scroller : null;
    }
    
    /**
     * @private
     *  Computes the union of the preferred size of the visible 
     *  scrollbars and the viewport.  
     * 
     *  This becomes the ScrollerSkin's measuredWidth,Height.
     *    
     *  The ScrollerSkin's minimum size is only big enough to 
     *  acccomodate the visible scrollbars.
     * 
     *  The viewport does not contribute to the minimum size.
     * 
     *  Note also: at updateDisplayList() time, we honor the vertical
     *  scrollbar's minimum height, and the horizontal scrollbar's 
     *  minimum width.  
     */
    override public function measure():void
{'fraction_non_alphanumeric': 0.15206692913385828, 'fraction_numerical': 0.001968503937007874, 'mean_word_length': 2.2494004796163067, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3754054', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1025, 'n_words': 315}