Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: LayoutTests/fast/canvas/crash-set-font.html

Issue 10885027: Merge 126959 - style->fontMetrics() should be available when setting line-height (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 oContext2d = document.getCSSCanvasContext("2d","",0,0); 8 oContext2d = document.getCSSCanvasContext("2d","",0,0);
9 oContext2d.font = "small-caps .0ex G"; 9 oContext2d.font = "small-caps .0ex G";
10 oContext2d.font = "italic .0ex G"; 10 oContext2d.font = "italic .0ex G";
11 oContext2d.font = "italic 400 .0ex G"; 11 oContext2d.font = "italic 400 .0ex G";
12 oContext2d.font = "italic 400 small/.0ex G";
12 </script> 13 </script>
13 </head> 14 </head>
14 <body> 15 <body>
15 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=66291">66291</a >: Crash because CSSPrimitiveValue::computeLengthDouble assumes fontMetrics are available</p> 16 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=66291">66291</a >: Crash because CSSPrimitiveValue::computeLengthDouble assumes fontMetrics are available</p>
16 <p>This test passed as it did not crash.</p> 17 <p>This test passed as it did not crash.</p>
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698