[svn] 4806: Fixes for Advanced CSS applying to inner components.

Revision: 4806
Author: [email protected]
Date: 2009-02-02 21:01:18 -0800 (Mon, 02 Feb 2009)
Log Message:
Fixes for Advanced CSS applying to inner components. The changes involved three areas:
1. mx.styles.StyleProxy needed updating to support IAdvancedStyleClient
2. mx.styles.StyleProtoChain required refactoring so that advanced selector matching functionality could be shared outside of this class (see next). The main change is in StyleProtoChain.addProperties() which is recursively called to handle the case when styleName is set to another IStyleClient (instead of a String). The change concerns the order of building the proto chain for this special case. Before advanced CSS, it seems we recursively did the following in the addProperties() subroutine:
- Find type selectors, add to proto chain
- Examine styleName:
- if a CSSStyleDeclaration, add it to the proto chain next
- if a IStyleClient, recurse again by calling addProperties to this IStyleClient
- if a String, apply class selectors to proto chain
- Finally, add inline style declarations to proto chain
Advanced CSS might involve other universal selectors that aren't necessarily class selectors (such as id selectors), or we could have type selectors that are more specific that class selectors. So the new logic for Advanced CSS is:
- Examine styleName:
- if a CSSStyleDeclaration, add it to the list of selectors
- Get all matching selectors, sort by specificity, and add to the proto chain.
- Then, if styleName was an IStyleClient, recurse again by calling addProperties to this IStyleClient
- Finally, add inline styleDeclarations to proto chain
A styleName pointing to an IStyleClient means that it has a very high specificity and will override any other selector. The only thing that continues to always win are inline style declarations which are added last to the proto chain.
3. mx.core.UIComponent.initThemeColor() needed updating to support advanced CSS selectors. This required the use of a new utility method in StyleProtoChain to find matching selectors.
QA: Yes, please watch styles test results closely. Take a look at descendant/id/class selectors on more advanced components like DataGrid.
Doc: No
Checkintests: Pass
Reviewer: Glenn
Bugs:
SDK-17358 - [Advanced CSS] When using an id selector without a Type selector, styles are not passed onto sub components (e.g. the drop down of a ComboBox)
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17358
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProxy.as

Hi,
you define a CSS class in the document, e.g.
<style type="text/css">
.myClass{color:red;}
<style>
The myClass names now is what you add to the class property
Frank

Similar Messages

  • [svn:fx-trunk] 11593: Advanced CSS fix - descendant selectors should search for arbitrary ancestors including when the universal selector is used .

    Revision: 11593
    Author:   [email protected]
    Date:     2009-11-09 15:20:36 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Advanced CSS fix - descendant selectors should search for arbitrary ancestors including when the universal selector is used.
    QE notes: Please add test cases for arbitrary ancestor depth that involve using the universal * selector. Thanks for the additional testing on this patch too!
    Doc notes: N/A
    Bugs:
    SDK-23213 - descendent selectors can't catch components more than one level down
    Reviewer: Corey
    Tests run: Checkintests, test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23213
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as

    Welcome guy -
    Unless you are using Spry menus as a learning experience, you should move forward to a menus system that will display properly on the millions of portable devices that won't work with Spry which was deprecated 2 years ago.
    Many are using JQuery menus or pure HTML/CSS menus.
    If you wish to continue your Spry for learning experience, we'll be glad to assist; please let us know.
    By the way, your submenus are not showing because you need to add the red value to this rule in your vertical CSS
    ul.MenuBarVertical ul.MenuBarSubmenuVisible{
        width: 220px;
        left: 180px;

  • [svn] 4766: Fix for SDK-19005.

    Revision: 4766
    Author: [email protected]
    Date: 2009-01-30 11:56:35 -0800 (Fri, 30 Jan 2009)
    Log Message:
    Fix for SDK-19005. Additional Advanced CSS work needed where the universal selector * is the subject and the generated AS class needs to be seen as a valid AS name, so we continue to use global for the type name (but leave * as the subject).
    QA: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Paul
    Bugs:
    SDK-19005 - Application fails to compile after universal Advanced CSS selectors change
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19005
    http://bugs.adobe.com/jira/browse/SDK-19005
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

  • [svn] 3668: Fix for SDK-15941: selectedItem/ selectedIndex does not render as selected.

    Revision: 3668
    Author: [email protected]
    Date: 2008-10-15 15:25:04 -0700 (Wed, 15 Oct 2008)
    Log Message:
    Fix for SDK-15941: selectedItem/selectedIndex does not render as selected.
    Reviewer: Deepa
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15941
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as

    This bug figures out also when creating a custom spark ComboBox, then trying to programatically update the userProposedSelectedIndex property. The proposed selected index is selected, but does not apply the same skin as when mouse is on rollover or item is selected due to up and down keys.
    The issue seems like updating the status of the item renderer to rollover or selected to get the same skin applied.
    Please could you attach DropDow nList.as that you edited ?
    Thank you so much.

  • [svn] 3390: Fix for SDK-17067 - @exampleText does not work in mxml comments

    Revision: 3390
    Author: [email protected]
    Date: 2008-09-26 15:08:34 -0700 (Fri, 26 Sep 2008)
    Log Message:
    Fix for SDK-17067 - @exampleText does not work in mxml comments
    Fix for SDK-17076 - Mxml component with id but no mxml comment is not added to generated document
    QA: Yes
    Doc:
    Reviewed By: Pete
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17067
    http://bugs.adobe.com/jira/browse/SDK-17076
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

    Wow, that's an interesting one - seems as though the sharedCursorPane has
    some hard requirement that the base App be mx (this isn't terribly
    surprising, considering it was built with the mx components, but it's still
    a bug). Can you link against the source code (provided for player 10 now!),
    and change that line in sharedCursorPane :
    From :
    Application(mx.core.Application.application).stage.removeEventListener(Mouse
    Event.MOUSE_MOVE, onMouseMove);
    To :
    stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
    and see if that works for you? I can't honestly tell why we're using the
    line that was there... It's possible this was a workaround for another
    issue. Anyhow, if you wouldn't mind being the guinea pig for this one, we
    can get to the bottom of it.
      thanks!
       nigel

  • [svn] 4595: Fix for - Example code in ObjectProxy ASDoc page is incorrect

    Revision: 4595
    Author: [email protected]
    Date: 2009-01-20 08:11:25 -0800 (Tue, 20 Jan 2009)
    Log Message:
    Fix for - Example code in ObjectProxy ASDoc page is incorrect
    Also modify the build.xml for "ant asdoc"
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18335
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18335
    Modified Paths:
    flex/sdk/trunk/asdoc/build.xml
    flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as

    >
    build url like this,
    '<a href=f?p='||NV('APP_ID')||':45:'||V('APP_SESSION')||'::NO:RP,45,CIR:ub_branch,ub_supplier,ub_customer,ub_product,ub_aging,ub_destination:'||REPLACE(branch,' ','%20')||'%2C'||REPLACE(ub_supplier,' ','%20')||'%2C'||REPLACE(ub_customer,' ','%20')||'%2C'||REPLACE(ub_product,' ','%20')||'%2C'||REPLACE(ub_aging,' ','%20')||'%2C'||REPLACE(ub_destination,' ','%20') ||'>All</a>',All of this is handled by the apex_util.url_encode API function as described above.
    However, as also mentioned above, the best approach is to only pass discrete key values in URLs.

  • [svn] 3540: Fix for missing name of the exception class, when @ throw is used.

    Revision: 3540
    Author: [email protected]
    Date: 2008-10-09 11:20:44 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Fix for missing name of the exception class, when @throw is used.
    Also fixes for:
    SDK-17212 - Add a line feed between messages in the ASDoc validation_errors.log file.
    SDK-17242 - The Constants.as and GlobalFunctions.as classes from system classes need to have their content added to __Global__.xml
    SDK-17256 - For methods of the mx.components.Group class, args or return values of type Object do not appear in the ASDoc output.
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17212
    http://bugs.adobe.com/jira/browse/SDK-17242
    http://bugs.adobe.com/jira/browse/SDK-17256
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/class-files.xslt
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Revision: 3540
    Author: [email protected]
    Date: 2008-10-09 11:20:44 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Fix for missing name of the exception class, when @throw is used.
    Also fixes for:
    SDK-17212 - Add a line feed between messages in the ASDoc validation_errors.log file.
    SDK-17242 - The Constants.as and GlobalFunctions.as classes from system classes need to have their content added to __Global__.xml
    SDK-17256 - For methods of the mx.components.Group class, args or return values of type Object do not appear in the ASDoc output.
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17212
    http://bugs.adobe.com/jira/browse/SDK-17242
    http://bugs.adobe.com/jira/browse/SDK-17256
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/class-files.xslt
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

  • [svn] 3403: Fix for SDK-17097 - Missing summary description of a class in package classes table

    Revision: 3403
    Author: [email protected]
    Date: 2008-09-29 12:36:37 -0700 (Mon, 29 Sep 2008)
    Log Message:
    Fix for SDK-17097 - Missing summary description of a class in package classes table
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17097
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/class-files.xslt

    Well, it's kind of logical that as you put more jar files (classes) in Tomcat, it changes the error to ask for the classes (inside a jar) it cannot find.
    There was a good class->jar finder on the internet some years ago, but i don't remember the address. Try looking for that and search all the missing classes (NotDefined) and their correspondig jar files.
    Good Luck!

  • [svn] 2210: Fix for layout issue of AIR apps on mac when only width or height is

    Revision: 2210
    Author: [email protected]
    Date: 2008-06-24 11:56:52 -0700 (Tue, 24 Jun 2008)
    Log Message:
    Fix for layout issue of AIR apps on mac when only width or height is
    set on root WindowedApplication tag.
    Bugs: SDK-14643.
    QA: Yes, very much so.
    Reviewer: Ryan
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-14643
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/core/WindowedApplication. as

    Updates:
    I've opened a bug with Adobe regarding this issue:
    http://bugs.adobe.com/jira/browse/FP-4362
    Also, the Cancel operation on a FileReference causes the same issue to happen as does loading.  I really think it's an operating system focus issue.
    UPDATE:
    Looks like this has already been tracked and is scheduled to be fixed:
    https://bugs.adobe.com/jira/browse/FP-2785

  • [svn] 2147: fix for bug SDK-14871:

    Revision: 2147
    Author: [email protected]
    Date: 2008-06-19 09:12:19 -0700 (Thu, 19 Jun 2008)
    Log Message:
    fix for bug SDK-14871:
    A few cases dealing with arrays of registered strongly typed AS objects run into this issue.
    QA: please verify
    Doc: n/a
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-14871
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as

  • [svn] 2145: fix for Bug SDK-14927:

    Revision: 2145
    Author: [email protected]
    Date: 2008-06-19 08:52:01 -0700 (Thu, 19 Jun 2008)
    Log Message:
    fix for Bug SDK-14927:
    An empty SOAP-encoded array was being decoded incorrectly as an array with one (null) element.
    QA: regressions run fine, but we should double-check that we are covering all similar edge cases
    Doc: n/a
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-14927
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/rpc/soap/types/SOAPArrayType.as

  • [svn] 4129: Fix for - the @inheritDoc tag in an ASDoc comment: is not pulling in a comment from UIComponent

    Revision: 4129
    Author: [email protected]
    Date: 2008-11-17 14:57:15 -0800 (Mon, 17 Nov 2008)
    Log Message:
    Fix for - the @inheritDoc tag in an ASDoc comment: is not pulling in a comment from UIComponent
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18127, SDK-13592
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18127
    http://bugs.adobe.com/jira/browse/SDK-13592
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsClass.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    logged bug:
    Bug No: 5203064 LINE ENDING WITH ';' IN A COMMENT ENDS SQL STATEMENT,LIKE SQLPLUS BUT UNEXPECTED
    Note that:
    SELECT COUNT(*)
    FROM all_objects
    /* WHERE OBJECT_NAME LIKE 'A%';
    WHERE object_name LIKE 'Z%';
    Ends sql statement on the first ';', just like in sqlplus

  • [svn] 4669: Fix for - compiled SWF varies depending on version of java pointed

    Revision: 4669
    Author: [email protected]
    Date: 2009-01-26 11:00:48 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Fix for - compiled SWF varies depending on version of java pointed
    QE Notes: Some mustella tests may need to be updated, as includes will be processed as per the order specified during compilation.
    Doc Notes: None
    Bugs: SDK-18168
    Reviewed By: Paul
    tests: checkintests, mxmlcunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18168
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java

    Revision: 4669
    Author: [email protected]
    Date: 2009-01-26 11:00:48 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Fix for - compiled SWF varies depending on version of java pointed
    QE Notes: Some mustella tests may need to be updated, as includes will be processed as per the order specified during compilation.
    Doc Notes: None
    Bugs: SDK-18168
    Reviewed By: Paul
    tests: checkintests, mxmlcunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18168
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java

  • [svn] 3968: Fix for - ASDoc fails if example code included by the @ includeExample tag contains an "&"

    Revision: 3968
    Author: [email protected]
    Date: 2008-10-30 10:45:04 -0700 (Thu, 30 Oct 2008)
    Log Message:
    Fix for - ASDoc fails if example code included by the @includeExample tag contains an "&"
    Also fix for broken links with $$ symbol.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17830
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17830
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Revision: 3968
    Author: [email protected]
    Date: 2008-10-30 10:45:04 -0700 (Thu, 30 Oct 2008)
    Log Message:
    Fix for - ASDoc fails if example code included by the @includeExample tag contains an "&"
    Also fix for broken links with $$ symbol.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17830
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17830
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

  • [svn] 4184: Fix for @ see tag referencing a non-global package function generates an empty link@ href in DITA

    Revision: 4184
    Author: [email protected]
    Date: 2008-11-25 12:33:43 -0800 (Tue, 25 Nov 2008)
    Log Message:
    Fix for @see tag referencing a non-global package function generates an empty link@href in DITA
    Also now the deprecated should show up in the property and method summary table.
    and when @see results in an invalid href, an additional attribute called invalidHRef will be added to the dita file - this isn't picked up by xslt but will be consumed by FB.
    QE Notes: Some baselines may need to be updated due to new attribute for invalidHRef
    Doc Notes: None
    Bugs: SDK-18206
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18206
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/asdoc-util.xslt
    flex/sdk/trunk/asdoc/templates/class-files.xslt
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Update!
    v3.1 has a major bug! Even though it may appear to work properly, strange characters may leak onto the end of URLs, and you may even get segfaults. Sorry I didn't properly test it before releasing it!
    Technical details:
    I calloc()ed the memory for the link href improperly, per:
    link = calloc((noprepend ? 0 : urllen) + i - s, 1);
    Once I fixed it with "+ 1", per:
    link = calloc((noprepend ? 0 : urllen) + i - s + 1, 1);
    it worked great.
    I may use a method that doesn't use a calloc() in the future; this works for now, and I'm not gonna knock it...
    Last edited by dav7 (2009-01-23 12:38:51)

Maybe you are looking for

  • 11.5.10.2 Installation on windows 2003 server  Cygwin Software.

    Hi I used Cygwin instead of Mks tool kit in apps 11i(11.5.10.2) on windows 2003 server. Installation is completed succefully. I am able to open the forms without error. But while patching I am facing problem. for testing the Cygwin implementation I t

  • Expand af:column vertically

    Hi , I have an ADF table that contains one column and goLink in that column like: <af:column id="c6" inlineStyle="vertical-align:top;"                                align="center" width="330">                       <af:goLink text="#{row.abc}" id="g

  • Firefox 3.6.4 disables aero

    Firefox 3.6.4 appears to disable aero when I run a flash based page. However only Aero on the browser is disabled and the theme is still enabled on other windows. == This happened == Every time Firefox opened == I upgraded to 3.6.4

  • Document Size, Trim Size, Image Size

    I have InDesign CS6 and I cannot figure out how to change the document size, trim size, and image size on a documnet I have been working on. (It is a 52 page document if that makes a difference). Thank you!!

  • Mitigation controls - mitigating reports

    Hi all, I have a question regarding the frequency field in Reports tab of mitigating controls (RAR). What is the purpose of the frequency field. If you set this to 1, does that mean that the control is to be executed daily? Does the system send a mai