Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E79E9095 for ; Wed, 11 Apr 2012 20:40:04 +0000 (UTC) Received: (qmail 62315 invoked by uid 500); 11 Apr 2012 20:40:03 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 62290 invoked by uid 500); 11 Apr 2012 20:40:03 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 62282 invoked by uid 99); 11 Apr 2012 20:40:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 20:40:03 +0000 X-ASF-Spam-Status: No, hits=2.6 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,TRACKER_ID X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of olegsivokon@gmail.com designates 209.85.210.175 as permitted sender) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 20:39:55 +0000 Received: by iaag37 with SMTP id g37so1816193iaa.6 for ; Wed, 11 Apr 2012 13:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4PyxBg6VmGaCb/wPbxuHyS6APd1OzAyotZxXVXLOr7Q=; b=pYQOv0k4xjWoOVEhkpx/RB4bFtYqhM+vONbv1QymMeXpaOpeZXrHnNWtr3IirtHSAN raco+K/TPKHlhfJIKb/+5Ru8+X66qoLWmoRO0ZubOmBnTA/GbQIeYMpUEnCWrHOgezXD gN4a1fboB+bGc0AcwYAbxw9iz8m7BifLXbFDiFlg6DbUZ65ASApBdDU8e1Nu4IWOP1r8 WxGrHSbZusfjlo7RKbCKEp65NLxEBaRkxLPnolLw/wm1GuXlNlNY8kHcdYvlNJ7dQmNj 7uZvDyC5UoXc42+jCnPKlAY/gngOmwQy9HcaaRxF7Ktv4dh+PDSr3fi8ND7xGH4NlSdW KpPQ== MIME-Version: 1.0 Received: by 10.50.45.167 with SMTP id o7mr8160144igm.22.1334176774554; Wed, 11 Apr 2012 13:39:34 -0700 (PDT) Received: by 10.43.124.200 with HTTP; Wed, 11 Apr 2012 13:39:34 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Apr 2012 23:39:34 +0300 Message-ID: Subject: Re: Framework: what do I need to do to initialize styles From: Left Right To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=14dae9340f83b7069304bd6d3c2e --14dae9340f83b7069304bd6d3c2e Content-Type: text/plain; charset=ISO-8859-1 > Registering the CSSStyleDeclaration in a SystemManagerImpl I think you meant StyleManagerImpl (style, not system), right? If so, how do I tell if it's registered? It does too many things you could call "register". Below are things that "register" something: registerInheritingStyle registerSizeInvalidatingStyle registerParentSizeInvalidatingStyle registerParentDisplayListInvalidatingStyle registerColorName and things related to loading (and possibly registering) loadStyleDeclarations loadStyleDeclarations2 However, of the register* functions none does anything important - they could be easily combined into one function that simply puts a style name into hash - they don't do anything beyond that. I think I tried calling all of them with arguments I could imagine they might take. load* functions seem to be related to the situation when style declarations are loaded from elsewhere. I hoped they would help, but they outsource all real work elsewhere, and then from that elsewhere it goes elsewhere else few times, and it ends nowhere (? I can't find what they actually do). So, I'm afraid to conclude none of this functions actually binds the styles tree to the display list (this is absolutely a miracle to me - I've no idea how it happens today. It used to be simpler in Flex 3). > component look up What do you mean when you say "look up"?... can you be more specific? The area of source code related to styles is extremely lengthy and lacking direction there are too many classes involved, and, unfortunately, components themselves play a very minor role in the process... When component gets the style through getStyle() they finds some of it, but, possibly, not all of it, they only find _skin_ if I set it by hand, otherwise they dont, but I can't set skins to all part of the component. This is roughly what happens: component.setStyle("skinClass", someClass); component.getStyle("skinClass"); // undefined Now, I can make a particular component find it's skin by calling component.styleChanged("skinClass"); but this doesn't help child components find their skins. I.e. there's a label in the button - so while the button finds it's styles, the label doesn't (and I can't call styleChanged on it). --14dae9340f83b7069304bd6d3c2e--