You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2016/09/29 08:57:51 UTC
[2/4] git commit: [flex-falcon]
[refs/heads/feature-autobuild/maven-archetypes] - [QUICKFIX] Fix for missing
rgba option in css handling
[QUICKFIX] Fix for missing rgba option in css handling
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/7bafdada
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/7bafdada
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/7bafdada
Branch: refs/heads/feature-autobuild/maven-archetypes
Commit: 7bafdadabd61d365f5aa31e8e8fcb14028cae280
Parents: 830a316
Author: greg-dove <gr...@gmail.com>
Authored: Thu Sep 29 13:30:51 2016 +1300
Committer: greg-dove <gr...@gmail.com>
Committed: Thu Sep 29 13:30:51 2016 +1300
----------------------------------------------------------------------
.../js/flexjs/JSCSSCompilationSession.java | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7bafdada/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 c23d92b..86e44c4 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
@@ -31,15 +31,7 @@ import org.apache.flex.compiler.css.ICSSRule;
import org.apache.flex.compiler.css.ICSSSelector;
import org.apache.flex.compiler.css.ICSSSelectorCondition;
import org.apache.flex.compiler.internal.codegen.js.goog.JSGoogEmitterTokens;
-import org.apache.flex.compiler.internal.css.CSSArrayPropertyValue;
-import org.apache.flex.compiler.internal.css.CSSColorPropertyValue;
-import org.apache.flex.compiler.internal.css.CSSFontFace;
-import org.apache.flex.compiler.internal.css.CSSFunctionCallPropertyValue;
-import org.apache.flex.compiler.internal.css.CSSKeywordPropertyValue;
-import org.apache.flex.compiler.internal.css.CSSNumberPropertyValue;
-import org.apache.flex.compiler.internal.css.CSSProperty;
-import org.apache.flex.compiler.internal.css.CSSRgbColorPropertyValue;
-import org.apache.flex.compiler.internal.css.CSSStringPropertyValue;
+import org.apache.flex.compiler.internal.css.*;
import org.apache.flex.compiler.internal.css.codegen.CSSCompilationSession;
import com.google.common.base.Joiner;
@@ -289,6 +281,11 @@ public class JSCSSCompilationSession extends CSSCompilationSession
{
result.append(new Integer(((CSSRgbColorPropertyValue)val).getColorAsInt()));
}
+ else if (value instanceof CSSRgbaColorPropertyValue)
+ {
+ //todo: handle alpha in the RGBA ?
+ result.append(new Integer(((CSSRgbaColorPropertyValue)value).getColorAsInt()));
+ }
else if (val instanceof CSSKeywordPropertyValue)
{
CSSKeywordPropertyValue keywordValue = (CSSKeywordPropertyValue)val;
@@ -323,6 +320,11 @@ public class JSCSSCompilationSession extends CSSCompilationSession
{
result.append(new Integer(((CSSRgbColorPropertyValue)value).getColorAsInt()));
}
+ else if (value instanceof CSSRgbaColorPropertyValue)
+ {
+ //todo: handle alpha in the RGBA ?
+ result.append(new Integer(((CSSRgbaColorPropertyValue)value).getColorAsInt()));
+ }
else if (value instanceof CSSKeywordPropertyValue)
{
CSSKeywordPropertyValue keywordValue = (CSSKeywordPropertyValue)value;