PageRenderTime 21ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Frameworks/AppKit/rhino.platform/CABackingStore.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 26 lines | 26 code | 0 blank | 0 comment | 0 complexity | c48aa8ce9c1b6c3000d642b959fb20f0 MD5 | raw file
 1i;12;CGGeometry.ji;17;CPCompatibility.jc;599;
 2CABackingStoreGetContext=function(_1){
 3return _1.context;
 4};
 5if(CPFeatureIsCompatible(CPHTMLCanvasFeature)){
 6CABackingStoreCreate=function(){
 7var _2=document.createElement("canvas");
 8_2.style.position="absolute";
 9return {context:_2.getContext("2d"),buffer:_2,_image:_2};
10};
11CABackingStoreSetSize=function(_3,_4){
12var _5=_3.buffer;
13_5.width=_4.width;
14_5.height=_4.height;
15_5.style.width=_4.width+"px";
16_5.style.height=_4.height+"px";
17};
18}else{
19CABackingStoreCreate=function(){
20var _6=CGBitmapGraphicsContextCreate();
21_6.buffer="";
22return {context:_6};
23};
24CABackingStoreSetSize=function(_7,_8){
25};
26}