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

Issue 2870393002: Fix textLength position adjustment for the "adjust spacing" case (Closed)

Created:
3 years, 7 months ago by fs
Modified:
3 years, 7 months ago
Reviewers:
Stephen Chennney, pdr.
CC:
fs, blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, fmalita+watch_chromium.org, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix textLength position adjustment for the "adjust spacing" case There should be no advance adjustment after the last character (really, "typographic unit"), so divide the excess space by the character count minus one - i.e the number of gaps - rather than the character count. BUG=719522 Review-Url: https://codereview.chromium.org/2870393002 Cr-Commit-Position: refs/heads/master@{#470928} Committed: https://chromium.googlesource.com/chromium/src/+/308e792b8d4648ba4e298c80faca80bc780b5735

Patch Set 1 #

Patch Set 2 : Update baselines #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1307 lines, -1304 lines) Patch
M third_party/WebKit/LayoutTests/platform/linux/svg/W3C-SVG-1.1/text-text-01-b-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/W3C-SVG-1.1/text-text-01-b-expected.txt View 1 2 chunks +86 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/textLayout-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/textLayout-expected.txt View 1 2 chunks +80 lines, -80 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/textLength-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/textLength-expected.txt View 1 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/dynamic-updates/SVGTextElement-dom-textLength-attr-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/dynamic-updates/SVGTextElement-svgdom-textLength-prop-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-1-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-1-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-2-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-2-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-3-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-3-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-4-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-squeeze-4-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-1-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-1-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-2-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-2-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-3-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-3-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-4-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/select-textLength-spacing-stretch-4-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/text-selection-text-01-b-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/text/text-selection-text-01-b-expected.txt View 1 2 chunks +86 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.11/svg/batik/text/textLayout-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-retina/svg/batik/text/textLayout-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/W3C-SVG-1.1/text-text-01-b-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/W3C-SVG-1.1/text-text-01-b-expected.txt View 1 2 chunks +86 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/textLayout-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/textLayout-expected.txt View 1 2 chunks +80 lines, -80 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/textLength-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/textLength-expected.txt View 1 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/dynamic-updates/SVGTextElement-dom-textLength-attr-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/dynamic-updates/SVGTextElement-svgdom-textLength-prop-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-1-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-1-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-2-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-2-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-3-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-3-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-4-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-4-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-1-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-1-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-2-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-2-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-3-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-3-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-4-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-4-expected.txt View 1 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/text-selection-text-01-b-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/text-selection-text-01-b-expected.txt View 1 2 chunks +86 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/W3C-SVG-1.1/text-text-01-b-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/W3C-SVG-1.1/text-text-01-b-expected.txt View 1 2 chunks +86 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/batik/text/textLayout-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/batik/text/textLayout-expected.txt View 1 2 chunks +80 lines, -80 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/batik/text/textLength-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/batik/text/textLength-expected.txt View 1 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/dynamic-updates/SVGTextElement-dom-textLength-attr-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/dynamic-updates/SVGTextElement-svgdom-textLength-prop-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-1-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-1-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-2-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-2-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-3-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-3-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-4-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-squeeze-4-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-1-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-1-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-2-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-2-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-3-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-3-expected.txt View 1 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-4-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/select-textLength-spacing-stretch-4-expected.txt View 1 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/text-selection-text-01-b-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/text/text-selection-text-01-b-expected.txt View 1 2 chunks +86 lines, -86 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-squeeze-1-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-squeeze-2-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-squeeze-3-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-squeeze-4-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-stretch-1-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-stretch-2-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-stretch-3-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/text/select-textLength-spacing-stretch-4-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp View 1 chunk +5 lines, -2 lines 1 comment Download

Messages

Total messages: 29 (18 generated)
fs
https://codereview.chromium.org/2870393002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp File third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp (left): https://codereview.chromium.org/2870393002/diff/20001/third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp#oldcode212 third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp:212: length_accumulator.NumCharacters(); When I had finished this I remembered/noticed that ...
3 years, 7 months ago (2017-05-10 16:06:10 UTC) #8
Stephen Chennney
lgtm lgtm Great to see quick turnaround on these simple issues.
3 years, 7 months ago (2017-05-10 17:08:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870393002/20001
3 years, 7 months ago (2017-05-10 17:25:08 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450506)
3 years, 7 months ago (2017-05-10 19:46:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870393002/20001
3 years, 7 months ago (2017-05-10 21:50:10 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450845)
3 years, 7 months ago (2017-05-10 23:24:27 UTC) #19
pdr.
On 2017/05/10 at 23:24:27, commit-bot wrote: > Try jobs failed on following builders: > linux_chromium_rel_ng ...
3 years, 7 months ago (2017-05-10 23:27:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870393002/20001
3 years, 7 months ago (2017-05-10 23:29:22 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450998)
3 years, 7 months ago (2017-05-11 00:54:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870393002/20001
3 years, 7 months ago (2017-05-11 10:13:14 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 12:13:21 UTC) #29
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/308e792b8d4648ba4e298c80faca...

Powered by Google App Engine
This is Rietveld 408576698