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 0a80d3f use string if CSS function is not known and this is a royale
project. Fixes #26
0a80d3f is described below
commit 0a80d3fbe8061bf797cc332cbcd62e7d3b022018
Author: Alex Harui <[email protected]>
AuthorDate: Tue Mar 13 15:07:34 2018 -0700
use string if CSS function is not known and this is a royale project.
Fixes #26
---
.../royale/compiler/internal/css/codegen/CSSReducer.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git
a/compiler/src/main/java/org/apache/royale/compiler/internal/css/codegen/CSSReducer.java
b/compiler/src/main/java/org/apache/royale/compiler/internal/css/codegen/CSSReducer.java
index 293bb40..171f1c9 100644
---
a/compiler/src/main/java/org/apache/royale/compiler/internal/css/codegen/CSSReducer.java
+++
b/compiler/src/main/java/org/apache/royale/compiler/internal/css/codegen/CSSReducer.java
@@ -527,8 +527,15 @@ public class CSSReducer implements ICSSCodeGenResult
}
else
{
- assert false : "CSS parser bug: unexpected function call
property value: " + functionCall;
- throw new IllegalStateException("Unexpected function call
property value: " + functionCall);
+ if (project.isRoyale())
+ {
+
valueInstructions.addInstruction(ABCConstants.OP_pushstring,
functionCall.toString());
+ }
+ else
+ {
+ assert false : "CSS parser bug: unexpected function
call property value: " + functionCall;
+ throw new IllegalStateException("Unexpected function
call property value: " + functionCall);
+ }
}
}
else if (value instanceof CSSArrayPropertyValue)
--
To stop receiving notification emails like this one, please contact
[email protected].