royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-compiler] branch develop updated: turns out user specified css wasn't being included in the activated rules
Date Tue, 22 May 2018 20:00:54 GMT
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new aead241  turns out user specified css wasn't being included in the activated rules
aead241 is described below

commit aead24183990a92ff3f83deec541ec41a50481a0
Author: Alex Harui <aharui@apache.org>
AuthorDate: Tue May 22 13:00:45 2018 -0700

    turns out user specified css wasn't being included in the activated rules
---
 .../royale/compiler/internal/targets/RoyaleJSTarget.java   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/targets/RoyaleJSTarget.java
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/targets/RoyaleJSTarget.java
index 6a18bd5..22cddfd 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/targets/RoyaleJSTarget.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/targets/RoyaleJSTarget.java
@@ -203,6 +203,20 @@ public class RoyaleJSTarget extends JSTarget implements IJSTarget
             final ImmutableList<IDefinition> definitions =
                         Target.getAllExternallyVisibleDefinitions(allCompilationUnitsInTarget);
             final Collection<ICompilationUnit> cssDependencies = new HashSet<ICompilationUnit>();
+            // activate rules in user specified CSS
+            for (ICSSDocument cssDocument : cssCompilationSession.cssDocuments)
+            {
+                // Side-effects of this method:
+                // 1. Resolve all type selectors in the CSS model to IClassDefinition definitions.
+                // 2. Activate CSS rules whose subject is in the definition set.
+                final Collection<ICompilationUnit> dependentCUListFromCSS =
+                        cssManager.getDependentCompilationUnitsFromCSS(
+                                cssCompilationSession,
+                                cssDocument,
+                                definitions,
+                                problems);
+                cssDependencies.addAll(dependentCUListFromCSS);        	
+            }
             for (final ICSSDocument cssDocument : activatedStyleSheets.all())
             {
                 // Side-effects of this method:

-- 
To stop receiving notification emails like this one, please contact
aharui@apache.org.

Mime
View raw message