/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

  1. i;12;CGGeometry.ji;17;CPCompatibility.jc;599;
  2. CABackingStoreGetContext=function(_1){
  3. return _1.context;
  4. };
  5. if(CPFeatureIsCompatible(CPHTMLCanvasFeature)){
  6. CABackingStoreCreate=function(){
  7. var _2=document.createElement("canvas");
  8. _2.style.position="absolute";
  9. return {context:_2.getContext("2d"),buffer:_2,_image:_2};
  10. };
  11. CABackingStoreSetSize=function(_3,_4){
  12. var _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{
  19. CABackingStoreCreate=function(){
  20. var _6=CGBitmapGraphicsContextCreate();
  21. _6.buffer="";
  22. return {context:_6};
  23. };
  24. CABackingStoreSetSize=function(_7,_8){
  25. };
  26. }