Repository navigation
Commit 5132841
committed
[SVG text] Enable the SVG 2 text layout algorithm by default
https://bugs.webkit.org/show_bug.cgi?id=327912
rdar://problem/190288583
Reviewed by Alan Baradlay.
Turn on SVG2TextLayoutAlgorithmEnabled.
Test changes:
- svg/batik/text/xmlSpace.svg: a collapsible space that follows a preserved space is now kept, as
the line layout decides whitespace. This matches Chrome and Firefox.
- svg/batik/text/textLayout.svg: spacingAndGlyphs with word-spacing now dumps the stretched
positions of each word instead of unstretched positions under a single transform. The rendering is
the same.
- svg/batik/text/textLength.svg: spacingAndGlyphs with text-anchor now dumps the start of the
stretched text, for example 225 - 50 / 2 = 200 for textLength="50" at x="225", instead of the
unstretched anchored position under a transform. The rendering is the same.
- svg/custom/glyph-transformation-with-hkern.svg, svg/text/font-size-below-point-five.svg,
svg/zoom/page/zoom-mask-with-percentages.svg: 0.01px width differences.
- GTK and WPE: 1px text box size differences in svg/ text tests.
- WPT textLength-list-x-spacingAndGlyphs.svg: fix the test. It expected the explicit x positions to
move with the glyph stretching. That is wrong per spec, which applies absolute positions after
textLength, and Chrome and Firefox fail the test on wpt.fyi. The test and the reference now expect
each glyph to stretch in place at its x position. What the test is about, textLength applying
across the whole element instead of to each chunk (webkit.org/b/61855), is not affected.
- mozilla/svg/text/textLength-5.svg and WPT textLength-list-y-spacing.svg now pass.
* LayoutTests/TestExpectations:
textLength-5.svg and textLength-list-y-spacing.svg pass.
* LayoutTests/imported/w3c/web-platform-tests/svg/text/reftests/textLength-list-x-spacingAndGlyphs-expected.svg:
* LayoutTests/imported/w3c/web-platform-tests/svg/text/reftests/textLength-list-x-spacingAndGlyphs-ref.svg:
* LayoutTests/imported/w3c/web-platform-tests/svg/text/reftests/textLength-list-x-spacingAndGlyphs.svg:
* LayoutTests/platform/glib/svg/W3C-I18N/g-dirLTR-ubNone-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/g-dirLTR-ubOverride-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/g-dirRTL-ubNone-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/g-dirRTL-ubOverride-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/text-dirLTR-ubNone-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/text-dirLTR-ubOverride-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/text-dirRTL-ubNone-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/text-dirRTL-ubOverride-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirLTR-ubEmbed-in-rtl-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirLTR-ubNone-in-rtl-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirLTR-ubOverride-in-default-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirLTR-ubOverride-in-ltr-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirLTR-ubOverride-in-rtl-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirNone-ubOverride-in-default-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirNone-ubOverride-in-ltr-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirNone-ubOverride-in-rtl-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubEmbed-in-default-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubEmbed-in-ltr-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubNone-in-default-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubNone-in-ltr-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubOverride-in-default-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubOverride-in-ltr-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-dirRTL-ubOverride-in-rtl-context-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-direction-ltr-expected.txt:
* LayoutTests/platform/glib/svg/W3C-I18N/tspan-direction-rtl-expected.txt:
* LayoutTests/platform/glib/svg/W3C-SVG-1.1/animate-elem-06-t-expected.txt:
* LayoutTests/platform/glib/svg/W3C-SVG-1.1/text-text-01-b-expected.txt:
* LayoutTests/platform/glib/svg/batik/text/textAnchor-expected.txt:
* LayoutTests/platform/glib/svg/batik/text/textLayout-expected.txt:
* LayoutTests/platform/glib/svg/batik/text/textLength-expected.txt:
* LayoutTests/platform/glib/svg/batik/text/xmlSpace-expected.txt:
* LayoutTests/platform/glib/svg/carto.net/window-expected.txt:
* LayoutTests/platform/glib/svg/custom/tref-update-expected.txt:
* LayoutTests/platform/glib/svg/text/font-size-below-point-five-expected.txt:
* LayoutTests/platform/glib/svg/text/select-textLength-spacing-stretch-1-expected.txt:
* LayoutTests/platform/glib/svg/text/select-textLength-spacing-stretch-2-expected.txt:
* LayoutTests/platform/glib/svg/text/select-textLength-spacing-stretch-3-expected.txt:
* LayoutTests/platform/glib/svg/text/select-textLength-spacing-stretch-4-expected.txt:
* LayoutTests/platform/glib/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt:
* LayoutTests/platform/glib/svg/text/select-x-list-with-tspans-4-expected.txt:
* LayoutTests/platform/glib/svg/text/text-align-01-b-expected.txt:
* LayoutTests/platform/glib/svg/text/text-align-02-b-expected.txt:
* LayoutTests/platform/glib/svg/text/text-align-04-b-expected.txt:
* LayoutTests/platform/glib/svg/text/text-align-06-b-expected.txt:
* LayoutTests/platform/glib/svg/text/text-text-05-t-expected.txt:
* LayoutTests/platform/glib/svg/transforms/text-with-pattern-inside-transformed-html-expected.txt:
* LayoutTests/platform/glib/svg/transforms/text-with-pattern-with-svg-transform-expected.txt:
* LayoutTests/platform/ios/svg/batik/text/textLength-expected.txt:
* LayoutTests/platform/ios/svg/text/font-size-below-point-five-expected.txt:
* LayoutTests/platform/mac/svg/batik/text/textLayout-expected.txt:
* LayoutTests/platform/mac/svg/batik/text/textLength-expected.txt:
* LayoutTests/platform/mac/svg/batik/text/xmlSpace-expected.txt:
* LayoutTests/platform/mac/svg/text/font-size-below-point-five-expected.txt:
* LayoutTests/platform/mac/svg/zoom/page/zoom-mask-with-percentages-expected.txt:
* LayoutTests/platform/wpe/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt:
* LayoutTests/svg/custom/glyph-transformation-with-hkern-expected.txt:
* LayoutTests/svg/text/textLength-spacing-absolute-positions.html:
The flag is on by default now.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
Canonical link: https://commits.webkit.org/324088@main1 parent d22fe75 commit 5132841
62 files changed
Lines changed: 272 additions & 272 deletions
File tree
- LayoutTests
- imported/w3c/web-platform-tests/svg/text/reftests
- platform
- glib/svg
- W3C-I18N
- W3C-SVG-1.1
- batik/text
- carto.net
- custom
- text
- transforms
- ios/svg
- batik/text
- text
- mac/svg
- batik/text
- text
- zoom/page
- wpe/svg/text
- svg
- custom
- text
- Source/WTF/Scripts/Preferences
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3017 | 3017 | | |
3018 | 3018 | | |
3019 | 3019 | | |
3020 | | - | |
3021 | 3020 | | |
3022 | 3021 | | |
3023 | 3022 | | |
| |||
3064 | 3063 | | |
3065 | 3064 | | |
3066 | 3065 | | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
3072 | 3066 | | |
3073 | 3067 | | |
3074 | 3068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments