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

Side by Side Diff: Source/devtools/front_end/sources/jsdifflib.js

Issue 366633002: DevTools: Move jsdifflib to "sources", extract "toolbox" module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 /* 1 /*
2 * This is part of jsdifflib v1.0. <http://snowtide.com/jsdifflib> 2 * This is part of jsdifflib v1.0. <http://snowtide.com/jsdifflib>
3 * 3 *
4 * Copyright (c) 2007, Snowtide Informatics Systems, Inc. 4 * Copyright (c) 2007, Snowtide Informatics Systems, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without modificati on, 7 * Redistribution and use in source and binary forms, with or without modificati on,
8 * are permitted provided that the following conditions are met: 8 * are permitted provided that the following conditions are met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright notice, t his 10 * * Redistributions of source code must retain the above copyright notice, t his
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 var la = this.a.length; 400 var la = this.a.length;
401 var lb = this.b.length; 401 var lb = this.b.length;
402 return _calculate_ratio(Math.min(la, lb), la + lb); 402 return _calculate_ratio(Math.min(la, lb), la + lb);
403 } 403 }
404 404
405 this.isjunk = isjunk ? isjunk : difflib.defaultJunkFunction; 405 this.isjunk = isjunk ? isjunk : difflib.defaultJunkFunction;
406 this.a = this.b = null; 406 this.a = this.b = null;
407 this.set_seqs(a, b); 407 this.set_seqs(a, b);
408 } 408 }
409 } 409 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698