Replace makeCssRgb.apply with direct call (avoiding Chrome 16 typed array issue)
This commit is contained in:
		
							parent
							
								
									a908827175
								
							
						
					
					
						commit
						9eaf746a33
					
				| @ -94,9 +94,9 @@ Shadings.RadialAxial = (function RadialAxialClosure() { | |||||||
| 
 | 
 | ||||||
|     var colorStops = []; |     var colorStops = []; | ||||||
|     for (var i = t0; i <= t1; i += step) { |     for (var i = t0; i <= t1; i += step) { | ||||||
|       var color = fn([i]); |       var rgbColor = cs.getRgb(fn([i])); | ||||||
|       var rgbColor = Util.makeCssRgb.apply(this, cs.getRgb(color)); |       var cssColor = Util.makeCssRgb(rgbColor[0], rgbColor[1], rgbColor[2]); | ||||||
|       colorStops.push([(i - t0) / diff, rgbColor]); |       colorStops.push([(i - t0) / diff, cssColor]); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     this.colorStops = colorStops; |     this.colorStops = colorStops; | ||||||
| @ -234,9 +234,9 @@ var TilingPattern = (function TilingPatternClosure() { | |||||||
|         tmpCtx.strokeStyle = ctx.strokeStyle; |         tmpCtx.strokeStyle = ctx.strokeStyle; | ||||||
|         break; |         break; | ||||||
|       case PaintType.UNCOLORED: |       case PaintType.UNCOLORED: | ||||||
|         color = Util.makeCssRgb.apply(this, color); |         var cssColor = Util.makeCssRgb(this, color[0], color[1], color[2]); | ||||||
|         tmpCtx.fillStyle = color; |         tmpCtx.fillStyle = cssColor; | ||||||
|         tmpCtx.strokeStyle = color; |         tmpCtx.strokeStyle = cssColor; | ||||||
|         break; |         break; | ||||||
|       default: |       default: | ||||||
|         error('Unsupported paint type: ' + paintType); |         error('Unsupported paint type: ' + paintType); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user