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

Issue 1125413003: Trim whitespace from parsed filename in Android v21. (Closed)

Created:
5 years, 7 months ago by bungeman-skia
Modified:
5 years, 7 months ago
Reviewers:
djsollen
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Trim whitespace from parsed filename in Android v21. The entire text content of the 'font' element is currently used as the file name. This wasn't an issue in earlier versions, as the 'file' element was dedicated to only containing the file name. The new 'font' element also contains a number of attributes and potentially other tags. This means that a 'font' element can become quite long, making it desireable to be able to split it across multiple lines. However, splitting the 'font' element across multiple lines is currently difficult and awkward as any whitespace outside of tags will be considered part of the file name. This change means that any leading or trailing whitespace will not be considered part of the file name. This only applies to v21 and later files, so while this restricts font file names from beginning and ending with whitespace, it is unlikely to break any users in practice. It is probably also undesireable to have font files with names that begin or end with whitespace in any event. Committed: https://skia.googlesource.com/skia/+/c0727d117e67844f0c8794cc7eaa49a96a015347

Patch Set 1 #

Patch Set 2 : Avoid possible use after free. #

Total comments: 4

Patch Set 3 : Clarify, address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M resources/android_fonts/v22/fonts.xml View 1 chunk +3 lines, -1 line 0 comments Download
M src/ports/SkFontConfigParser_android.cpp View 1 2 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
bungeman-skia
5 years, 7 months ago (2015-05-07 20:49:44 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125413003/1
5 years, 7 months ago (2015-05-07 20:50:24 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-07 20:56:55 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125413003/20001
5 years, 7 months ago (2015-05-07 21:24:56 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-07 21:35:41 UTC) #10
djsollen
https://codereview.chromium.org/1125413003/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/1125413003/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode270 src/ports/SkFontConfigParser_android.cpp:270: for (; *start == ' ' || *start == ...
5 years, 7 months ago (2015-05-08 13:56:13 UTC) #11
bungeman-skia
Perhaps this is somewhat less inscrutable? https://codereview.chromium.org/1125413003/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/1125413003/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode270 src/ports/SkFontConfigParser_android.cpp:270: for (; *start ...
5 years, 7 months ago (2015-05-08 15:05:04 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125413003/40001
5 years, 7 months ago (2015-05-08 15:10:56 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-08 15:16:43 UTC) #16
djsollen
lgtm
5 years, 7 months ago (2015-05-08 15:30:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125413003/40001
5 years, 7 months ago (2015-05-08 15:31:04 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 15:32:01 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/c0727d117e67844f0c8794cc7eaa49a96a015347

Powered by Google App Engine
This is Rietveld 408576698