[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml/html
From: Fredrik Höglund <fredrik () kde ! org>
Date: 2008-01-31 23:54:41
Message-ID: 1201823681.064744.1032.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 769274 by fredrik:
Update a comment in arcTo() to reflect a change in the HTML5 spec.
M +2 -3 html_canvasimpl.cpp
--- trunk/KDE/kdelibs/khtml/html/html_canvasimpl.cpp #769273:769274
@@ -1284,9 +1284,8 @@
float tDist = std::cos(theta / 2.0) * h;
// As theta approaches 0, the distance to the two tangent points approach infinity.
- // If we exceeded the limit, draw a long line toward the first tangent point.
- // This matches CoreGraphics and Postscript behavior, but violates the HTML5 spec,
- // which says we should do nothing in this case.
+ // If we exceeded the data type limit, draw a long line toward the first tangent point.
+ // This matches CoreGraphics and Postscript behavior.
if (KJS::isInf(h) || KJS::isInf(tDist)) {
QPointF point(line1.p2().x() + std::cos(angle1) * 1e10,
line1.p2().y() + std::sin(angle1) * 1e10);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic