Extremely small monospace text size when SVG is included as an img
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Nov 2018 18:11:39 +0000 (18:11 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Nov 2018 18:11:39 +0000 (18:11 +0000)
commit9083223d5adb750829bc249d2ff23c6cae802984
treeecfac65277da339b3b40a3c4c30f70c3674aba57
parent269cf8d2a2dbe6330f2cd1bbfcd0f51d21760436
Extremely small monospace text size when SVG is included as an img
https://bugs.webkit.org/show_bug.cgi?id=191834

Reviewed by Myles C. Maxfield.
Source/WebCore:

Give defaultFixedFontSize a reasonable default value in Settings, so that clients
who omit to set it (like SVGImages) don't get broken rendering.

Test: svg/text/monospace-text-size-in-img.html

* page/Settings.yaml:

LayoutTests:

The test has an x offset in the text transform to work around a different bug
with text position (webkit.org/b/191871).

* svg/text/monospace-text-size-in-img-expected.html: Added.
* svg/text/monospace-text-size-in-img.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/text/monospace-text-size-in-img-expected.html [new file with mode: 0644]
LayoutTests/svg/text/monospace-text-size-in-img.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/Settings.yaml