summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js
diff options
context:
space:
mode:
authormrobinson@webkit.org <mrobinson@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2010-12-28 01:40:09 +0000
committermrobinson@webkit.org <mrobinson@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2010-12-28 01:40:09 +0000
commit5a750568351ca920f337dfd51070894b714388ab (patch)
tree981e243416645b2afe4de1b9ba4142a825007e15 /third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js
parent530387e6499e25527aeb2ad6f600a072f2072fe8 (diff)
downloadchromium_src-5a750568351ca920f337dfd51070894b714388ab.zip
chromium_src-5a750568351ca920f337dfd51070894b714388ab.tar.gz
chromium_src-5a750568351ca920f337dfd51070894b714388ab.tar.bz2
2010-12-27 Martin Robinson <mrobinson@igalia.com>
Reviewed by Daniel Bates. Try to fix my previous commit for Mac by stepping up the precision of pi even more using Math.PI. * fast/canvas/canvas-save-restore-with-path.js: Use Math.PI instead of a hard-coded estimation. git-svn-id: svn://svn.chromium.org/blink/trunk@74705 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js')
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js b/third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js
index a238dfc..2fb321b 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-save-restore-with-path.js
@@ -49,7 +49,7 @@ pixelShouldBe(75, 50, [255, 0, 0, 255]);
// Test rotate
context.beginPath();
context.save();
-context.rotate(90/180 * 3.14159);
+context.rotate(90/180 * Math.PI);
context.rect(50, -50, 50, 50);
context.restore();
context.fill();