royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yish...@apache.org
Subject [royale-asjs] 01/03: Fix MaskBead for non-chrome browsers
Date Mon, 02 Apr 2018 17:52:28 GMT
This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch ace-editor
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 55440561f937ac32f27f20ba29b9b448663cc110
Author: DESKTOP-RH4S838\Yishay <yishayjobs@hotmail.com>
AuthorDate: Sun Feb 25 15:37:43 2018 +0200

    Fix MaskBead for non-chrome browsers
---
 .../Graphics/src/main/royale/org/apache/royale/svg/MaskBead.as   | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/MaskBead.as
b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/MaskBead.as
index 7eb2ac5..7fc74c4 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/MaskBead.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/MaskBead.as
@@ -19,6 +19,7 @@
 package org.apache.royale.svg
 {
 	
+	import org.apache.royale.core.ITransformHost;
 	import org.apache.royale.core.IBead;
 	import org.apache.royale.core.IRenderedObject;
 	import org.apache.royale.core.IStrand;
@@ -119,15 +120,15 @@ package org.apache.royale.svg
 		}
 
 		COMPILE::JS 
-		public function unmaskElement(renderedObject:IRenderedObject):void
+		public function unmaskElement(transformHost:ITransformHost):void
 		{
-			renderedObject.element.style["mask"] = "";
+			transformHost.transformElement.setAttribute("mask", "");
 		}
 
 		COMPILE::JS 
-		public function maskElement(renderedObject:IRenderedObject):void
+		public function maskElement(transformHost:ITransformHost):void
 		{
-			renderedObject.element.style["mask"] = "url(#" + maskElementId + ")";
+			transformHost.transformElement.setAttribute("mask", "url(#" + maskElementId + ")");
 		}
 	}
 }

-- 
To stop receiving notification emails like this one, please contact
yishayw@apache.org.

Mime
View raw message