Title: [126863] trunk/Source/WebCore
- Revision
- 126863
- Author
- [email protected]
- Date
- 2012-08-28 03:42:09 -0700 (Tue, 28 Aug 2012)
Log Message
Compile fix: use fabs() instead of abs() for doubles
https://bugs.webkit.org/show_bug.cgi?id=95184
Patch by Kevin Funk <[email protected]> on 2012-08-28
Reviewed by Kentaro Hara.
Simple compilation fix.
* platform/ScrollAnimatorNone.cpp:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (126862 => 126863)
--- trunk/Source/WebCore/ChangeLog 2012-08-28 10:36:28 UTC (rev 126862)
+++ trunk/Source/WebCore/ChangeLog 2012-08-28 10:42:09 UTC (rev 126863)
@@ -1,3 +1,14 @@
+2012-08-28 Kevin Funk <[email protected]>
+
+ Compile fix: use fabs() instead of abs() for doubles
+ https://bugs.webkit.org/show_bug.cgi?id=95184
+
+ Reviewed by Kentaro Hara.
+
+ Simple compilation fix.
+
+ * platform/ScrollAnimatorNone.cpp:
+
2012-08-28 Christophe Dumez <[email protected]>
REGRESSION (r124512): Failures in MathML Presentation tests on GTK and EFL
Modified: trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp (126862 => 126863)
--- trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp 2012-08-28 10:36:28 UTC (rev 126862)
+++ trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp 2012-08-28 10:42:09 UTC (rev 126863)
@@ -299,9 +299,9 @@
// This needs to be as minimal as possible while not being intrusive to page up/down.
double minCoastDelta = m_visibleLength;
- if (abs(remainingDelta) > minCoastDelta) {
+ if (fabs(remainingDelta) > minCoastDelta) {
double maxCoastDelta = parameters->m_maximumCoastTime * targetMaxCoastVelocity;
- double coastFactor = min(1., (abs(remainingDelta) - minCoastDelta) / (maxCoastDelta - minCoastDelta));
+ double coastFactor = min(1., (fabs(remainingDelta) - minCoastDelta) / (maxCoastDelta - minCoastDelta));
// We could play with the curve here - linear seems a little soft. Initial testing makes me want to feed into the sustain time more aggressively.
double coastMinTimeLeft = min(parameters->m_maximumCoastTime, minTimeLeft + coastCurve(parameters->m_coastTimeCurve, coastFactor) * (parameters->m_maximumCoastTime - minTimeLeft));
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes