Hello,

This is regarding the JIRA task
https://issues.apache.org/jira/browse/TRINIDAD-1415. I added a patch that
hopefully solves this issue.

In SkinStyleSheetParserUtils._createStyleSheetEntry(), when the parsing of
each selector is done, for each selector that is an alias (ends in ":alias")
I keep the list of selectors that reference that alias (have a
"-tr-rule-ref" to that alias). In the end, I add new -tr-properties for all
the selectors that reference the alias. The added -tr-property has the same
name as the property in the alias and the value the property in the alias.
Then in StyleSheetDocument, these properties are resolved, using an
algorithm similar to the one for StyleNode-s. The method in
FileSystemStyleCache that retrieves all properties is replaced then with a
call to the method in StyleSheetDocument that returns all the resolved
properties.

Could you please have a look over the patch and see whether it is ok.

Regards,
Marius

Reply via email to