      */
     public function commitStyles():void
     {
-        if ((getStyleFunction != defaultGetStyleFunction || styleProvider) && invalidateStyleFlag)
+        if (invalidateStyleFlag)
         {
-            var align:String = getStyleFunction("textAlign");
+            var align:String = getStyle("textAlign");
             if (align == "start")
                 align = TextFormatAlign.LEFT;
             if (align == "end")
                 align = TextFormatAlign.RIGHT;
             textFormat.align = align;
-            textFormat.font = getStyleFunction("fontFamily");
-            textFormat.bold = getStyleFunction("fontWeight") == "bold";
-            textFormat.color = getStyleFunction(colorName);
-            textFormat.size = getStyleFunction("fontSize");
-            textFormat.italic = getStyleFunction("fontStyle") == "italic";
-            textFormat.underline = getStyleFunction("textDecoration") == "underline";
-            textFormat.indent = getStyleFunction("textIndent");
-            textFormat.leading = getStyleFunction("leading");
-            textFormat.letterSpacing = getStyleFunction("letterSpacing");
-			var kerning:* = getStyleFunction("kerning");
+            textFormat.font = getStyle("fontFamily");
+            textFormat.bold = getStyle("fontWeight") == "bold";
+            textFormat.color = getStyle(colorName);
+            textFormat.size = getStyle("fontSize");
+            textFormat.italic = getStyle("fontStyle") == "italic";
+            textFormat.underline = getStyle("textDecoration") == "underline";
+            textFormat.indent = getStyle("textIndent");
+            textFormat.leading = getStyle("leading");
+            textFormat.letterSpacing = getStyle("letterSpacing");
+			var kerning:* = getStyle("kerning");
 			if (kerning == "auto" || kerning == "on")
 				kerning = true;
 			else if (kerning == "default" || kerning == "off")
 				kerning = false;
 			textFormat.kerning = kerning;
             
-			antiAliasType = getStyleFunction("fontAntiAliasType");
-			gridFitType = getStyleFunction("fontGridFitType");
-			sharpness = getStyleFunction("fontSharpness");
-			thickness = getStyleFunction("fontThickness");
+			antiAliasType = getStyle("fontAntiAliasType");
+			gridFitType = getStyle("fontGridFitType");
+			sharpness = getStyle("fontSharpness");
+			thickness = getStyle("fontThickness");
             
             // ignore padding in the text...most components deal with it themselves
-            //textFormat.leftMargin = getStyleFunction("paddingLeft");
-            //textFormat.rightMargin = getStyleFunction("paddingRight");
+            //textFormat.leftMargin = getStyle("paddingLeft");
+            //textFormat.rightMargin = getStyle("paddingRight");
 
             // Check for embedded fonts
             embedFonts = isFontEmbedded(textFormat);

 *  @playerversion AIR 2.0
 *  @productversion Flex 4.5
 */
public class StyleableTextField extends TextField implements IEditableText
{        
    
    //--------------------------------------------------------------------------

    
    /**
     *  @private
     *  Storage for the inline styles on this StyleableTextField instance
     * 
     *  There's no real need for _inlineStyleObject because we could 
     *  just piggy-back off of styleDeclaration (and create a new 
     *  CSSStyleDeclaration when setStyle() is called, but this is easier 
     *  and there seems to be less overhead with this approach).
     */
    private var _inlineStyleObject:Object;
    
    /**
     *  @private
     *  The padding to be added to textWidth to get the width
     *  of a TextField that can display the text without clipping.
     */ 
