Lines Matching refs:PIE

8 var doc = document;var PIE = window['PIE'];  variable
10 if( !PIE ) {
11 PIE = window['PIE'] = {
78 PIE.ieVersion = ieVersion;
83 PIE.CSS_PREFIX = PIE.CSS_PREFIX.replace( /^-/, '' );
86 PIE.ieDocMode = doc.documentMode || PIE.ieVersion;
92 PIE.supportsVML = (typeof shape['adj'] === "object");
103 PIE.Util = {
190 PIE.GradientUtil = {
240 … p = PIE.GradientUtil.perpendicularIntersect( startX, startY, angle, endCornerX, endCornerY );
281 lineLength: PIE.GradientUtil.distance( startX, startY, endX, endY )
340 PIE.Observable = function() {
351 PIE.Observable.prototype = {
354 var id = PIE.Util.getUID( fn ),
364 var id = PIE.Util.getUID( fn ),
388 PIE.Heartbeat = new PIE.Observable();
389 PIE.Heartbeat.run = function() {
400 PIE.OnUnload = new PIE.Observable();
403 PIE.OnUnload.fire();
413 PIE.OnUnload.attachManagedEvent = function( target, name, handler ) {
422 PIE.OnResize = new PIE.Observable();
424 PIE.OnUnload.attachManagedEvent( window, 'onresize', function() { PIE.OnResize.fire(); } );
430 PIE.OnScroll = new PIE.Observable();
433 PIE.OnScroll.fire();
436 PIE.OnUnload.attachManagedEvent( window, 'onscroll', scrolled );
438 PIE.OnResize.observe( scrolled );
449 elements = PIE.Element.destroyAll();
455 PIE[ 'attach' ]( elements[i] );
461 PIE.OnUnload.attachManagedEvent( window, 'onbeforeprint', beforePrint );
462 PIE.OnUnload.attachManagedEvent( window, 'onafterprint', afterPrint );
467 PIE.OnMouseup = new PIE.Observable();
469 PIE.OnUnload.attachManagedEvent( doc, 'onmouseup', function() { PIE.OnMouseup.fire(); } );
477 PIE.Length = (function() {
586 else if( el.tagName in PIE.childlessElements ) {
589 return PIE.getLength( fs ).pixels( parent, function() {
610 PIE.getLength = function( val ) {
621 PIE.BgPosition = (function() {
623 var length_fifty = PIE.getLength( '50%' ),
644 Tokenizer = PIE.Tokenizer,
646 length_zero = PIE.getLength( '0' ),
674 vals[1] = PIE.getLength( tokens[0].tokenValue );
684 vals[3] = PIE.getLength( tokens[1].tokenValue );
726 PIE.BgSize = (function() {
777 PIE.Angle = (function() {
813 PIE.Color = (function() {
928 PIE.getColor = function(val) {
938 PIE.Tokenizer = (function() {
1099 … if( val.toLowerCase() in PIE.Color.names || val === 'currentColor' || val === 'transparent' ) {
1205 PIE.BoundsInfo = function( el ) {
1208 PIE.BoundsInfo.prototype = {
1227 isIE9 = PIE.ieDocMode === 9;
1263 var uid = PIE.Util.getUID( fn );
1275 PIE.StyleInfoBase = {
1289 PIE.Util.merge( StyleInfo.prototype, PIE.StyleInfoBase, proto );
1316 … prefixedCssProp = ctor._prefixedCssProp || ( ctor._prefixedCssProp = PIE.CSS_PREFIX + cssProp ),
1317 …prefixedStyleProp = ctor._prefixedStyleProp || ( ctor._prefixedStyleProp = PIE.STYLE_PREFIX + styl…
1358 PIE.BackgroundStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
1360 cssProperty: PIE.CSS_PREFIX + 'background',
1361 styleProperty: PIE.STYLE_PREFIX + 'Background',
1418 tok_type = PIE.Tokenizer.Type,
1433 …return token && ( ( token.isLengthOrPercent() && PIE.getLength( token.tokenValue ) ) || ( token.to…
1438 tokenizer = new PIE.Tokenizer( css );
1458 PIE.Util.merge( image, gradient );
1475 color: PIE.getColor( tokVal )
1480 stop.offset = PIE.getLength( token.tokenValue );
1487 gradient.angle = new PIE.Angle( token.tokenValue );
1491 gradient.gradientStart = new PIE.BgPosition(
1515 image.bgPosition = new PIE.BgPosition(
1543 props.color = PIE.getColor( tokVal );
1549 image.bgSize = new PIE.BgSize( token.tokenValue );
1557 image.bgSize = new PIE.BgSize( width, height );
1585 this.withActualBg( PIE.ieDocMode < 9 ?
1594 props.color = PIE.getColor( color )
1599 imgUrl: new PIE.Tokenizer( img ).next().tokenValue,
1601 … bgPosition: new PIE.BgPosition( new PIE.Tokenizer( posX + ' ' + posY ).all() )
1613 props.color = PIE.getColor( color )
1633 imgUrl: new PIE.Tokenizer( image ).next().tokenValue,
1635 … bgPosition: new PIE.BgPosition( new PIE.Tokenizer( positions[ i ] ).all() ),
1638 bgSize: new PIE.BgSize( sizeParts[ 0 ], sizeParts[ 1 ] )
1656 var isIE9 = PIE.ieDocMode > 8,
1693 getCss: PIE.StyleInfoBase.cacheWhenLocked( function() {
1703 getCss3: PIE.StyleInfoBase.cacheWhenLocked( function() {
1713 if( PIE.ieVersion < 7 ) {
1715 …val = ( '' + ( el.style[ PIE.STYLE_PREFIX + 'PngFix' ] || el.currentStyle.getAttribute( PIE.CSS_PR…
1726 isActive: PIE.StyleInfoBase.cacheWhenLocked( function() {
1735 PIE.BorderStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
1775 c[ ltr ] = PIE.getColor( color );
1777 …width = w[ ltr ] = PIE.getLength( s[ ltr ] === 'none' ? '0' : ( this.namedWidths[ width ] || width…
1794 getCss: PIE.StyleInfoBase.cacheWhenLocked( function() {
1800 …if( !( el.tagName in PIE.tableCellTags && el.offsetParent.currentStyle.borderCollapse === 'collaps…
1838 PIE.BorderRadiusStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
1849 tokenizer = new PIE.Tokenizer( css );
1854 length = PIE.getLength( token.tokenValue );
1876 … if( token.tokenType & PIE.Tokenizer.Type.OPERATOR && token.tokenValue === '/' ) {
1894 var zero = PIE.getLength( '0' ),
1896 PIE.BorderRadiusStyleInfo.ALL_ZERO = { x: zeros, y: zeros };
1903 PIE.BorderImageStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
1914 Type = PIE.Tokenizer.Type,
1920 tokenizer = new PIE.Tokenizer( css );
2021 … return PIE.getLength( ( tok.tokenType & NUMBER ) ? tok.tokenValue + 'px' : tok.tokenValue );
2026 … return tok.isLengthOrPercent() ? PIE.getLength( tok.tokenValue ) : tok.tokenValue;
2032 return tok.isLength() ? PIE.getLength( tok.tokenValue ) : tok.tokenValue;
2045 PIE.BoxShadowStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
2052 getLength = PIE.getLength,
2053 Type = PIE.Tokenizer.Type,
2057 tokenizer = new PIE.Tokenizer( css );
2094 color: PIE.getColor( color || 'currentColor' )
2112 PIE.VisibilityStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
2114 getCss: PIE.StyleInfoBase.cacheWhenLocked( function() {
2145 PIE.RendererBase = {
2159 PIE.Util.merge( Renderer.prototype, PIE.RendererBase, proto );
2182 prepareUpdate: PIE.emptyFn,
2270 shape = shapes[ name ] = PIE.Util.createVmlElement( 'shape' );
2272 shape.appendChild( shape[ subElName ] = PIE.Util.createVmlElement( subElName ) );
2452 isIE6 = PIE.ieVersion === 6,
2455 if( ( isIE6 && ( tag in PIE.childlessElements || tag === 'FIELDSET' ) ) ||
2456 tag === 'BUTTON' || ( tag === 'INPUT' && el.type in PIE.inputButtonTypes ) ) {
2462 rs[ 'padding' + side ] = ( PIE.getLength( cs[ 'padding' + side ] ) ).pixels( el ) +
2463 … ( PIE.getLength( cs[ 'border' + side + 'Width' ] ) ).pixels( el ) +
2464 …( PIE.ieVersion !== 8 && i % 2 ? 1 : 0 ); //needs an extra horizontal pixel to counteract the extr…
2514 PIE.RootRenderer = PIE.RendererBase.newRenderer( {
2543 if( tgtPos === 'fixed' && PIE.ieVersion > 6 ) {
2574 updateSize: PIE.emptyFn,
2591 return el.tagName in PIE.tableCellTags ? el.offsetParent : el;
2608 finishUpdate: PIE.emptyFn,
2627 PIE.BackgroundRenderer = PIE.RendererBase.newRenderer( {
2743 PIE.Util.withImageSize( shape.fill.src, function( size ) {
2766 …clipAdjust = PIE.ieVersion === 8 ? 0 : 1; //prior to IE8 requires 1 extra pixel in the image clip …
2806 GradientUtil = PIE.GradientUtil,
2899 PIE.RendererBase.destroy.call( this );
2912 PIE.BorderRenderer = PIE.RendererBase.newRenderer( {
3155 PIE.RendererBase.destroy.call( me );
3167 PIE.BorderImageRenderer = PIE.RendererBase.newRenderer( {
3189 PIE.Util.withImageSize( props.src, function( imgSize ) {
3192 zero = PIE.getLength( '0' ),
3267 piece = this.pieces[ pieceNames[i] ] = PIE.Util.createVmlElement( 'rect' );
3268 piece.appendChild( PIE.Util.createVmlElement( 'imagedata' ) );
3316 PIE.RendererBase.destroy.call( this );
3327 PIE.BoxShadowOutsetRenderer = PIE.RendererBase.newRenderer( {
3354 …clipAdjust = PIE.ieVersion === 8 ? 1 : 0, //workaround for IE8 bug where VML leaks out top/left of…
3404 radii = PIE.BorderRadiusStyleInfo.ALL_ZERO;
3464 PIE.ImgRenderer = PIE.RendererBase.newRenderer( {
3494 getLength = PIE.getLength,
3500 if( !borderWidths || PIE.ieVersion < 7 ) {
3501 zero = PIE.getLength( '0' );
3527 PIE.RendererBase.destroy.call( this );
3537 PIE.IE9RootRenderer = PIE.RendererBase.newRenderer( {
3539 updatePos: PIE.emptyFn,
3540 updateSize: PIE.emptyFn,
3541 updateVisibility: PIE.emptyFn,
3542 updateProps: PIE.emptyFn,
3576 PIE.IE9BackgroundRenderer = PIE.RendererBase.newRenderer( {
3603 bgSize = ( img.bgSize || PIE.BgSize.DEFAULT ).pixels(
3650 getLength = PIE.getLength;
3663 metrics = PIE.GradientUtil.getGradientMetrics( el, bgWidth, bgHeight, info ),
3729 PIE.IE9BorderImageRenderer = PIE.RendererBase.newRenderer( {
3756 PIE.Util.withImageSize( props.src, function( imgSize ) {
3774 zero = PIE.getLength( '0' ),
3889 prepareUpdate: PIE.BorderImageRenderer.prototype.prepareUpdate,
3900 PIE.Element = (function() {
3903 lazyInitCssProp = PIE.CSS_PREFIX + 'lazy-init',
3904 pollCssProp = PIE.CSS_PREFIX + 'poll',
3905 hoverClass = PIE.CLASS_PREFIX + 'hover',
3906 activeClass = PIE.CLASS_PREFIX + 'active',
3907 focusClass = PIE.CLASS_PREFIX + 'focus',
3908 firstChildClass = PIE.CLASS_PREFIX + 'first-child',
3949 boundsInfo = new PIE.BoundsInfo( el ),
3967 ieDocMode = PIE.ieDocMode,
3991 PIE.OnScroll.observe( init );
3996 PIE.OnScroll.unobserve( init );
4001 backgroundInfo: new PIE.BackgroundStyleInfo( el ),
4002 borderImageInfo: new PIE.BorderImageStyleInfo( el ),
4003 borderInfo: new PIE.BorderStyleInfo( el )
4009 rootRenderer = new PIE.IE9RootRenderer( el, boundsInfo, styleInfos );
4011 … new PIE.IE9BackgroundRenderer( el, boundsInfo, styleInfos, rootRenderer ),
4012 … new PIE.IE9BorderImageRenderer( el, boundsInfo, styleInfos, rootRenderer )
4017 backgroundInfo: new PIE.BackgroundStyleInfo( el ),
4018 borderInfo: new PIE.BorderStyleInfo( el ),
4019 borderImageInfo: new PIE.BorderImageStyleInfo( el ),
4020 borderRadiusInfo: new PIE.BorderRadiusStyleInfo( el ),
4021 boxShadowInfo: new PIE.BoxShadowStyleInfo( el ),
4022 visibilityInfo: new PIE.VisibilityStyleInfo( el )
4032 rootRenderer = new PIE.RootRenderer( el, boundsInfo, styleInfos );
4034 … new PIE.BoxShadowOutsetRenderer( el, boundsInfo, styleInfos, rootRenderer ),
4035 new PIE.BackgroundRenderer( el, boundsInfo, styleInfos, rootRenderer ),
4037 new PIE.BorderRenderer( el, boundsInfo, styleInfos, rootRenderer ),
4038 new PIE.BorderImageRenderer( el, boundsInfo, styleInfos, rootRenderer )
4041 … childRenderers.push( new PIE.ImgRenderer( el, boundsInfo, styleInfos, rootRenderer ) );
4052 PIE.Heartbeat.observe( update );
4053 PIE.Heartbeat.run();
4070 if( el.tagName in PIE.focusableElements ) {
4074 PIE.OnResize.observe( handleMoveOrResize );
4076 PIE.OnUnload.observe( removeEventListeners );
4205 PIE.OnMouseup.observe( mouseReleased );
4215 PIE.OnMouseup.unobserve( mouseReleased );
4279 PIE.OnUnload.unobserve( removeEventListeners );
4308 PIE.Heartbeat.unobserve( update );
4311 PIE.OnResize.unobserve( update );
4325 var watch = el.currentStyle.getAttribute( PIE.CSS_PREFIX + 'watch-ancestors' ),
4336 if( a.tagName in PIE.focusableElements ) {
4375 var id = PIE.Util.getUID( el );
4380 var id = PIE.Util.getUID( el ),
4419 PIE[ 'supportsVML' ] = PIE.supportsVML;
4426 PIE[ 'attach' ] = function( el ) { function
4427 if (PIE.ieDocMode < 10 && PIE.supportsVML) {
4428 PIE.Element.getInstance( el ).init();
4437 PIE[ 'detach' ] = function( el ) {
4438 PIE.Element.destroy( el );