flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [03/13] git commit: [flex-falcon] [refs/heads/feature/amf] - add 'transform' to the list of CSS functions. Maybe we should allow all functions, but then it won't catch misspelled functions. If other functions are needed, add it to these two files
Date Sun, 13 Aug 2017 22:03:41 GMT
add 'transform' to the list of CSS functions.  Maybe we should allow all functions, but then
it won't catch misspelled functions.  If other functions are needed, add it to these two files


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

Branch: refs/heads/feature/amf
Commit: 84170a2e868079f81f0369635591c77d97557832
Parents: 9827b9f
Author: Alex Harui <aharui@apache.org>
Authored: Sat Aug 5 21:00:13 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sat Aug 5 21:00:13 2017 -0700

----------------------------------------------------------------------
 .../internal/driver/js/flexjs/JSCSSCompilationSession.java      | 5 ++++-
 .../src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84170a2e/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
index 902b624..b96e410 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/flexjs/JSCSSCompilationSession.java
@@ -45,7 +45,8 @@ public class JSCSSCompilationSession extends CSSCompilationSession
 	         "linear-gradient",
 	         "progid:DXImageTransform.Microsoft.gradient",
 	         "translateX",
-	         "translateY"	
+	         "translateY",
+	         "translate"	
 	);
 	
     private ArrayList<String> requires;
@@ -443,6 +444,7 @@ public class JSCSSCompilationSession extends CSSCompilationSession
                 else if ("calc".equals(functionCall.name))
                 {
                     // TODO: implement me
+                	result.append("null");
                 }
                 else if ("Embed".equals(functionCall.name))
                 {
@@ -456,6 +458,7 @@ public class JSCSSCompilationSession extends CSSCompilationSession
                 else if (otherCSSFunctions.contains(functionCall.name))
                 {
                 	// ignore for now?
+                	result.append("null");
                 }
                 else
                 {

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84170a2e/compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g
----------------------------------------------------------------------
diff --git a/compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g b/compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g
index 1ed5192..7a43a7d 100644
--- a/compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g
+++ b/compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g
@@ -554,6 +554,7 @@ FUNCTIONS : '-moz-linear-gradient'
           | 'progid:DXImageTransform.Microsoft.gradient'
           | 'translateX'
           | 'translateY'
+          | 'translate'
           ;
 NOT
     :  'not'


Mime
View raw message