flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - remove prefixes for actual css file
Date Sat, 10 Jan 2015 07:38:45 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 5f59503a7 -> f38cc7723


remove prefixes for actual css file


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/f38cc772
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/f38cc772
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/f38cc772

Branch: refs/heads/develop
Commit: f38cc7723efdec100ac41791da2e1abd3c925ff1
Parents: 5f59503
Author: Alex Harui <aharui@apache.org>
Authored: Fri Jan 9 23:37:44 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Jan 9 23:37:44 2015 -0800

----------------------------------------------------------------------
 .../internal/driver/js/flexjs/JSCSSCompilationSession.java      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f38cc772/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
b/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
index d4a67af..76fda8c 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
@@ -104,7 +104,12 @@ public class JSCSSCompilationSession extends CSSCompilationSession
 	        		s = s.substring(0, colon);
 	        	}
 	        	if (!htmlElementNames.contains(s.toLowerCase()))
+	        	{
+	        		int pipe = s.indexOf("|");
+	        		if (pipe != -1)
+	        			s = s.substring(pipe);
 	        		s = "." + s;
+	        	}
 	        	if (condition != null)
 	        		s = s + condition;
 	        }


Mime
View raw message