Lines Matching refs:tokens
628 function BgPosition( tokens ) { argument
629 this.tokens = tokens;
642 var tokens = this.tokens,
643 len = tokens.length,
655 tokens.push( new Tokenizer.Token( type_ident, 'center' ) );
662 if( type_ident & ( tokens[0].tokenType | tokens[1].tokenType ) &&
663 … tokens[0].tokenValue in vert_idents && tokens[1].tokenValue in horiz_idents ) {
664 tokens.push( tokens.shift() );
666 if( tokens[0].tokenType & type_ident ) {
667 if( tokens[0].tokenValue === 'center' ) {
670 vals[0] = tokens[0].tokenValue;
673 else if( tokens[0].isLengthOrPercent() ) {
674 vals[1] = PIE.getLength( tokens[0].tokenValue );
676 if( tokens[1].tokenType & type_ident ) {
677 if( tokens[1].tokenValue === 'center' ) {
680 vals[2] = tokens[1].tokenValue;
683 else if( tokens[1].isLengthOrPercent() ) {
684 vals[3] = PIE.getLength( tokens[1].tokenValue );
942 this.tokens = [];
1019 me.tokens.push( tok );
1030 if( this.tokenIndex < this.tokens.length ) {
1031 return this.tokens[ this.tokenIndex++ ];
1164 return this.tokens[ this.tokenIndex-- - 2 ];
1173 return this.tokens;
2011 function distributeSides( tokens, convertFn ) { argument
2013 't': convertFn( tokens[0] ),
2014 'r': convertFn( tokens[1] || tokens[0] ),
2015 'b': convertFn( tokens[2] || tokens[0] ),
2016 'l': convertFn( tokens[3] || tokens[1] || tokens[0] )
3626 return bgPosition ? bgPosition.tokens.map(function(token) {