Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: third_party/coverage-3.7.1/coverage/htmlfiles/jquery.isonscreen.js

Issue 225633007: Upgrade to coverage 3.7.1 and have it auto-build itself on first use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: sigh our imports are a mess Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2010 1 /* Copyright (c) 2010
2 * @author Laurence Wheway 2 * @author Laurence Wheway
3 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.p hp) 3 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.p hp)
4 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 4 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
5 * 5 *
6 * @version 1.2.0 6 * @version 1.2.0
7 */ 7 */
8 (function($) { 8 (function($) {
9 jQuery.extend({ 9 jQuery.extend({
10 isOnScreen: function(box, container) { 10 isOnScreen: function(box, container) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 if( $(this).offset().left+$(this).width()-container.left > 0 && 46 if( $(this).offset().left+$(this).width()-container.left > 0 &&
47 $(this).offset().left < container.width+container.left & & 47 $(this).offset().left < container.width+container.left & &
48 $(this).offset().top+$(this).height()-container.top > 0 && 48 $(this).offset().top+$(this).height()-container.top > 0 &&
49 $(this).offset().top < container.height+container.top 49 $(this).offset().top < container.height+container.top
50 ) return true; 50 ) return true;
51 return false; 51 return false;
52 } 52 }
53 })(jQuery); 53 })(jQuery);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698