Skip to content

Commit

Permalink
Make BackfaceVisibility generic.
Browse files Browse the repository at this point in the history
  • Loading branch information
danzel committed Jun 18, 2012
1 parent 063341c commit 60f4a70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dom/DomUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ L.DomUtil = {
el._leaflet_pos = point;
if (L.Browser.any3d) {
el.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(point);
el.style[(L.Browser.webkit3d ? '-webkit' : '-moz') + '-backface-visibility'] = 'hidden';
el.style[L.DomUtil.BACKFACEVISIBILITY] = 'hidden';
} else {
el.style.left = point.x + 'px';
el.style.top = point.y + 'px';
Expand All @@ -156,6 +156,7 @@ L.DomUtil = {
L.Util.extend(L.DomUtil, {
TRANSITION: L.DomUtil.testProp(['transition', 'webkitTransition', 'OTransition', 'MozTransition', 'msTransition']),
TRANSFORM: L.DomUtil.testProp(['transformProperty', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform']),
BACKFACEVISIBILITY: L.DomUtil.testProp(['backfaceVisibility', 'WebkitBackfaceVisibility', 'OBackfaceVisibility', 'MozBackfaceVisibility', 'msBackfaceVisibility']),

TRANSLATE_OPEN: 'translate' + (L.Browser.webkit3d ? '3d(' : '('),
TRANSLATE_CLOSE: L.Browser.webkit3d ? ',0)' : ')'
Expand Down

0 comments on commit 60f4a70

Please sign in to comment.