rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
onStateChange: Class.empty | evalResponse: false, method: 'post' | moreOptions: function(){ return { postBody: null, update: null, evalScripts: false, onStateChange: Class.empty }; }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/ee45bcbdda9f41e1d047aeccacc4bf8768c2c67b/Ajax.js/buggy/Remote/Ajax.js |
onStateChange: Class.empty | evalResponse: false, method: 'post' | moreOptions: function(){ return { postBody: null, update: null, evalScripts: false, onStateChange: Class.empty }; }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/ee45bcbdda9f41e1d047aeccacc4bf8768c2c67b/Ajax.js/clean/Remote/Ajax.js |
morse: function() { if( Morse.running) { // select random letter Morse.morsenowindex = Math.round((Morse.code.length - 1)*Math.random()); // show in background var morse_mybodys = window.content.document.getElementsByTagName("body"); if( morse_mybodys.length > 0) { // foreach body for( var morse_i = 0; morse_i < morse_mybodys.length; morse_i++) { if( morse_mybodys[morse_i]) { morse_mybodys[morse_i].setAttribute("background", "chrome://morse/skin/" + Morse.letter[Morse.morsenowindex] + ".png"); } } } // try to change each frame's background image var morse_myframes = window.content.frames; if( morse_myframes) { if( morse_myframes.length > 0) { // foreach frame for( var morse_j = 0; morse_j < morse_myframes.length; morse_j++) { var morse_myframebodys = morse_myframes[morse_j].document.getElementsByTagName("body"); // foreach 'body' for( var morse_k = 0; morse_k < morse_myframebodys.length; morse_k++) { if( morse_myframebodys[morse_k]) { morse_myframebodys[morse_k].setAttribute("background", "chrome://morse/skin/" + Morse.letter[Morse.morsenowindex] + ".png"); } } } } } // show in toolbar Morse.displayletter.setAttribute("value", Morse.letter[Morse.morsenowindex] + " " + Morse.code[Morse.morsenowindex]); // start beeping Morse.morseletter(Morse.code[Morse.morsenowindex]); // time next letter setTimeout("Morse.morse()", pref_letterpause); } }, | 8618 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8618/19c99b4fa7d7501560e573d2b1e1c428c058e2c6/overlay.js/clean/src/content/overlay.js |
||
"setup bg input " + value( 'mosaic_bg_input' ) + "\n"; | "setup bg input " + sanitize_input( value( 'mosaic_bg_input' ) ) + "\n"; | function mosaic_code_update(){ var code = document.getElementById( 'mosaic_code' ); code.value ="##################################\n"+"## HTTP interface mosaic wizard ##\n"+"##################################\n"+"\n"+"# Comment the following line if you don't want to reset your VLM configuration\n"+"del all\n"+"\n"+"# Background options\n"+"new bg broadcast enabled\n"+"setup bg input " + value( 'mosaic_bg_input' ) + "\n"; if( value( 'mosaic_output' ) ) { code.value +="setup bg output " + value( 'mosaic_output' )+ "\n"; } var o = /.*transcode.*/; if(! o.test( value( 'mosaic_output' ) ) ) { code.value +="setup bg option sub-filter=mosaic\n"; } code.value+="\n"+"# Mosaic options\n"+"setup bg option mosaic-alpha=" + mosaic_alpha + "\n"+"setup bg option mosaic-height=" + mosaic_height + "\n"+"setup bg option mosaic-width=" + mosaic_width + "\n"+"setup bg option mosaic-align=" + mosaic_align + "\n"+"setup bg option mosaic-xoffset=" + mosaic_xoffset + "\n"+"setup bg option mosaic-yoffset=" + mosaic_yoffset + "\n"+"setup bg option mosaic-vborder=" + mosaic_vborder + "\n"+"setup bg option mosaic-hborder=" + mosaic_hborder + "\n"+"setup bg option mosaic-position=" + mosaic_position + "\n"+"setup bg option mosaic-rows=" + mosaic_rows + "\n"+"setup bg option mosaic-cols=" + mosaic_cols + "\n"+"setup bg option mosaic-order="; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) code.value += cells[id]; else code.value += '_'; if( y != mosaic_rows - 1 || x != mosaic_cols - 1 ) code.value += ','; } } code.value += "\n"+"setup bg option mosaic-delay=" + mosaic_delay + "\n"+"setup bg option mosaic-keep-picture\n"+"\n"+"# Input options\n"; var x, y; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) { var s = cells[id]; code.value +="new " + s + " broadcast enabled\n"+"setup " + s + " input " + streams[s] + "\n"+"setup " + s + " output #duplicate{dst=mosaic-bridge{id=" + s + ",width="+cell_width+",height="+cell_height+"},select=video,dst=bridge-out,select=audio}\n"+"\n"; } } } code.value +="# Launch everything\n"+"control bg play\n"; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) { var s = cells[id]; code.value +="control " + s + " play\n"; } } } code.value +="\n"+"# end of mosaic batch\n";} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/1069842422c60a1496592abe8e6a37e8482831e9/mosaic.js/buggy/share/http/js/mosaic.js |
"setup " + s + " input " + streams[s] + "\n"+ | "setup " + s + " input " + sanitize_input( streams[s] ) + "\n"+ | function mosaic_code_update(){ var code = document.getElementById( 'mosaic_code' ); code.value ="##################################\n"+"## HTTP interface mosaic wizard ##\n"+"##################################\n"+"\n"+"# Comment the following line if you don't want to reset your VLM configuration\n"+"del all\n"+"\n"+"# Background options\n"+"new bg broadcast enabled\n"+"setup bg input " + value( 'mosaic_bg_input' ) + "\n"; if( value( 'mosaic_output' ) ) { code.value +="setup bg output " + value( 'mosaic_output' )+ "\n"; } var o = /.*transcode.*/; if(! o.test( value( 'mosaic_output' ) ) ) { code.value +="setup bg option sub-filter=mosaic\n"; } code.value+="\n"+"# Mosaic options\n"+"setup bg option mosaic-alpha=" + mosaic_alpha + "\n"+"setup bg option mosaic-height=" + mosaic_height + "\n"+"setup bg option mosaic-width=" + mosaic_width + "\n"+"setup bg option mosaic-align=" + mosaic_align + "\n"+"setup bg option mosaic-xoffset=" + mosaic_xoffset + "\n"+"setup bg option mosaic-yoffset=" + mosaic_yoffset + "\n"+"setup bg option mosaic-vborder=" + mosaic_vborder + "\n"+"setup bg option mosaic-hborder=" + mosaic_hborder + "\n"+"setup bg option mosaic-position=" + mosaic_position + "\n"+"setup bg option mosaic-rows=" + mosaic_rows + "\n"+"setup bg option mosaic-cols=" + mosaic_cols + "\n"+"setup bg option mosaic-order="; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) code.value += cells[id]; else code.value += '_'; if( y != mosaic_rows - 1 || x != mosaic_cols - 1 ) code.value += ','; } } code.value += "\n"+"setup bg option mosaic-delay=" + mosaic_delay + "\n"+"setup bg option mosaic-keep-picture\n"+"\n"+"# Input options\n"; var x, y; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) { var s = cells[id]; code.value +="new " + s + " broadcast enabled\n"+"setup " + s + " input " + streams[s] + "\n"+"setup " + s + " output #duplicate{dst=mosaic-bridge{id=" + s + ",width="+cell_width+",height="+cell_height+"},select=video,dst=bridge-out,select=audio}\n"+"\n"; } } } code.value +="# Launch everything\n"+"control bg play\n"; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) { var s = cells[id]; code.value +="control " + s + " play\n"; } } } code.value +="\n"+"# end of mosaic batch\n";} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/1069842422c60a1496592abe8e6a37e8482831e9/mosaic.js/buggy/share/http/js/mosaic.js |
"# Comment the following line if you don't want to reset you VLM configuration\n"+ | "# Comment the following line if you don't want to reset your VLM configuration\n"+ | function mosaic_code_update(){ var code = document.getElementById( 'mosaic_code' ); code.value ="##################################\n"+"## HTTP interface mosaic wizard ##\n"+"##################################\n"+"\n"+"# Comment the following line if you don't want to reset you VLM configuration\n"+"del all\n"+"\n"+"# Background options\n"+"new bg broadcast enabled\n"+"setup bg input " + value( 'mosaic_bg_input' ) + "\n"; if( value( 'mosaic_output' ) ) { code.value +="setup bg output " + value( 'mosaic_output' )+ "\n"; } var o = /.*transcode.*/; if(! o.test( value( 'mosaic_output' ) ) ) { code.value +="setup bg option sub-filter=mosaic\n"; } code.value+="\n"+"# Mosaic options\n"+"setup bg option mosaic-alpha=" + mosaic_alpha + "\n"+"setup bg option mosaic-height=" + mosaic_height + "\n"+"setup bg option mosaic-width=" + mosaic_width + "\n"+"setup bg option mosaic-align=" + mosaic_align + "\n"+"setup bg option mosaic-xoffset=" + mosaic_xoffset + "\n"+"setup bg option mosaic-yoffset=" + mosaic_yoffset + "\n"+"setup bg option mosaic-vborder=" + mosaic_vborder + "\n"+"setup bg option mosaic-hborder=" + mosaic_hborder + "\n"+"setup bg option mosaic-position=" + mosaic_position + "\n"+"setup bg option mosaic-rows=" + mosaic_rows + "\n"+"setup bg option mosaic-cols=" + mosaic_cols + "\n"+"setup bg option mosaic-order="; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) code.value += cells[id]; else code.value += '_'; if( y != mosaic_rows - 1 || x != mosaic_cols - 1 ) code.value += ','; } } code.value += "\n"+"setup bg option mosaic-delay=" + mosaic_delay + "\n"+"setup bg option mosaic-keep-picture\n"+"\n"+"# Input options\n"; var x, y; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) { var s = cells[id]; code.value +="new " + s + " broadcast enabled\n"+"setup " + s + " input " + streams[s] + "\n"+"setup " + s + " output #duplicate{dst=mosaic-bridge{id=" + s + ",width="+cell_width+",height="+cell_height+"},select=video,dst=bridge-out,select=audio}\n"+"\n"; } } } code.value +="# Launch everything\n"+"control bg play\n"; for( y = 0; y < mosaic_rows; y++ ) { for( x = 0; x < mosaic_cols; x++ ) { var id = x+'_'+y; if( cells[id] ) { var s = cells[id]; code.value +="control " + s + " play\n"; } } } code.value +="\n"+"# end of mosaic batch\n";} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/f94136178c6feb8f94d3ae306a1304e9f2ceb4f6/mosaic.js/clean/share/http/js/mosaic.js |
document.getElementById( 'sout_extra' ).value = ",sfilter=mosaic"; | document.getElementById( 'sout_transcode_extra' ).value = ",sfilter=mosaic"; | function mosaic_init(){ document.getElementById( 'sout_extra' ).value = ",sfilter=mosaic"; mosaic_size_change();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/07e5db519cd987dc55b6c0f666f24d8868e19aee/mosaic.js/clean/share/http/js/mosaic.js |
/* Force usage of transcode in sout */ document.getElementById( 'sout_vcodec_s' ).checked = 'checked'; disable( 'sout_vcodec_s' ); update_sout(); | function mosaic_init(){ document.getElementById( 'sout_extra' ).value = ",sfilter=mosaic"; mosaic_size_change();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/07e5db519cd987dc55b6c0f666f24d8868e19aee/mosaic.js/clean/share/http/js/mosaic.js |
|
mdt.setAttribute( 'class', 'mosaic_tbl' ); | setclass( mdt, 'mosaic_tbl' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); mdt.setAttribute( 'class', 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); mcell.setAttribute( 'class', 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var melt = document.createElement( 'input' ); melt.setAttribute( 'type', 'button' ); var id = x+'_'+y; melt.setAttribute( 'id', id ); melt.setAttribute( 'onclick', 'mosaic_elt_choose(\''+id+'\');' ); if( cells[id] ) melt.setAttribute( 'value', cells[id] ); else melt.setAttribute( 'value', '?' ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/610ac485f763ba73af5065423814cbd1fa9131b2/mosaic.js/clean/share/http/js/mosaic.js |
mcell.setAttribute( 'class', 'mosaic_itm' ); | setclass( mcell, 'mosaic_itm' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); mdt.setAttribute( 'class', 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); mcell.setAttribute( 'class', 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var melt = document.createElement( 'input' ); melt.setAttribute( 'type', 'button' ); var id = x+'_'+y; melt.setAttribute( 'id', id ); melt.setAttribute( 'onclick', 'mosaic_elt_choose(\''+id+'\');' ); if( cells[id] ) melt.setAttribute( 'value', cells[id] ); else melt.setAttribute( 'value', '?' ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/610ac485f763ba73af5065423814cbd1fa9131b2/mosaic.js/clean/share/http/js/mosaic.js |
var melt = document.createElement( 'input' ); melt.setAttribute( 'type', 'button' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); mdt.setAttribute( 'class', 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); mcell.setAttribute( 'class', 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var melt = document.createElement( 'input' ); melt.setAttribute( 'type', 'button' ); var id = x+'_'+y; melt.setAttribute( 'id', id ); melt.setAttribute( 'onclick', 'mosaic_elt_choose(\''+id+'\');' ); if( cells[id] ) melt.setAttribute( 'value', cells[id] ); else melt.setAttribute( 'value', '?' ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/610ac485f763ba73af5065423814cbd1fa9131b2/mosaic.js/clean/share/http/js/mosaic.js |
|
melt.setAttribute( 'onclick', 'mosaic_elt_choose(\''+id+'\');' ); if( cells[id] ) melt.setAttribute( 'value', cells[id] ); else melt.setAttribute( 'value', '?' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); mdt.setAttribute( 'class', 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); mcell.setAttribute( 'class', 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var melt = document.createElement( 'input' ); melt.setAttribute( 'type', 'button' ); var id = x+'_'+y; melt.setAttribute( 'id', id ); melt.setAttribute( 'onclick', 'mosaic_elt_choose(\''+id+'\');' ); if( cells[id] ) melt.setAttribute( 'value', cells[id] ); else melt.setAttribute( 'value', '?' ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/610ac485f763ba73af5065423814cbd1fa9131b2/mosaic.js/clean/share/http/js/mosaic.js |
|
/* TODO: keep 'common' cells when resizing */ | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); setclass( mdt, 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); setclass( mcell, 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var id = x+'_'+y; var melt = create_button( cells[id] ? cells[id] : '?', 'mosaic_elt_choose(\"'+id+'\");' ); melt.setAttribute( 'id', id ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/4dfd839aff9cfb0e3cd0e30b92e60af388bb0fc7/mosaic.js/buggy/share/http/js/mosaic.js |
|
mtable.appendChild( mrow ); | mtbody.appendChild( mrow ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); setclass( mdt, 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); setclass( mcell, 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var id = x+'_'+y; var melt = create_button( cells[id] ? cells[id] : '?', 'mosaic_elt_choose(\"'+id+'\");' ); melt.setAttribute( 'id', id ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/4dfd839aff9cfb0e3cd0e30b92e60af388bb0fc7/mosaic.js/buggy/share/http/js/mosaic.js |
mtable.appendChild( mtbody ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosaic_xoffset = check_and_replace_int( "mosaic_xoffset", "10" ); mosaic_yoffset = check_and_replace_int( "mosaic_yoffset", "10" ); mosaic_vborder = check_and_replace_int( "mosaic_vborder", "5" ); mosaic_hborder = check_and_replace_int( "mosaic_hborder", "10" ); mosaic_rows = check_and_replace_int( "mosaic_rows", "1" ); mosaic_cols = check_and_replace_int( "mosaic_cols", "1" ); cell_width = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols); cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows); var mlayout = document.getElementById( "mosaic_layout" ); /* TODO: keep 'common' cells when resizing */ while( mlayout.hasChildNodes() ) mlayout.removeChild( mlayout.firstChild ); mlayout.style.width = bg_width + "px"; mlayout.style.height = bg_height + "px"; if( mosaic_cols && mosaic_rows ) { var mdt = document.createElement( 'div' ); mdt.setAttribute( 'id', 'mosaic_dt' ); setclass( mdt, 'mosaic_tbl' ); mdt.style.width = mosaic_width + "px"; mdt.style.height = mosaic_height + "px"; mdt.style.top = mosaic_yoffset + "px"; mdt.style.left = mosaic_xoffset + "px"; var mtable = document.createElement( 'table' ); mtable.setAttribute( 'id', 'mosaic_table' ); mtable.style.top = "-" + mosaic_vborder + "px"; mtable.style.left = "-" + mosaic_hborder + "px"; mtable.style.width = (1*mosaic_width +2*mosaic_hborder) + "px"; mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px"; mtable.style.borderSpacing = mosaic_hborder + "px " + mosaic_vborder + "px"; for( y = 0; y < mosaic_rows; y++ ) { var mrow = document.createElement( 'tr' ); for( x = 0; x < mosaic_cols; x++ ) { var mcell = document.createElement( 'td' ); setclass( mcell, 'mosaic_itm' ); mcell.style.width = cell_width + "px"; mcell.style.height = cell_height + "px"; var id = x+'_'+y; var melt = create_button( cells[id] ? cells[id] : '?', 'mosaic_elt_choose(\"'+id+'\");' ); melt.setAttribute( 'id', id ); melt.setAttribute( 'title', 'Click to choose stream' ); mcell.appendChild( melt ); mrow.appendChild( mcell ); } mtable.appendChild( mrow ); } mdt.appendChild( mtable ); mlayout.appendChild( mdt ); } mosaic_code_update();} | 1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/4dfd839aff9cfb0e3cd0e30b92e60af388bb0fc7/mosaic.js/buggy/share/http/js/mosaic.js |
|
HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | windowObject.HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/40101f37ab8b5f25202111634151140a0768541b/selenium-browserbot.js/clean/javascript/selenium-browserbot.js |
HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | windowObject.HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a571d0ab29c9c650dde37a79dcc38968ddf4302c/selenium-browserbot.js/clean/javascript/selenium-browserbot.js |
while (target != div && target != document.documentElement) { | while (target != div && target != null) { | OpenLayers.Util.mouseLeft = function (evt, div) { // start with the element to which the mouse has moved var target = (evt.relatedTarget) ? evt.relatedTarget : evt.toElement; // walk up the DOM tree. while (target != div && target != document.documentElement) { target = target.parentNode; } // if the target we stop at isn't the div, then we've left the div. return (target != div);}; | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/b9ab087d32c7dbffbae0a2152a141c480c0b835b/Util.js/buggy/lib/OpenLayers/Util.js |
while (target != div && target != document.documentElement) { | while (target != div && target != null) { | OpenLayers.Util.mouseLeft = function (evt, div) { // start with the element to which the mouse has moved var target = (evt.relatedTarget) ? evt.relatedTarget : evt.toElement; // walk up the DOM tree. while (target != div && target != document.documentElement) { target = target.parentNode; } // if the target we stop at isn't the div, then we've left the div. return (target != div);}; | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/b9ab087d32c7dbffbae0a2152a141c480c0b835b/Util.js/clean/lib/OpenLayers/Util.js |
fb.mousemove = function (event) { // Get coordinates relative to color picker center var pos = fb.widgetCoords(event); // Set new HSL parameters if (fb.circleDrag) { var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); } else { var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); } return false; } | 3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/buggy/misc/farbtastic/farbtastic.js |
||
var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); | var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); | fb.mousemove = function (event) { // Get coordinates relative to color picker center var pos = fb.widgetCoords(event); // Set new HSL parameters if (fb.circleDrag) { var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); } else { var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); } return false; } | 3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/buggy/misc/farbtastic/farbtastic.js |
var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); | var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); | fb.mousemove = function (event) { // Get coordinates relative to color picker center var pos = fb.widgetCoords(event); // Set new HSL parameters if (fb.circleDrag) { var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); } else { var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); } return false; } | 3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/buggy/misc/farbtastic/farbtastic.js |
if( e == undefined ) e = window.event; | var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_vpaned_mousemove( e, paned ); }; | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
|
var w = w0 + (x0 - hop_mouse_y( event )); | var w = w0 + (x0 - hop_event_mouse_y( event )); | mousemove = function( event ) { var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | hop_style_set( win.el_main, "height", h0 + (hop_event_mouse_y( event ) - y0) ); | mousemove = function( event ) { var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
if( e == undefined ) e = window.event; | var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-paned.js/buggy/share/hop-paned.js |
|
var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); | var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
sourcesDocument.body.style.cursor = "default"; | function moveBreakPoint(event){ if (hasStyleClass(event.target.parentNode, "breakpoint")) { files[currentFile].breakpoints[parseInt(event.target.title)] = 0; draggingBreakpoint = event.target; draggingBreakpoint.started = false; draggingBreakpoint.dragLastY = event.clientY + window.scrollY; draggingBreakpoint.dragLastX = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.addEventListener("mousemove", breakpointDrag, true); sourcesDocument.addEventListener("mouseup", breakpointDragEnd, true); }} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
|
if (hasStyleClass(event.target.parentNode, "breakpoint")) { | if (event.target.parentNode.hasStyleClass("breakpoint")) { | function moveBreakPoint(event){ if (hasStyleClass(event.target.parentNode, "breakpoint")) { draggingBreakpoint = event.target; draggingBreakpoint.started = false; draggingBreakpoint.dragLastY = event.clientY + window.scrollY; draggingBreakpoint.dragLastX = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.addEventListener("mousemove", breakpointDrag, true); sourcesDocument.addEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = "default"; }} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
files[currentFile].breakpoints[parseInt(event.target.title)] = 0; | function moveBreakPoint(event){ if (hasStyleClass(event.target.parentNode, "breakpoint")) { files[currentFile].breakpoints[parseInt(event.target.title)] = 0; draggingBreakpoint = event.target; draggingBreakpoint.started = false; draggingBreakpoint.dragLastY = event.clientY + window.scrollY; draggingBreakpoint.dragLastX = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.addEventListener("mousemove", breakpointDrag, true); sourcesDocument.addEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = "default"; }} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d20969b630420cefa62196966e6ccb4895e9fb96/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
|
function moveHandler(e) {if (!e) e = window.event; | function moveHandler(scwEvt) { if (!scwEvt) scwEvt = window.event; | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.left = (e.clientX - deltaX) + 'px'; document.getElementById('scwIframe').style.top = (e.clientY - deltaY) + 'px'; } scwStopPropagation(e); } | 3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js |
elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; | elementToDrag.style.left = (scwEvt.clientX - deltaX) + 'px'; elementToDrag.style.top = (scwEvt.clientY - deltaY) + 'px'; | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.left = (e.clientX - deltaX) + 'px'; document.getElementById('scwIframe').style.top = (e.clientY - deltaY) + 'px'; } scwStopPropagation(e); } | 3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js |
if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.left = (e.clientX - deltaX) + 'px'; document.getElementById('scwIframe').style.top = (e.clientY - deltaY) + 'px'; } | if (scwID('scwIframe')) { scwID('scwIframe').style.left = (scwEvt.clientX - deltaX) + 'px'; scwID('scwIframe').style.top = (scwEvt.clientY - deltaY) + 'px'; } | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.left = (e.clientX - deltaX) + 'px'; document.getElementById('scwIframe').style.top = (e.clientY - deltaY) + 'px'; } scwStopPropagation(e); } | 3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js |
scwStopPropagation(e); } | scwStopPropagation(scwEvt); } | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.left = (e.clientX - deltaX) + 'px'; document.getElementById('scwIframe').style.top = (e.clientY - deltaY) + 'px'; } scwStopPropagation(e); } | 3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js |
} else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { | } else if ( bounds.top < gridBounds.bottom || bounds.left > gridBounds.right || bounds.right < gridBounds.left || bounds.bottom > gridBounds.top ) { console.log("else if"); | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().bottom > bounds.bottom) { | while (gridBounds.bottom > bounds.bottom) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().left > bounds.left) { | while (gridBounds.left > bounds.left) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().top < bounds.top) { | while (gridBounds.top < bounds.top) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().right < bounds.right) { | while (gridBounds.right < bounds.right) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { | if (tlViewPort.x > -this.tileSize.w * (buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} else if (tlViewPort.x < -this.tileSize.w * this.buffer) { | } else if (tlViewPort.x < -this.tileSize.w * buffer) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { | } else if (tlViewPort.y > -this.tileSize.h * (buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} else if (tlViewPort.y < -this.tileSize.h * this.buffer) { | } else if (tlViewPort.y < -this.tileSize.h * buffer) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} }; if (this.buffer == 0) { for (var r=0, rl=this.grid.length; r<rl; r++) { var row = this.grid[r]; for (var c=0, cl=row.length; c<cl; c++) { var tile = row[c]; if (!tile.drawn && tile.bounds.intersectsBounds(bounds, false)) { tile.draw(); } } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
|
} else { | } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/747573cfad087f9706e37b852fc2557cbecca5fc/Grid.js/buggy/lib/OpenLayers/Layer/Grid.js |
var gCenter = this.getYMapCenter(); | var yCenter = this.getYMapCenter(); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
var gZoom = this.ymap.getZoomLevel(); | var yZoom = this.ymap.getZoomLevel(); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { | if ((!olCenter.equals(yCenter)) || (( 16 - olZoom) != yZoom)) { | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
olZoom + 1); | 16 - olZoom); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
OpenLayers.Util.clearArray(this); | this.clear(); | moveTo: function (bounds, position, redraw) { if (redraw == null) { redraw = true; } OpenLayers.Util.clearArray(this); this.bounds = bounds.clone(); this.position = position.clone(); if (redraw) { this.draw(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9f9c366154d8d1e3e82af85214ec3378f8745ecf/Tile.js/buggy/lib/OpenLayers/Tile.js |
} var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); | } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/df375e7d299561b224d753f42b44263be84fdd6e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); | new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileBounds = new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7eb3f4bb9a744fa11b92e446a3e9cad249e7bb75/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; | tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileBounds = new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7eb3f4bb9a744fa11b92e446a3e9cad249e7bb75/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
OpenLayers.Util.clearArray(this.tile); | this.tile.clear(); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileWidth = bounds.getWidth() * this.ratio; var tileHeight = bounds.getHeight() * this.ratio; var tileBounds = new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if ( this.tile && !this.tile.size.equals(tileSize)) { this.tile.destroy(); this.tile = null; } if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/876051d6190095bebab2bd12e292c4c8aca1a50e/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
} else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) { | } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.getVisibility()) { if (zoomChanged) { this.clearGrid(); } } else if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/bc6b2e690d8ab086e8cbb3cc21b3c6b231e11cf2/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
if (this.type != null) { this.vemap.SetMapStyle(this.type); this.type = null; } | moveTo:function(bounds, zoomChanged, minor) { if (this.vemap != null) { var olCenter = this.map.getCenter(); var veCenter = this.getVELatLongFromOLLonLat(olCenter); if (zoomChanged) { var olZoom = this.map.getZoom(); var veZoom = this.getVEZoomFromOLZoom(olZoom); this.vemap.SetCenterAndZoom(veCenter, veZoom); } else { this.vemap.PanToLatLong(veCenter); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/890b2a6ffc99de7ee1a9c8f84f029d07691e8252/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js |
|
if (this.type != null) { this.gmap.setMapType(this.type); this.type = null; } this.dontListen = false; | moveTo:function(bounds, zoomChanged, minor) { if ((this.gmap != null) && (!this.dragging)) { var newCenter = this.map.getCenter(); var newZoom = this.map.getZoom(); if (newCenter != null) { var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var currentCenter = this.getOLLonLatFromGLatLng(gCenter); var currentZoom = this.getOLZoomFromGZoom(gZoom); if ( (!newCenter.equals(currentCenter)) || (newZoom != currentZoom) ) { this.gmap.setCenter(this.getGLatLngFromOLLonLat(newCenter), this.getGZoomFromOLZoom(newZoom)); } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/buggy/lib/OpenLayers/Layer/Google.js |
|
new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); | new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileBounds = new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7eb3f4bb9a744fa11b92e446a3e9cad249e7bb75/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; | tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileBounds = new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7eb3f4bb9a744fa11b92e446a3e9cad249e7bb75/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { | if (tlViewPort.x > -this.tileSize.w * (buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} else if (tlViewPort.x < -this.tileSize.w * this.buffer) { | } else if (tlViewPort.x < -this.tileSize.w * buffer) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { | } else if (tlViewPort.y > -this.tileSize.h * (buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} else if (tlViewPort.y < -this.tileSize.h * this.buffer) { | } else if (tlViewPort.y < -this.tileSize.h * buffer) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
} }; if (this.buffer == 0) { for (var r=0, rl=this.grid.length; r<rl; r++) { var row = this.grid[r]; for (var c=0, cl=row.length; c<cl; c++) { var tile = row[c]; if (!tile.drawn && tile.bounds.intersectsBounds(bounds, false)) { tile.draw(); } } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
|
bounds = this.map.getBounds(); | bounds = this.map.getExtent(); | moveTo:function(bounds, zoomChanged, minor) { if (bounds == null) { bounds = this.map.getBounds(); } if (bounds != null) { if (!this.getVisibility()) { if (zoomChanged) { //now clear out the old grid and start a new one this.clearGrid(); this.grid = null; } } else { if (!this.grid || zoomChanged) { this._initTiles(); } else if (this.getGridBounds().containsBounds(bounds, true) == false) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Grid.js/buggy/lib/OpenLayers/Layer/Grid.js |
} var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); | } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/df375e7d299561b224d753f42b44263be84fdd6e/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
if(this.tile) { this.tile.destroy(); this.tile = null; } var tileBounds = this.extent.clone(); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); this.tile = null; } //determine new tile bounds var tileBounds = this.extent.clone(); //determine new tile size var tileWidth = this.extent.getWidth() / this.map.getResolution(); var tileHeight = this.extent.getHeight() / (this.map.getResolution() * this.aspectRatio); var tileSize = new OpenLayers.Size(tileWidth, tileHeight); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); this.tile.draw(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/buggy/lib/OpenLayers/Layer/Image.js |
|
var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); | var ul = new OpenLayers.LonLat(this.extent.left, this.extent.top); var ulPx = this.map.getLayerPxFromLonLat(ul); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); this.tile = null; } //determine new tile bounds var tileBounds = this.extent.clone(); //determine new tile size var tileWidth = this.extent.getWidth() / this.map.getResolution(); var tileHeight = this.extent.getHeight() / (this.map.getResolution() * this.aspectRatio); var tileSize = new OpenLayers.Size(tileWidth, tileHeight); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); this.tile.draw(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/buggy/lib/OpenLayers/Layer/Image.js |
this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); | if(firstRendering) { this.tile = new OpenLayers.Tile.Image(this, ulPx, this.extent, this.url, tileSize); } else { this.tile.size = tileSize.clone(); this.tile.position = ulPx.clone(); } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); this.tile = null; } //determine new tile bounds var tileBounds = this.extent.clone(); //determine new tile size var tileWidth = this.extent.getWidth() / this.map.getResolution(); var tileHeight = this.extent.getHeight() / (this.map.getResolution() * this.aspectRatio); var tileSize = new OpenLayers.Size(tileWidth, tileHeight); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); this.tile.draw(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/buggy/lib/OpenLayers/Layer/Image.js |
OpenLayers.Util.clearArray(this.tile); | this.tile.clear(); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileWidth = bounds.getWidth() * this.ratio; var tileHeight = bounds.getHeight() * this.ratio; var tileBounds = new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if ( this.tile && !this.tile.size.equals(tileSize)) { this.tile.destroy(); this.tile = null; } if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/876051d6190095bebab2bd12e292c4c8aca1a50e/Untiled.js/buggy/lib/OpenLayers/Layer/WMS/Untiled.js |
if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); | if (this.imageDiv != null) { if (this.px == null) { this.display(false); } else { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); this.display(true); | moveTo: function (px) { //if no px passed in, use stored location if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Icon.js/clean/lib/OpenLayers/Icon.js |
var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); | moveTo: function (px) { //if no px passed in, use stored location if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Icon.js/clean/lib/OpenLayers/Icon.js |
|
if(this.tile) { this.tile.destroy(); this.tile = null; } var tileBounds = this.extent.clone(); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); this.tile = null; } //determine new tile bounds var tileBounds = this.extent.clone(); //determine new tile size var tileWidth = this.extent.getWidth() / this.map.getResolution(); var tileHeight = this.extent.getHeight() / (this.map.getResolution() * this.aspectRatio); var tileSize = new OpenLayers.Size(tileWidth, tileHeight); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); this.tile.draw(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/clean/lib/OpenLayers/Layer/Image.js |
|
var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); | var ul = new OpenLayers.LonLat(this.extent.left, this.extent.top); var ulPx = this.map.getLayerPxFromLonLat(ul); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); this.tile = null; } //determine new tile bounds var tileBounds = this.extent.clone(); //determine new tile size var tileWidth = this.extent.getWidth() / this.map.getResolution(); var tileHeight = this.extent.getHeight() / (this.map.getResolution() * this.aspectRatio); var tileSize = new OpenLayers.Size(tileWidth, tileHeight); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); this.tile.draw(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/clean/lib/OpenLayers/Layer/Image.js |
this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); | if(firstRendering) { this.tile = new OpenLayers.Tile.Image(this, ulPx, this.extent, this.url, tileSize); } else { this.tile.size = tileSize.clone(); this.tile.position = ulPx.clone(); } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); this.tile = null; } //determine new tile bounds var tileBounds = this.extent.clone(); //determine new tile size var tileWidth = this.extent.getWidth() / this.map.getResolution(); var tileHeight = this.extent.getHeight() / (this.map.getResolution() * this.aspectRatio); var tileSize = new OpenLayers.Size(tileWidth, tileHeight); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); this.tile.draw(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/clean/lib/OpenLayers/Layer/Image.js |
} else { | } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/747573cfad087f9706e37b852fc2557cbecca5fc/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
if ( this.tile && !this.tile.size.equals(tileSize)) { this.tile.destroy(); this.tile = null; } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileWidth = bounds.getWidth() * this.ratio; var tileHeight = bounds.getHeight() * this.ratio; var tileBounds = new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/8bd55016aa0c1f64087e9e70a13dc9f9a6f28585/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
|
if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); | if (this.imageDiv != null) { if (this.px == null) { this.display(false); } else { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); this.display(true); | moveTo: function (px) { //if no px passed in, use stored location if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Icon.js/buggy/lib/OpenLayers/Icon.js |
var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); | moveTo: function (px) { //if no px passed in, use stored location if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Icon.js/buggy/lib/OpenLayers/Icon.js |
|
if ( this.tile && !this.tile.size.equals(tileSize)) { this.tile.destroy(); this.tile = null; } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move fall outside of the // current tile's bounds? var outOfBounds = (!firstRendering && !this.tile.bounds.containsBounds(bounds)); if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { //clear out the old tile if (this.tile) { OpenLayers.Util.clearArray(this.tile); } //determine new tile bounds var center = bounds.getCenterLonLat(); var tileWidth = bounds.getWidth() * this.ratio; var tileHeight = bounds.getHeight() * this.ratio; var tileBounds = new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); //determine new tile size var tileSize = this.map.getSize(); tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; //formulate request url string var url = this.getURL(tileBounds); //determine new position (upper left corner of new bounds) var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); if (!this.tile) { this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, url, tileSize); this.tile.draw(); } else { this.tile.moveTo(tileBounds, pos); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/8bd55016aa0c1f64087e9e70a13dc9f9a6f28585/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
|
bounds = this.map.getBounds(); | bounds = this.map.getExtent(); | moveTo:function(bounds, zoomChanged, minor) { if (bounds == null) { bounds = this.map.getBounds(); } if (bounds != null) { if (!this.getVisibility()) { if (zoomChanged) { //now clear out the old grid and start a new one this.clearGrid(); this.grid = null; } } else { if (!this.grid || zoomChanged) { this._initTiles(); } else if (this.getGridBounds().containsBounds(bounds, true) == false) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Grid.js/buggy/lib/OpenLayers/Layer/Grid.js |
} else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { | } else if ( bounds.top < gridBounds.bottom || bounds.left > gridBounds.right || bounds.right < gridBounds.left || bounds.bottom > gridBounds.top ) { console.log("else if"); | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().bottom > bounds.bottom) { | while (gridBounds.bottom > bounds.bottom) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().left > bounds.left) { | while (gridBounds.left > bounds.left) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().top < bounds.top) { | while (gridBounds.top < bounds.top) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
while (this.getGridBounds().right < bounds.right) { | while (gridBounds.right < bounds.right) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/082133730e8d2dd2f1f272bc84ae47f7f48f1685/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
if ((px != null) && (this.image != null)) { offsetPx = px.offset(this.offset); this.image.style.left = offsetPx.x + "px"; this.image.style.top = offsetPx.y + "px" | if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); | moveTo: function (px) { if ((px != null) && (this.image != null)) { offsetPx = px.offset(this.offset); this.image.style.left = offsetPx.x + "px"; this.image.style.top = offsetPx.y + "px" } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/51aaf18b5964acdfc0c35f2078c52aff5101e0f5/Icon.js/clean/lib/OpenLayers/Icon.js |
OpenLayers.Util.clearArray(this); | this.clear(); | moveTo: function (bounds, position, redraw) { if (redraw == null) { redraw = true; } OpenLayers.Util.clearArray(this); this.bounds = bounds.clone(); this.position = position.clone(); if (redraw) { this.draw(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9f9c366154d8d1e3e82af85214ec3378f8745ecf/Tile.js/clean/lib/OpenLayers/Tile.js |
if ((px != null) && (this.image != null)) { offsetPx = px.offset(this.offset); this.image.style.left = offsetPx.x + "px"; this.image.style.top = offsetPx.y + "px" | if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); | moveTo: function (px) { if ((px != null) && (this.image != null)) { offsetPx = px.offset(this.offset); this.image.style.left = offsetPx.x + "px"; this.image.style.top = offsetPx.y + "px" } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/51aaf18b5964acdfc0c35f2078c52aff5101e0f5/Icon.js/clean/lib/OpenLayers/Icon.js |
if (this.type != null) { this.gmap.setMapType(this.type); this.type = null; } this.dontListen = false; | moveTo:function(bounds, zoomChanged, minor) { if ((this.gmap != null) && (!this.dragging)) { var newCenter = this.map.getCenter(); var newZoom = this.map.getZoom(); if (newCenter != null) { var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var currentCenter = this.getOLLonLatFromGLatLng(gCenter); var currentZoom = this.getOLZoomFromGZoom(gZoom); if ( (!newCenter.equals(currentCenter)) || (newZoom != currentZoom) ) { this.gmap.setCenter(this.getGLatLngFromOLLonLat(newCenter), this.getGZoomFromOLZoom(newZoom)); } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/clean/lib/OpenLayers/Layer/Google.js |
|
} else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) { | } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.getVisibility()) { if (zoomChanged) { this.clearGrid(); } } else if (!this.grid.length || zoomChanged || !this.getGridBounds().containsBounds(bounds, true)) { this._initTiles(); } else { while (true) { var tlLayer = this.grid[0][0].position; var tlViewPort = this.map.getViewPortPxFromLayerPx(tlLayer); if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); } else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false); } else { break; } } } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/bc6b2e690d8ab086e8cbb3cc21b3c6b231e11cf2/Grid.js/buggy/lib/OpenLayers/Layer/Grid.js |
if (this.type != null) { this.vemap.SetMapStyle(this.type); this.type = null; } | moveTo:function(bounds, zoomChanged, minor) { if (this.vemap != null) { var olCenter = this.map.getCenter(); var veCenter = this.getVELatLongFromOLLonLat(olCenter); if (zoomChanged) { var olZoom = this.map.getZoom(); var veZoom = this.getVEZoomFromOLZoom(olZoom); this.vemap.SetCenterAndZoom(veCenter, veZoom); } else { this.vemap.PanToLatLong(veCenter); } } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/890b2a6ffc99de7ee1a9c8f84f029d07691e8252/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js |
|
var gCenter = this.getYMapCenter(); | var yCenter = this.getYMapCenter(); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
var gZoom = this.ymap.getZoomLevel(); | var yZoom = this.ymap.getZoomLevel(); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { | if ((!olCenter.equals(yCenter)) || (( 16 - olZoom) != yZoom)) { | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
olZoom + 1); | 16 - olZoom); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { this.ymap.drawZoomAndCenter(new YGeoPoint(olCenter.lat, olCenter.lon), olZoom + 1); } } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
var rng, nl, i; | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset); return true; } if (tinyMCE.isMSIE) { if (bookmark.rng) { bookmark.rng.select(); return true; } win.focus(); if (bookmark.tag) { rng = inst.getBody().createControlRange(); nl = doc.getElementsByTagName(bookmark.tag); if (nl.length > bookmark.index) { try { rng.addElement(nl[bookmark.index]); } catch (ex) { // Might be thrown if the node no longer exists } } } else { rng = inst.getSel().createRange(); rng.moveToElementText(inst.getBody()); rng.collapse(true); rng.moveStart('character', bookmark.start); rng.moveEnd('character', bookmark.length); } rng.select(); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko && bookmark.rng) { sel.removeAllRanges(); sel.addRange(bookmark.rng); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko) { // try { rng = doc.createRange(); nl = doc.getElementsByTagName(bookmark.startTag); if (nl.length > bookmark.start) rng.setStart(nl[bookmark.start].childNodes[bookmark.startIndex], bookmark.startOffset); nl = doc.getElementsByTagName(bookmark.endTag); if (nl.length > bookmark.end) rng.setEnd(nl[bookmark.end].childNodes[bookmark.endIndex], bookmark.endOffset); sel.removeAllRanges(); sel.addRange(rng); /* } catch { // Ignore }*/ win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } return false; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
|
sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset); | sel.setBaseAndExtent(bookmark.rng.startContainer, bookmark.rng.startOffset, bookmark.rng.endContainer, bookmark.rng.endOffset); | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset); return true; } if (tinyMCE.isMSIE) { if (bookmark.rng) { bookmark.rng.select(); return true; } win.focus(); if (bookmark.tag) { rng = inst.getBody().createControlRange(); nl = doc.getElementsByTagName(bookmark.tag); if (nl.length > bookmark.index) { try { rng.addElement(nl[bookmark.index]); } catch (ex) { // Might be thrown if the node no longer exists } } } else { rng = inst.getSel().createRange(); rng.moveToElementText(inst.getBody()); rng.collapse(true); rng.moveStart('character', bookmark.start); rng.moveEnd('character', bookmark.length); } rng.select(); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko && bookmark.rng) { sel.removeAllRanges(); sel.addRange(bookmark.rng); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko) { // try { rng = doc.createRange(); nl = doc.getElementsByTagName(bookmark.startTag); if (nl.length > bookmark.start) rng.setStart(nl[bookmark.start].childNodes[bookmark.startIndex], bookmark.startOffset); nl = doc.getElementsByTagName(bookmark.endTag); if (nl.length > bookmark.end) rng.setEnd(nl[bookmark.end].childNodes[bookmark.endIndex], bookmark.endOffset); sel.removeAllRanges(); sel.addRange(rng); /* } catch { // Ignore }*/ win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } return false; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
if (tinyMCE.isMSIE) { | if (tinyMCE.isRealIE) { | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset); return true; } if (tinyMCE.isMSIE) { if (bookmark.rng) { bookmark.rng.select(); return true; } win.focus(); if (bookmark.tag) { rng = inst.getBody().createControlRange(); nl = doc.getElementsByTagName(bookmark.tag); if (nl.length > bookmark.index) { try { rng.addElement(nl[bookmark.index]); } catch (ex) { // Might be thrown if the node no longer exists } } } else { rng = inst.getSel().createRange(); rng.moveToElementText(inst.getBody()); rng.collapse(true); rng.moveStart('character', bookmark.start); rng.moveEnd('character', bookmark.length); } rng.select(); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko && bookmark.rng) { sel.removeAllRanges(); sel.addRange(bookmark.rng); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko) { // try { rng = doc.createRange(); nl = doc.getElementsByTagName(bookmark.startTag); if (nl.length > bookmark.start) rng.setStart(nl[bookmark.start].childNodes[bookmark.startIndex], bookmark.startOffset); nl = doc.getElementsByTagName(bookmark.endTag); if (nl.length > bookmark.end) rng.setEnd(nl[bookmark.end].childNodes[bookmark.endIndex], bookmark.endOffset); sel.removeAllRanges(); sel.addRange(rng); /* } catch { // Ignore }*/ win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } return false; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
bookmark.rng.select(); | try { bookmark.rng.select(); } catch (ex) { } | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset); return true; } if (tinyMCE.isMSIE) { if (bookmark.rng) { bookmark.rng.select(); return true; } win.focus(); if (bookmark.tag) { rng = inst.getBody().createControlRange(); nl = doc.getElementsByTagName(bookmark.tag); if (nl.length > bookmark.index) { try { rng.addElement(nl[bookmark.index]); } catch (ex) { // Might be thrown if the node no longer exists } } } else { rng = inst.getSel().createRange(); rng.moveToElementText(inst.getBody()); rng.collapse(true); rng.moveStart('character', bookmark.start); rng.moveEnd('character', bookmark.length); } rng.select(); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko && bookmark.rng) { sel.removeAllRanges(); sel.addRange(bookmark.rng); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } if (tinyMCE.isGecko) { // try { rng = doc.createRange(); nl = doc.getElementsByTagName(bookmark.startTag); if (nl.length > bookmark.start) rng.setStart(nl[bookmark.start].childNodes[bookmark.startIndex], bookmark.startOffset); nl = doc.getElementsByTagName(bookmark.endTag); if (nl.length > bookmark.end) rng.setEnd(nl[bookmark.end].childNodes[bookmark.endIndex], bookmark.endOffset); sel.removeAllRanges(); sel.addRange(rng); /* } catch { // Ignore }*/ win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } return false; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.