/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
- i;12;CGGeometry.ji;17;CPCompatibility.jc;599;
- CABackingStoreGetContext=function(_1){
- return _1.context;
- };
- if(CPFeatureIsCompatible(CPHTMLCanvasFeature)){
- CABackingStoreCreate=function(){
- var _2=document.createElement("canvas");
- _2.style.position="absolute";
- return {context:_2.getContext("2d"),buffer:_2,_image:_2};
- };
- CABackingStoreSetSize=function(_3,_4){
- var _5=_3.buffer;
- _5.width=_4.width;
- _5.height=_4.height;
- _5.style.width=_4.width+"px";
- _5.style.height=_4.height+"px";
- };
- }else{
- CABackingStoreCreate=function(){
- var _6=CGBitmapGraphicsContextCreate();
- _6.buffer="";
- return {context:_6};
- };
- CABackingStoreSetSize=function(_7,_8){
- };
- }