Title: [114691] trunk/Source/WebCore
- Revision
- 114691
- Author
- pe...@chromium.org
- Date
- 2012-04-19 16:38:47 -0700 (Thu, 19 Apr 2012)
Log Message
Use sqrtf instead of sqrt in CanvasRenderingContext2D.cpp
https://bugs.webkit.org/show_bug.cgi?id=84403
Reviewed by Andreas Kling.
r114679 broke Chromium Win and Android bots due to call
ambiguity between a double and float argument.
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::inflateStrokeRect):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (114690 => 114691)
--- trunk/Source/WebCore/ChangeLog 2012-04-19 23:30:28 UTC (rev 114690)
+++ trunk/Source/WebCore/ChangeLog 2012-04-19 23:38:47 UTC (rev 114691)
@@ -1,3 +1,16 @@
+2012-04-19 Peter Beverloo <pe...@chromium.org>
+
+ Use sqrtf instead of sqrt in CanvasRenderingContext2D.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=84403
+
+ Reviewed by Andreas Kling.
+
+ r114679 broke Chromium Win and Android bots due to call
+ ambiguity between a double and float argument.
+
+ * html/canvas/CanvasRenderingContext2D.cpp:
+ (WebCore::CanvasRenderingContext2D::inflateStrokeRect):
+
2012-04-19 Alexandre Elias <ael...@google.com>
Default to null value for HistoryItem::m_pageScaleFactor
Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp (114690 => 114691)
--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2012-04-19 23:30:28 UTC (rev 114690)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2012-04-19 23:38:47 UTC (rev 114691)
@@ -2170,7 +2170,7 @@
// Fast approximation of the stroke's bounding rect.
// This yields a slightly oversized rect but is very fast
// compared to Path::strokeBoundingRect().
- static const float root2 = sqrt(2);
+ static const float root2 = sqrtf(2);
float delta = state().m_lineWidth / 2;
if (state().m_lineJoin == MiterJoin)
delta *= state().m_miterLimit;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes