Sha256: cfebb8202fb49d9d40190c0a0e78bd169bdd507cbb4150630a2a513b2c0f771a

Contents?: true

Size: 1008 Bytes

Versions: 11

Compression:

Stored size: 1008 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

sc_require("views/view");
sc_require("views/view/layout");
sc_require("views/view/layout_style");

SC.View.reopen({

  /**
    Setting wantsAcceleratedLayer to YES will use transforms to move the
    layer when available. On some platforms transforms are hardware accelerated.
  */
  wantsAcceleratedLayer: NO,

  /**
    Specifies whether transforms can be used to move the layer.
  */
  hasAcceleratedLayer: function () {
    return (SC.platform.supportsCSSTransforms && this.get('wantsAcceleratedLayer') && this.get('isFixedLayout'));
  }.property('wantsAcceleratedLayer', 'isFixedLayout').cacheable()

});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js