+2010-07-14 Eric Carlson <eric.carlson@apple.com>
+
+ One more unreviewed build fix for r63319.
+
+ * html/TimeRanges.cpp:
+ (TimeRanges::nearest):
+
2010-07-14 Alexander Pavlov <apavlov@chromium.org>
Reviewed by Pavel Feldman.
/*
- * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
#include "TimeRanges.h"
-#include "FloatConversion.h"
#include <math.h>
using namespace WebCore;
if (time >= startTime && time <= endTime)
return time;
if (fabs(startTime - time) < closest)
- closest = narrowPrecisionToFloat(fabs(startTime - time));
+ closest = fabsf(startTime - time);
else if (fabs(endTime - time) < closest)
- closest = narrowPrecisionToFloat(fabs(endTime - time));
+ closest = fabsf(endTime - time);
}
return closest;
}