Address more pending TODOs.

This commit is contained in:
Jürg Lehni 2015-10-21 02:40:12 +02:00
parent 7a95625a13
commit 169f18617c
2 changed files with 1 additions and 5 deletions

View file

@ -1383,8 +1383,6 @@ new function() { // Scope for intersection using bezier fat-line clipping
t2 = Curve.getParameterOf(v2, p2);
if (t2 !== null && t2 >= (endConnected ? tMin : 0) &&
t2 <= (startConnected ? tMax : 1)) {
// TODO: Don't we need to check the range of t2 as well? Does it
// also need startConnected / endConnected values?
var renormalize = param.renormalize;
if (renormalize) {
var res = renormalize(t1, t2);
@ -1405,8 +1403,6 @@ new function() { // Scope for intersection using bezier fat-line clipping
// Link the two locations to each other.
loc1._intersection = loc2;
loc2._intersection = loc1;
// TODO: Remove this once debug logging is removed.
(flip ? loc1 : loc2)._other = true;
if (!include || include(loc)) {
CurveLocation.insert(locations, loc, true);
}

View file

@ -384,7 +384,7 @@ PathItem.inject(new function() {
// winding than equally dividing the curve chain, with the same
// (amortised) time.
for (var i = 0; i < 3; i++) {
// Try the points at 1/4, 2/4 and 3/4 of the total length:
// Sample the points at 1/4, 2/4 and 3/4 of the total length:
var length = totalLength * (i + 1) / 4;
for (var k = 0, m = chain.length; k < m; k++) {
var node = chain[k],