From kde-commits Thu Jan 31 23:54:41 2008 From: =?utf-8?q?Fredrik=20H=C3=B6glund?= Date: Thu, 31 Jan 2008 23:54:41 +0000 To: kde-commits Subject: KDE/kdelibs/khtml/html Message-Id: <1201823681.064744.1032.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120182368827042 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);