https://bugs.webkit.org/show_bug.cgi?id=90083
Patch by Behdad Esfahbod <behdad@behdad.org> on 2012-07-02
Reviewed by Eric Seidel.
Do division in floats, not integers.
No new tests. No code using the affected function.
* platform/FractionalLayoutUnit.h:
(WebCore::FractionalLayoutUnit::epsilon):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121709
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-07-02 Behdad Esfahbod <behdad@behdad.org>
+
+ LayoutUnit::epsilon() is wrong
+ https://bugs.webkit.org/show_bug.cgi?id=90083
+
+ Reviewed by Eric Seidel.
+
+ Do division in floats, not integers.
+
+ No new tests. No code using the affected function.
+
+ * platform/FractionalLayoutUnit.h:
+ (WebCore::FractionalLayoutUnit::epsilon):
+
2012-07-02 Tim Horton <timothy_horton@apple.com>
Compositing layer sync should cause deferred repaints to be fired immediately
return toInt();
}
- static float epsilon() { return 1 / kFixedPointDenominator; }
+ static float epsilon() { return 1.0f / kFixedPointDenominator; }
static const FractionalLayoutUnit max()
{
FractionalLayoutUnit m;