Implement maxWidth for fillText and strokeText, fixing the canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface.html test.
https://bugs.webkit.org/show_bug.cgi?id=61528
Patch by Philip Rogers <pdr@google.com> on 2011-11-15
Reviewed by Stephen White.
Source/WebCore:
Tests: fast/canvas/2d.text.draw.fill.maxWidth.gradient.html
fast/canvas/2d.text.draw.fill.maxWidth.negative.html
fast/canvas/2d.text.draw.fill.maxWidth.veryLarge.html
fast/canvas/2d.text.draw.fill.maxWidth.verySmall.html
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::drawTextInternal):
LayoutTests:
* fast/canvas/2d.text.draw.fill.maxWidth.gradient-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.gradient.html: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.negative-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.negative.html: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.veryLarge-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.veryLarge.html: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.verySmall-expected.txt: Added.
* fast/canvas/2d.text.draw.fill.maxWidth.verySmall.html: Added.
* platform/chromium/canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface-expected.txt: Removed.
* platform/chromium/test_expectations.txt:
* platform/gtk/Skipped:
* platform/mac-leopard/Skipped:
* platform/mac/canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface-expected.txt:
* platform/qt/Skipped:
* resources/Ahem.ttf: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100285
268f45cc-cd09-0410-ab3c-
d52691b4dbfc