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 6b56762  include htmlelement type selectors in output
6b56762 is described below

commit 6b56762f8b0b7c67734fa6e83da9cf9002c407d9
Author: Alex Harui <[email protected]>
AuthorDate: Mon Mar 26 23:02:20 2018 -0700

    include htmlelement type selectors in output
---
 .../internal/driver/js/royale/JSCSSCompilationSession.java        | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
index e2e3086..5790aae 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/royale/JSCSSCompilationSession.java
@@ -506,6 +506,14 @@ public class JSCSSCompilationSession extends 
CSSCompilationSession
        if (!sp.contains("defaults.css"))
                return true;
        
+       // might need to loop over all selectors in selector group
+       if (newRule.getSelectorGroup().size() > 0)
+       {
+               String elementName = 
newRule.getSelectorGroup().get(0).getElementName();
+               if (elementName != null)
+                       if (htmlElementNames.contains(elementName))
+                               return true;
+       }
         return false;
     }
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to